bc: allow {break} and {continue} (allow RBRACE to terminate them)
[oweals/busybox.git] / testsuite / test.tests
index d4be949ecabe844e4e37fe9e9507fa5506df2dfb..1c2edaf627cb3a66fa602fb1d2183ec5f6fa9190 100755 (executable)
@@ -1,9 +1,9 @@
 #!/bin/sh
 
 # Copyright 2007 by Denys Vlasenko <vda.linux@googlemail.com>
-# Licensed under GPL v2, see file LICENSE for details.
+# Licensed under GPLv2, see file LICENSE in this source tree.
 
-. testing.sh
+. ./testing.sh
 
 # testing "test name" "command" "expected result" "file input" "stdin"
 #   file input will be file called "input"
@@ -21,6 +21,11 @@ testing "test '': should be false (1)" \
        "1\n" \
        "" ""
 
+testing "test !: should be true (0)" \
+       "busybox test !; echo \$?" \
+       "0\n" \
+       "" ""
+
 testing "test a: should be true (0)" \
        "busybox test a; echo \$?" \
        "0\n" \
@@ -51,6 +56,11 @@ testing "test -lt = -gt: should be false (1)" \
        "1\n" \
        "" ""
 
+testing "test a -a !: should be true (0)" \
+       "busybox test a -a !; echo \$?" \
+       "0\n" \
+       "" ""
+
 testing "test -f = a -o b: should be true (0)" \
        "busybox test -f = a -o b; echo \$?" \
        "0\n" \
@@ -66,4 +76,24 @@ testing "test ! a = b -a ! c = d: should be true (0)" \
        "0\n" \
        "" ""
 
+testing "test '!' = '!': should be true (0)" \
+       "busybox test '!' = '!'; echo \$?" \
+       "0\n" \
+       "" ""
+
+testing "test '(' = '(': should be true (0)" \
+       "busybox test '(' = '('; echo \$?" \
+       "0\n" \
+       "" ""
+
+testing "test '!' '!' = '!': should be false (1)" \
+       "busybox test '!' '!' = '!'; echo \$?" \
+       "1\n" \
+       "" ""
+
+testing "test '!' '(' = '(': should be false (1)" \
+       "busybox test '!' '(' = '('; echo \$?" \
+       "1\n" \
+       "" ""
+
 exit $FAILCOUNT