Add test case for gnumakefile detection
This commit is contained in:
parent
4c7e843fd0
commit
ae916d49fd
3 changed files with 8 additions and 0 deletions
|
@ -38,6 +38,14 @@ Execute(The make command should be correct):
|
||||||
\ . 'make -n',
|
\ . 'make -n',
|
||||||
\ ale#c#GetMakeCommand(bufnr(''))
|
\ ale#c#GetMakeCommand(bufnr(''))
|
||||||
|
|
||||||
|
Execute(Should recognize GNUmakefile as a makefile):
|
||||||
|
call ale#test#SetFilename('test_c_projects/gnumakefile_project/file.c')
|
||||||
|
|
||||||
|
AssertEqual
|
||||||
|
\ ale#path#CdString(ale#path#Simplify(g:dir. '/test_c_projects/gnumakefile_project'))
|
||||||
|
\ . 'make -n --always-make',
|
||||||
|
\ ale#c#GetMakeCommand(bufnr(''))
|
||||||
|
|
||||||
Execute(The CFlags parser should be able to parse include directives):
|
Execute(The CFlags parser should be able to parse include directives):
|
||||||
call ale#test#SetFilename('test_c_projects/makefile_project/subdir/file.c')
|
call ale#test#SetFilename('test_c_projects/makefile_project/subdir/file.c')
|
||||||
|
|
||||||
|
|
0
test/test_c_projects/gnumakefile_project/GNUmakefile
Normal file
0
test/test_c_projects/gnumakefile_project/GNUmakefile
Normal file
0
test/test_c_projects/gnumakefile_project/file.c
Normal file
0
test/test_c_projects/gnumakefile_project/file.c
Normal file
Reference in a new issue