2018-03-25 17:33:24 +00:00
|
|
|
Before:
|
2018-07-15 17:24:53 +00:00
|
|
|
call ale#assert#SetUpLinterTest('mercury', 'mmc')
|
|
|
|
call ale#test#SetFilename('dummy')
|
2018-03-25 17:33:24 +00:00
|
|
|
|
|
|
|
After:
|
2018-07-15 17:24:53 +00:00
|
|
|
call ale#assert#TearDownLinterTest()
|
2018-03-25 17:33:24 +00:00
|
|
|
|
|
|
|
Execute(The default command should be correct):
|
2018-07-15 17:24:53 +00:00
|
|
|
AssertLinter 'mmc',
|
2018-03-25 17:33:24 +00:00
|
|
|
\ ale#path#BufferCdString(bufnr(''))
|
2018-07-15 17:24:53 +00:00
|
|
|
\ . 'mmc --errorcheck-only --make --output-compile-error-lines 100 dummy'
|
2018-03-25 17:33:24 +00:00
|
|
|
|
|
|
|
Execute(The executable should be configurable):
|
|
|
|
let b:ale_mercury_mmc_executable = 'foo'
|
2018-07-15 17:24:53 +00:00
|
|
|
|
|
|
|
AssertLinter 'foo',
|
2018-03-25 17:33:24 +00:00
|
|
|
\ ale#path#BufferCdString(bufnr(''))
|
2018-07-15 17:24:53 +00:00
|
|
|
\ . 'foo --errorcheck-only --make --output-compile-error-lines 100 dummy'
|
2018-03-25 17:33:24 +00:00
|
|
|
|
|
|
|
Execute(The options should be configurable):
|
|
|
|
let b:ale_mercury_mmc_options = '--bar'
|
2018-07-15 17:24:53 +00:00
|
|
|
|
|
|
|
AssertLinter 'mmc',
|
2018-03-25 17:33:24 +00:00
|
|
|
\ ale#path#BufferCdString(bufnr(''))
|
2018-07-15 17:24:53 +00:00
|
|
|
\ . 'mmc --errorcheck-only --bar dummy'
|