summaryrefslogtreecommitdiff
path: root/check/check-variables
diff options
context:
space:
mode:
Diffstat (limited to 'check/check-variables')
-rwxr-xr-xcheck/check-variables18
1 files changed, 18 insertions, 0 deletions
diff --git a/check/check-variables b/check/check-variables
new file mode 100755
index 0000000..356b375
--- /dev/null
+++ b/check/check-variables
@@ -0,0 +1,18 @@
+#! /bin/sh
+
+set -e
+
+. ${srcdir}/common
+
+# Check quoted variables are stripped. In 0.28 and earlier, this would
+# contain the "" quotes.
+RESULT='/local/include'
+run_test --variable=includedir variables
+
+# Non-quoted variables are output as is. In 0.29, the \ would be stripped.
+RESULT='-I"/local/include"/foo -DFOO=\"/bar\"'
+run_test --variable=cppflags variables
+
+# Check the entire cflags output
+RESULT='-DFOO=\"/bar\" -I/local/include -I/local/include/foo'
+run_test --cflags variables