diff options
author | w0rp <devw0rp@gmail.com> | 2017-11-19 23:06:12 +0000 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2017-11-19 23:06:12 +0000 |
commit | cc04a7aaa030de9e030728b86c0428de9cbb112c (patch) | |
tree | 94fad5656410a2f8e0db3583b9303002e4ad2223 /test | |
parent | 1afe2992e29c40e445ce29394d8923eb85cec6e2 (diff) | |
download | ale-cc04a7aaa030de9e030728b86c0428de9cbb112c.zip |
Make the iverilog tests match the other tests
Diffstat (limited to 'test')
-rw-r--r-- | test/command_callback/test_iverilog_command_callback.vader | 24 | ||||
-rw-r--r-- | test/test_verilog_iverilog_options.vader | 18 |
2 files changed, 24 insertions, 18 deletions
diff --git a/test/command_callback/test_iverilog_command_callback.vader b/test/command_callback/test_iverilog_command_callback.vader new file mode 100644 index 00000000..2c633178 --- /dev/null +++ b/test/command_callback/test_iverilog_command_callback.vader @@ -0,0 +1,24 @@ +Before: + Save g:ale_verilog_iverilog_options + + unlet! g:ale_verilog_iverilog_options + + runtime ale_linters/verilog/iverilog.vim + +After: + Restore + + call ale#linter#Reset() + +Execute(The default iverilog command should be correct): + AssertEqual + \ 'iverilog -t null -Wall %t', + \ ale_linters#verilog#iverilog#GetCommand(bufnr('')) + +Execute(iverilog options should be configurable): + " Additional args for the linter + let g:ale_verilog_iverilog_options = '-y.' + + AssertEqual + \ 'iverilog -t null -Wall -y. %t', + \ ale_linters#verilog#iverilog#GetCommand(bufnr('')) diff --git a/test/test_verilog_iverilog_options.vader b/test/test_verilog_iverilog_options.vader deleted file mode 100644 index 1fbaea21..00000000 --- a/test/test_verilog_iverilog_options.vader +++ /dev/null @@ -1,18 +0,0 @@ -Before: - Save g:ale_verilog_iverilog_options - let g:ale_verilog_iverilog_options = '' - -After: - Restore - call ale#linter#Reset() - -Execute(Set Verilog iverilog linter additional options to `-y.`): - runtime! ale_linters/verilog/iverilog.vim - - " Additional args for the linter - let g:ale_verilog_iverilog_options = '-y.' - - call ale#Lint() - - let g:cmd = ale_linters#verilog#iverilog#GetCommand(bufnr('')) - AssertEqual g:cmd, 'iverilog -t null -Wall -y. %t' |