summaryrefslogtreecommitdiff
path: root/test/command_callback/test_iverilog_command_callback.vader
blob: 2c633178aff23cb58fdceaf53a86273daf59d85b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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(''))