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