summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--test/test_c_flag_parsing.vader8
-rw-r--r--test/test_c_projects/gnumakefile_project/GNUmakefile0
-rw-r--r--test/test_c_projects/gnumakefile_project/file.c0
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