diff options
author | Eric Andersen <andersen@codepoet.org> | 2004-04-06 11:10:30 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2004-04-06 11:10:30 +0000 |
commit | 650fe63467e693990cf357c51b74db3278088a56 (patch) | |
tree | 660b1fb0e4d7f99802a85cdd00166fafbf3132dc /testsuite/expr/expr-works | |
parent | 39396b95fc7c46bfa29ec576357fb7f8e755762c (diff) | |
download | busybox-w32-650fe63467e693990cf357c51b74db3278088a56.tar.gz busybox-w32-650fe63467e693990cf357c51b74db3278088a56.tar.bz2 busybox-w32-650fe63467e693990cf357c51b74db3278088a56.zip |
Kill off the old 'tests' stuff. Write a ton of new tests for the
'testsuite' dir. Fix a bunch of broken tests. Fix the testsuite
'runtest' script so it actually reports all failures and provides
meaningful feedback.
-Erik
Diffstat (limited to 'testsuite/expr/expr-works')
-rw-r--r-- | testsuite/expr/expr-works | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/testsuite/expr/expr-works b/testsuite/expr/expr-works new file mode 100644 index 000000000..af49ac4d5 --- /dev/null +++ b/testsuite/expr/expr-works | |||
@@ -0,0 +1,59 @@ | |||
1 | # busybox expr | ||
2 | busybox expr 1 \| 1 | ||
3 | busybox expr 1 \| 0 | ||
4 | busybox expr 0 \| 1 | ||
5 | busybox expr 1 \& 1 | ||
6 | busybox expr 0 \< 1 | ||
7 | busybox expr 1 \> 0 | ||
8 | busybox expr 0 \<= 1 | ||
9 | busybox expr 1 \<= 1 | ||
10 | busybox expr 1 \>= 0 | ||
11 | busybox expr 1 \>= 1 | ||
12 | busybox expr 1 + 2 | ||
13 | busybox expr 2 - 1 | ||
14 | busybox expr 2 \* 3 | ||
15 | busybox expr 12 / 2 | ||
16 | busybox expr 12 % 5 | ||
17 | |||
18 | |||
19 | set +e | ||
20 | busybox expr 0 \| 0 | ||
21 | if [ $? != 1 ] ; then | ||
22 | exit 1; | ||
23 | fi; | ||
24 | |||
25 | busybox expr 1 \& 0 | ||
26 | if [ $? != 1 ] ; then | ||
27 | exit 1; | ||
28 | fi; | ||
29 | |||
30 | busybox expr 0 \& 1 | ||
31 | if [ $? != 1 ] ; then | ||
32 | exit 1; | ||
33 | fi; | ||
34 | |||
35 | busybox expr 0 \& 0 | ||
36 | if [ $? != 1 ] ; then | ||
37 | exit 1; | ||
38 | fi; | ||
39 | |||
40 | busybox expr 1 \< 0 | ||
41 | if [ $? != 1 ] ; then | ||
42 | exit 1; | ||
43 | fi; | ||
44 | |||
45 | busybox expr 0 \> 1 | ||
46 | if [ $? != 1 ] ; then | ||
47 | exit 1; | ||
48 | fi; | ||
49 | |||
50 | busybox expr 1 \<= 0 | ||
51 | if [ $? != 1 ] ; then | ||
52 | exit 1; | ||
53 | fi; | ||
54 | |||
55 | busybox expr 0 \>= 1 | ||
56 | if [ $? != 1 ] ; then | ||
57 | exit 1; | ||
58 | fi; | ||
59 | |||