2017-12-01 17:36:44 +00:00
|
|
|
Before:
|
2018-07-15 17:24:53 +00:00
|
|
|
call ale#assert#SetUpLinterTest('glsl', 'glslls')
|
2017-12-01 17:36:44 +00:00
|
|
|
|
|
|
|
After:
|
2018-07-15 17:24:53 +00:00
|
|
|
call ale#assert#TearDownLinterTest()
|
2017-12-01 17:36:44 +00:00
|
|
|
|
2018-07-15 17:24:53 +00:00
|
|
|
Execute(The default command should be correct):
|
|
|
|
AssertLinter 'glslls', ale#Escape('glslls') . ' --stdin'
|
2017-12-01 17:36:44 +00:00
|
|
|
|
|
|
|
Execute(Executable should be configurable):
|
2018-07-15 17:24:53 +00:00
|
|
|
let b:ale_glsl_glslls_executable = 'foobar'
|
2017-12-01 17:36:44 +00:00
|
|
|
|
2018-07-15 17:24:53 +00:00
|
|
|
AssertLinter 'foobar', ale#Escape('foobar') . ' --stdin'
|
2017-12-01 17:36:44 +00:00
|
|
|
|
|
|
|
Execute(Setting logfile should work):
|
2018-07-15 17:24:53 +00:00
|
|
|
let b:ale_glsl_glslls_logfile = '/tmp/test.log'
|
|
|
|
|
|
|
|
AssertLinter 'glslls',
|
|
|
|
\ ale#Escape('glslls') . ' --verbose -l /tmp/test.log --stdin'
|