Add test case for gnumakefile detection

This commit is contained in:
Hugo Musso Gualandi 2021-02-05 11:40:43 -03:00
parent 4c7e843fd0
commit ae916d49fd
3 changed files with 8 additions and 0 deletions

View file

@ -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')