diff options
author | Hugo Musso Gualandi <hugo_musso_gualandi@hotmail.com> | 2021-02-05 11:40:43 -0300 |
---|---|---|
committer | Hugo Musso Gualandi <hugo_musso_gualandi@hotmail.com> | 2021-02-05 20:48:52 -0300 |
commit | ae916d49fd907592a73676fc1f570f75d67353d2 (patch) | |
tree | 4655d7a3256508282609d23818df473b698a81d2 /test | |
parent | 4c7e843fd08cd9ec1429c511cf1ab2e4c5250da7 (diff) | |
download | ale-ae916d49fd907592a73676fc1f570f75d67353d2.zip |
Add test case for gnumakefile detection
Diffstat (limited to 'test')
-rw-r--r-- | test/test_c_flag_parsing.vader | 8 | ||||
-rw-r--r-- | test/test_c_projects/gnumakefile_project/GNUmakefile | 0 | ||||
-rw-r--r-- | test/test_c_projects/gnumakefile_project/file.c | 0 |
3 files changed, 8 insertions, 0 deletions
diff --git a/test/test_c_flag_parsing.vader b/test/test_c_flag_parsing.vader index 8b02f2b9..319e10dd 100644 --- a/test/test_c_flag_parsing.vader +++ b/test/test_c_flag_parsing.vader @@ -38,6 +38,14 @@ Execute(The make command should be correct): \ . 'make -n', \ 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): call ale#test#SetFilename('test_c_projects/makefile_project/subdir/file.c') diff --git a/test/test_c_projects/gnumakefile_project/GNUmakefile b/test/test_c_projects/gnumakefile_project/GNUmakefile new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/test/test_c_projects/gnumakefile_project/GNUmakefile diff --git a/test/test_c_projects/gnumakefile_project/file.c b/test/test_c_projects/gnumakefile_project/file.c new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/test/test_c_projects/gnumakefile_project/file.c |