2017-09-07 18:23:58 +00:00
|
|
|
Before:
|
2018-07-15 17:24:53 +00:00
|
|
|
call ale#assert#SetUpLinterTest('cuda', 'nvcc')
|
2017-09-07 18:23:58 +00:00
|
|
|
|
|
|
|
After:
|
2018-07-15 17:24:53 +00:00
|
|
|
call ale#assert#TearDownLinterTest()
|
2017-09-07 18:23:58 +00:00
|
|
|
|
|
|
|
Execute(The executable should be configurable):
|
2018-07-15 17:24:53 +00:00
|
|
|
AssertLinter 'nvcc',
|
|
|
|
\ ale#Escape('nvcc') . ' -cuda -std=c++11 %s -o ' . g:ale#util#nul_file
|
2017-09-07 18:23:58 +00:00
|
|
|
|
|
|
|
let b:ale_cuda_nvcc_executable = 'foobar'
|
|
|
|
|
2018-07-15 17:24:53 +00:00
|
|
|
AssertLinter 'foobar',
|
|
|
|
\ ale#Escape('foobar') . ' -cuda -std=c++11 %s -o ' . g:ale#util#nul_file
|
2018-08-02 22:44:12 +00:00
|
|
|
|
|
|
|
Execute(The options should be configurable):
|
|
|
|
let g:ale_cuda_nvcc_options = '--foobar'
|
|
|
|
|
|
|
|
AssertLinter 'nvcc',
|
|
|
|
\ ale#Escape('nvcc') . ' -cuda --foobar %s -o ' . g:ale#util#nul_file
|