ea72d66b6d
* Simplify verilator linter using ale command format strings * Verilator Linter: Restructure linter command tests * Verilator Linter: adds to the handler test the returned filename * Verilator Linter: add the current file path to the search path * Verilator Linter: Add the search path to the tests Co-authored-by: TG <tarik.graba@telecom-paris.fr>
14 lines
545 B
Text
14 lines
545 B
Text
Before:
|
|
call ale#assert#SetUpLinterTest('verilog', 'verilator')
|
|
|
|
After:
|
|
call ale#assert#TearDownLinterTest()
|
|
|
|
Execute(The default verilator command should be correct):
|
|
AssertLinter 'verilator', 'verilator --lint-only -Wall -Wno-DECLFILENAME -I%s:h %t'
|
|
|
|
Execute(verilator options should be configurable):
|
|
" Additional args for the linter
|
|
let g:ale_verilog_verilator_options = '-sv --default-language "1800-2012"'
|
|
|
|
AssertLinter 'verilator', 'verilator --lint-only -Wall -Wno-DECLFILENAME -I%s:h -sv --default-language "1800-2012" %t'
|