mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-10 14:31:52 +08:00
#3633 - Put all dummy test files in test/test-files
This commit is contained in:
@@ -16,27 +16,27 @@ Execute(The project root should be detected correctly using compile_commands.jso
|
||||
|
||||
AssertLSPProject ''
|
||||
|
||||
call ale#test#SetFilename('ccls_paths/with_compile_commands_json/dummy.cpp')
|
||||
call ale#test#SetFilename('../test-files/ccls/with_compile_commands_json/dummy.cpp')
|
||||
|
||||
AssertLSPProject ale#path#Simplify(g:dir . '/ccls_paths/with_compile_commands_json')
|
||||
AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/ccls/with_compile_commands_json')
|
||||
|
||||
Execute(The project root should be detected correctly using .ccls file):
|
||||
call ale#test#SetFilename(tempname() . '/dummy.cpp')
|
||||
|
||||
AssertLSPProject ''
|
||||
|
||||
call ale#test#SetFilename('ccls_paths/with_ccls/dummy.cpp')
|
||||
call ale#test#SetFilename('../test-files/ccls/with_ccls/dummy.cpp')
|
||||
|
||||
AssertLSPProject ale#path#Simplify(g:dir . '/ccls_paths/with_ccls')
|
||||
AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/ccls/with_ccls')
|
||||
|
||||
Execute(The project root should be detected correctly using .ccls-root file):
|
||||
call ale#test#SetFilename(tempname() . '/dummy.cpp')
|
||||
|
||||
AssertLSPProject ''
|
||||
|
||||
call ale#test#SetFilename('ccls_paths/with_ccls-root/dummy.cpp')
|
||||
call ale#test#SetFilename('../test-files/ccls/with_ccls-root/dummy.cpp')
|
||||
|
||||
AssertLSPProject ale#path#Simplify(g:dir . '/ccls_paths/with_ccls-root')
|
||||
AssertLSPProject ale#path#Simplify(g:dir . '/../test-files/ccls/with_ccls-root')
|
||||
|
||||
Execute(The executable should be configurable):
|
||||
AssertLinter 'ccls', ale#Escape('ccls')
|
||||
@@ -53,17 +53,17 @@ Execute(The initialization options should be configurable):
|
||||
AssertLSPOptions { 'cacheDirectory': '/tmp/ccls' }
|
||||
|
||||
Execute(The compile command database should be detected correctly):
|
||||
call ale#test#SetFilename('ccls_paths/with_ccls/dummy.c')
|
||||
call ale#test#SetFilename('../test-files/ccls/with_ccls/dummy.c')
|
||||
|
||||
AssertLSPOptions {}
|
||||
|
||||
call ale#test#SetFilename('ccls_paths/with_compile_commands_json/dummy.c')
|
||||
call ale#test#SetFilename('../test-files/ccls/with_compile_commands_json/dummy.c')
|
||||
|
||||
AssertLSPOptions { 'compilationDatabaseDirectory':
|
||||
\ ale#path#Simplify(g:dir . '/ccls_paths/with_compile_commands_json') }
|
||||
\ ale#path#Simplify(g:dir . '/../test-files/ccls/with_compile_commands_json') }
|
||||
|
||||
call ale#test#SetFilename('ccls_paths/with_build_dir/dummy.c')
|
||||
call ale#test#SetFilename('../test-files/ccls/with_build_dir/dummy.c')
|
||||
let b:ale_c_build_dir_names = ['unusual_build_dir_name']
|
||||
|
||||
AssertLSPOptions { 'compilationDatabaseDirectory':
|
||||
\ ale#path#Simplify(g:dir . '/ccls_paths/with_build_dir/unusual_build_dir_name') }
|
||||
\ ale#path#Simplify(g:dir . '/../test-files/ccls/with_build_dir/unusual_build_dir_name') }
|
||||
|
||||
Reference in New Issue
Block a user