X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=testsuite%2Ftest.tests;h=1c2edaf627cb3a66fa602fb1d2183ec5f6fa9190;hb=5fa74b9efc538b55ec164ce3886eeea782016487;hp=d4be949ecabe844e4e37fe9e9507fa5506df2dfb;hpb=bd28f6bf7f53ede8df39112d40cb52f2a3d00177;p=oweals%2Fbusybox.git diff --git a/testsuite/test.tests b/testsuite/test.tests index d4be949ec..1c2edaf62 100755 --- a/testsuite/test.tests +++ b/testsuite/test.tests @@ -1,9 +1,9 @@ #!/bin/sh # Copyright 2007 by Denys Vlasenko -# 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