summaryrefslogtreecommitdiff
path: root/test/linter/test_nasm_nasm.vader
blob: ef56aa281ff0e4ba7a86b7e82b7321d5e56bfcfd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Before:
  call ale#assert#SetUpLinterTest('nasm', 'nasm')

After:
  call ale#assert#TearDownLinterTest()

Execute(The default nasm command should be correct):
  AssertLinter 'nasm', ale#Escape('nasm')
  \ . ' -X gnu -I %s:h' . (has('win32') ? '\' : '/')
  \ . ' %s -o ' . (has('win32') ? 'NUL' : '/dev/null')

Execute(The nasm executable and options should be configurable):
  let b:ale_nasm_nasm_executable = '~/nasm'
  let b:ale_nasm_nasm_options = '-w-macro-params'

  AssertLinter '~/nasm', ale#Escape('~/nasm')
  \ . ' -X gnu -I %s:h' . (has('win32') ? '\' : '/')
  \ . ' -w-macro-params'
  \ . ' %s -o ' . (has('win32') ? 'NUL' : '/dev/null')