Make the iverilog tests match the other tests
This commit is contained in:
parent
1afe2992e2
commit
cc04a7aaa0
24
test/command_callback/test_iverilog_command_callback.vader
Normal file
24
test/command_callback/test_iverilog_command_callback.vader
Normal file
@ -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(''))
|
@ -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'
|
Loading…
Reference in New Issue
Block a user