summaryrefslogtreecommitdiff
path: root/test/linter/test_cuda_nvcc.vader
diff options
context:
space:
mode:
Diffstat (limited to 'test/linter/test_cuda_nvcc.vader')
-rw-r--r--test/linter/test_cuda_nvcc.vader20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/linter/test_cuda_nvcc.vader b/test/linter/test_cuda_nvcc.vader
new file mode 100644
index 00000000..4578d052
--- /dev/null
+++ b/test/linter/test_cuda_nvcc.vader
@@ -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