2017-09-08 10:06:47 +00:00
|
|
|
Before:
|
2018-07-15 17:24:53 +00:00
|
|
|
call ale#assert#SetUpLinterTest('glsl', 'glslang')
|
2017-09-08 10:06:47 +00:00
|
|
|
|
|
|
|
After:
|
2018-07-15 17:24:53 +00:00
|
|
|
call ale#assert#TearDownLinterTest()
|
2017-09-08 10:06:47 +00:00
|
|
|
|
2018-07-15 17:24:53 +00:00
|
|
|
Execute(The default command should be correct):
|
|
|
|
AssertLinter 'glslangValidator', ale#Escape('glslangValidator') . ' -C %t'
|
2017-09-08 10:06:47 +00:00
|
|
|
|
2018-07-15 17:24:53 +00:00
|
|
|
Execute(The executable should be configurable):
|
|
|
|
let b:ale_glsl_glslang_executable = 'foobar'
|
2017-09-08 10:06:47 +00:00
|
|
|
|
2018-07-15 17:24:53 +00:00
|
|
|
AssertLinter 'foobar', ale#Escape('foobar') . ' -C %t'
|
2017-09-08 10:06:47 +00:00
|
|
|
|
|
|
|
Execute(Options should work):
|
|
|
|
let g:ale_glsl_glslang_options = '--test'
|
2018-07-15 17:24:53 +00:00
|
|
|
|
|
|
|
AssertLinter 'glslangValidator',
|
|
|
|
\ ale#Escape('glslangValidator') . ' --test -C %t'
|