aboutsummaryrefslogtreecommitdiff
path: root/tests/scope/test.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/scope/test.sh')
-rwxr-xr-xtests/scope/test.sh12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/scope/test.sh b/tests/scope/test.sh
new file mode 100755
index 0000000..5bbf0d8
--- /dev/null
+++ b/tests/scope/test.sh
@@ -0,0 +1,12 @@
+#!/bin/sh
+
+# In-tree.
+#
+valgrind b amalgamation/l1/ 2>/dev/null | diff -u test-1.out -
+
+# Out-of-tree.
+#
+rm -rf a-out/
+b 'configure(amalgamation/@a-out/)' 2>/dev/null
+valgrind b amalgamation/l1/@a-out/l1/ 2>/dev/null | diff -u test-2.out -
+rm -rf a-out/