3 # Copyright 2007 by Denys Vlasenko <vda.linux@googlemail.com>
4 # Licensed under GPL v2, see file LICENSE for details.
8 # testing "test name" "command" "expected result" "file input" "stdin"
9 # file input will be file called "input"
10 # test can create a file "actual" instead of writing to stdout
12 # Need to call 'busybox test', otherwise shell builtin is used
14 testing "test: should be false (1)" \
15 "busybox test; echo \$?" \
19 testing "test '': should be false (1)" \
20 "busybox test ''; echo \$?" \
24 testing "test a: should be true (0)" \
25 "busybox test a; echo \$?" \
29 testing "test --help: should be true (0)" \
30 "busybox test --help; echo \$?" \
34 testing "test -f: should be true (0)" \
35 "busybox test -f; echo \$?" \
39 testing "test ! -f: should be false (1)" \
40 "busybox test ! -f; echo \$?" \
44 testing "test a = a: should be true (0)" \
45 "busybox test a = a; echo \$?" \
49 testing "test -lt = -gt: should be false (1)" \
50 "busybox test -lt = -gt; echo \$?" \
54 testing "test -f = a -o b: should be true (0)" \
55 "busybox test -f = a -o b; echo \$?" \
59 testing "test ! a = b -a ! c = c: should be false (1)" \
60 "busybox test ! a = b -a ! c = c; echo \$?" \
64 testing "test ! a = b -a ! c = d: should be true (0)" \
65 "busybox test ! a = b -a ! c = d; echo \$?" \