2018-05-04 19:44:32 +00:00
|
|
|
Before:
|
2018-07-15 17:24:53 +00:00
|
|
|
call ale#assert#SetUpLinterTest('nasm', 'nasm')
|
2018-05-04 19:44:32 +00:00
|
|
|
|
|
|
|
let b:command_tail =
|
2018-09-09 23:23:47 +00:00
|
|
|
\ ' -X gnu -I ' . ale#Escape(getcwd() . (has('win32') ? '\' : '/')) . ' %s -o ' . (has('win32') ? 'NUL' : '/dev/null')
|
2018-05-04 19:44:32 +00:00
|
|
|
let b:command_tail_opt =
|
2018-09-09 23:23:47 +00:00
|
|
|
\ ' -X gnu -I ' . ale#Escape(getcwd() . (has('win32') ? '\' : '/')) . ' -w+orphan-labels %s -o ' . (has('win32') ? 'NUL' : '/dev/null')
|
2018-05-04 19:44:32 +00:00
|
|
|
|
|
|
|
After:
|
|
|
|
unlet! b:command_tail
|
|
|
|
unlet! b:command_tail_opt
|
|
|
|
|
2018-07-15 17:24:53 +00:00
|
|
|
call ale#assert#TearDownLinterTest()
|
2018-05-04 19:44:32 +00:00
|
|
|
|
2018-07-15 17:24:53 +00:00
|
|
|
Execute(The executable should be configurable):
|
|
|
|
AssertLinter 'nasm', ale#Escape('nasm') . b:command_tail,
|
2018-05-04 19:44:32 +00:00
|
|
|
|
|
|
|
let b:ale_nasm_nasm_executable = '~/nasm'
|
|
|
|
|
2018-07-15 17:24:53 +00:00
|
|
|
AssertLinter '~/nasm', ale#Escape('~/nasm') . b:command_tail
|
2018-05-04 19:44:32 +00:00
|
|
|
|
|
|
|
Execute(The options should be configurable):
|
|
|
|
let b:ale_nasm_nasm_options = '-w-macro-params'
|
2018-07-15 17:24:53 +00:00
|
|
|
|
|
|
|
AssertLinter 'nasm', ale#Escape('nasm')
|
2018-09-09 23:23:47 +00:00
|
|
|
\ . ' -X gnu -I ' . ale#Escape(getcwd() . (has('win32') ? '\' : '/')) . ' -w-macro-params %s -o ' . (has('win32') ? 'NUL' : '/dev/null')
|
2018-05-04 19:44:32 +00:00
|
|
|
|
|
|
|
Execute(The options should be used in command):
|
2018-07-15 17:24:53 +00:00
|
|
|
let b:ale_nasm_nasm_options = '-w+orphan-labels'
|
|
|
|
|
|
|
|
AssertLinter 'nasm', ale#Escape('nasm') . b:command_tail_opt
|