mirror of
https://github.com/dense-analysis/ale.git
synced 2026-03-05 06:34:21 +08:00
#3633 - Move linter tests into test/linter
This commit is contained in:
20
test/linter/test_cuda_nvcc.vader
Normal file
20
test/linter/test_cuda_nvcc.vader
Normal file
@@ -0,0 +1,20 @@
|
||||
Before:
|
||||
call ale#assert#SetUpLinterTest('cuda', 'nvcc')
|
||||
|
||||
After:
|
||||
call ale#assert#TearDownLinterTest()
|
||||
|
||||
Execute(The executable should be configurable):
|
||||
AssertLinter 'nvcc',
|
||||
\ ale#Escape('nvcc') . ' -cuda -std=c++11 %s -o ' . g:ale#util#nul_file
|
||||
|
||||
let b:ale_cuda_nvcc_executable = 'foobar'
|
||||
|
||||
AssertLinter 'foobar',
|
||||
\ ale#Escape('foobar') . ' -cuda -std=c++11 %s -o ' . g:ale#util#nul_file
|
||||
|
||||
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
|
||||
Reference in New Issue
Block a user