diff options
author | Jari Aalto <jari.aalto@cante.net> | 1997-06-05 14:59:13 +0000 |
---|---|---|
committer | Jari Aalto <jari.aalto@cante.net> | 2009-09-12 16:46:50 +0000 |
commit | d166f048818e10cf3799aa24a174fb22835f1acc (patch) | |
tree | 1ca27f9243900f8b236d0cde6a3862002aea9e19 /tests/test.right | |
parent | ccc6cda312fea9f0468ee65b8f368e9653e1380b (diff) | |
download | bash-d166f048818e10cf3799aa24a174fb22835f1acc.tar.gz |
Imported from ../bash-2.01.tar.gz.
Diffstat (limited to 'tests/test.right')
-rw-r--r-- | tests/test.right | 68 |
1 files changed, 68 insertions, 0 deletions
diff --git a/tests/test.right b/tests/test.right index 9acf6c86..4a1fcab2 100644 --- a/tests/test.right +++ b/tests/test.right @@ -14,6 +14,10 @@ t -d run-all 1 t -d /etc 0 +t -d "" +1 +b -d "" +1 t -e noexist 1 t -e run-all @@ -102,6 +106,8 @@ t 200 -eq 200 0 t 34 -eq 222 1 +t -32 -eq 32 +1 t 200 -ne 200 1 t 34 -ne 222 @@ -146,6 +152,8 @@ t -w /dev/fd/2 0 t 1 +b +1 t 12 -eq 34 1 t ! 12 -eq 34 @@ -192,3 +200,63 @@ t ( -E ) 0 t ( "" ) 1 +t ! -z "$z" +0 +t ! -n "$z" +1 +t "$zero" +1 +t ! "$zero" +0 +b "$zero" +1 +b ! "$zero" +0 +t -G /tmp/test.group +0 +t -h /tmp/test.symlink +0 +t 4+3 -eq 7 +./test-tests: test: 4+3: integer expression expected +1 +b 4-5 -eq 7 +./test-tests: [: 4+3: integer expression expected +1 +t 9 -eq 4+5 +./test-tests: test: 4+5: integer expression expected +1 +b 9 -eq 4+5 +./test-tests: [: 4+5: integer expression expected +1 +t A -eq 7 +./test-tests: test: A: integer expression expected +1 +b A -eq 7 +./test-tests: [: A: integer expression expected +1 +t 9 -eq B +./test-tests: test: B: integer expression expected +1 +b 9 -eq B +./test-tests: [: B: integer expression expected +1 +t ( 1 = 2 +./test-tests: test: `)' expected +1 +b ( 1 = 2 +./test-tests: [: `)' expected, found ] +1 +./test-tests: test: a: unary operator expected +1 +./test-tests: test: b: binary operator expected +1 +./test-tests: test: -A: unary operator expected +1 +./test-tests: test: too many arguments +1 +./test-tests: test: too many arguments +1 +./test-tests: [: missing `]' +1 +./test-tests: test: (: unary operator expected +1 |