summaryrefslogtreecommitdiff
path: root/test/test_verilog_iverilog_options.vader
diff options
context:
space:
mode:
authorRedBug312 <redbug312@gmail.com>2017-11-20 06:59:17 +0800
committerw0rp <w0rp@users.noreply.github.com>2017-11-19 22:59:17 +0000
commit1afe2992e29c40e445ce29394d8923eb85cec6e2 (patch)
treea9bb5766c644f37d2e13f6168c10db758a115a1e /test/test_verilog_iverilog_options.vader
parent344add6a28a5ee3ba0c6cae0182fdd20ca17d5ad (diff)
downloadale-1afe2992e29c40e445ce29394d8923eb85cec6e2.zip
Make options configurable for iverilog (#1143)
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'