summaryrefslogtreecommitdiff
path: root/test/test_verilog_iverilog_options.vader
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_verilog_iverilog_options.vader')
-rw-r--r--test/test_verilog_iverilog_options.vader18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/test_verilog_iverilog_options.vader b/test/test_verilog_iverilog_options.vader
new file mode 100644
index 00000000..1fbaea21
--- /dev/null
+++ b/test/test_verilog_iverilog_options.vader
@@ -0,0 +1,18 @@
+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'