summaryrefslogtreecommitdiff
path: root/check/check-cflags
diff options
context:
space:
mode:
Diffstat (limited to 'check/check-cflags')
-rwxr-xr-xcheck/check-cflags22
1 files changed, 18 insertions, 4 deletions
diff --git a/check/check-cflags b/check/check-cflags
index f662687..033cf25 100755
--- a/check/check-cflags
+++ b/check/check-cflags
@@ -4,11 +4,25 @@ set -e
. ${srcdir}/common
-ARGS="--cflags simple"
RESULT=""
-run_test
+run_test --cflags simple
-ARGS="--cflags fields-blank"
RESULT=""
-run_test
+run_test --cflags fields-blank
+RESULT="-DOTHER -I/other/include"
+run_test --cflags other
+
+RESULT="-I/other/include"
+run_test --cflags-only-I other
+
+RESULT="-DOTHER"
+run_test --cflags-only-other other
+
+# Try various mixed combinations
+RESULT="-DOTHER -I/other/include"
+run_test --cflags-only-I --cflags-only-other other
+run_test --cflags-only-other --cflags-only-I other
+run_test --cflags --cflags-only-I --cflags-only-other other
+run_test --cflags --cflags-only-I other
+run_test --cflags --cflags-only-other other