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