aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/attribute/buildfile21
-rwxr-xr-xtests/escaping/test.sh2
-rwxr-xr-xtests/eval/test.sh2
-rwxr-xr-xtests/function/call/test.sh2
-rwxr-xr-xtests/if-else/test.sh2
-rwxr-xr-xtests/keyword/test.sh2
-rwxr-xr-xtests/names/test.sh2
-rwxr-xr-xtests/pairs/test.sh2
-rwxr-xr-xtests/quote/test.sh2
-rwxr-xr-xtests/scope/test.sh4
10 files changed, 31 insertions, 10 deletions
diff --git a/tests/attribute/buildfile b/tests/attribute/buildfile
new file mode 100644
index 0000000..6675894
--- /dev/null
+++ b/tests/attribute/buildfile
@@ -0,0 +1,21 @@
+#[] # error: standalone attribute sequence
+#[foo] # error: standalone attribute sequence
+#[[] # error: expected name instead of '['
+#[foo # error: expected ']' instead of <newline>
+#[dir/file{foo}] # error: invalid attribute key
+#[foo=dir/file{bar}] # error: invalid attribute key
+
+#[foo] print hello # error: attributes before print
+#[foo]./: # error: attributes before directory scope
+#{
+#}
+#[foo]./: # error: attributes before target/scope
+#./: [foo] buildfile # error: attributes before prerequisites
+#import [foo] libz # error: attributes without variable
+
+#foo="F[O]O"
+#[{x y z}]
+#[$foo]
+#["[]"]
+
+./:
diff --git a/tests/escaping/test.sh b/tests/escaping/test.sh
index b898b3c..afcb3bd 100755
--- a/tests/escaping/test.sh
+++ b/tests/escaping/test.sh
@@ -1,3 +1,3 @@
#!/bin/sh
-valgrind -q b -q | diff -u test.out -
+b -q | diff -u test.out -
diff --git a/tests/eval/test.sh b/tests/eval/test.sh
index b898b3c..afcb3bd 100755
--- a/tests/eval/test.sh
+++ b/tests/eval/test.sh
@@ -1,3 +1,3 @@
#!/bin/sh
-valgrind -q b -q | diff -u test.out -
+b -q | diff -u test.out -
diff --git a/tests/function/call/test.sh b/tests/function/call/test.sh
index b898b3c..afcb3bd 100755
--- a/tests/function/call/test.sh
+++ b/tests/function/call/test.sh
@@ -1,3 +1,3 @@
#!/bin/sh
-valgrind -q b -q | diff -u test.out -
+b -q | diff -u test.out -
diff --git a/tests/if-else/test.sh b/tests/if-else/test.sh
index b898b3c..afcb3bd 100755
--- a/tests/if-else/test.sh
+++ b/tests/if-else/test.sh
@@ -1,3 +1,3 @@
#!/bin/sh
-valgrind -q b -q | diff -u test.out -
+b -q | diff -u test.out -
diff --git a/tests/keyword/test.sh b/tests/keyword/test.sh
index b898b3c..afcb3bd 100755
--- a/tests/keyword/test.sh
+++ b/tests/keyword/test.sh
@@ -1,3 +1,3 @@
#!/bin/sh
-valgrind -q b -q | diff -u test.out -
+b -q | diff -u test.out -
diff --git a/tests/names/test.sh b/tests/names/test.sh
index b898b3c..afcb3bd 100755
--- a/tests/names/test.sh
+++ b/tests/names/test.sh
@@ -1,3 +1,3 @@
#!/bin/sh
-valgrind -q b -q | diff -u test.out -
+b -q | diff -u test.out -
diff --git a/tests/pairs/test.sh b/tests/pairs/test.sh
index b898b3c..afcb3bd 100755
--- a/tests/pairs/test.sh
+++ b/tests/pairs/test.sh
@@ -1,3 +1,3 @@
#!/bin/sh
-valgrind -q b -q | diff -u test.out -
+b -q | diff -u test.out -
diff --git a/tests/quote/test.sh b/tests/quote/test.sh
index b898b3c..afcb3bd 100755
--- a/tests/quote/test.sh
+++ b/tests/quote/test.sh
@@ -1,3 +1,3 @@
#!/bin/sh
-valgrind -q b -q | diff -u test.out -
+b -q | diff -u test.out -
diff --git a/tests/scope/test.sh b/tests/scope/test.sh
index 5bbf0d8..61194f6 100755
--- a/tests/scope/test.sh
+++ b/tests/scope/test.sh
@@ -2,11 +2,11 @@
# In-tree.
#
-valgrind b amalgamation/l1/ 2>/dev/null | diff -u test-1.out -
+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 -
+b amalgamation/l1/@a-out/l1/ 2>/dev/null | diff -u test-2.out -
rm -rf a-out/