diff options
author | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2007-05-24 13:22:01 +0000 |
---|---|---|
committer | vda <vda@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2007-05-24 13:22:01 +0000 |
commit | ff71de82651c5427c4de65a151a4ed9e21f2f1a5 (patch) | |
tree | 040956e44b8f2b871f66aff049059ec72c449998 | |
parent | 7f3f8a28cf651d28a504ea2f58ba206740b804a2 (diff) | |
download | busybox-w32-ff71de82651c5427c4de65a151a4ed9e21f2f1a5.tar.gz busybox-w32-ff71de82651c5427c4de65a151a4ed9e21f2f1a5.tar.bz2 busybox-w32-ff71de82651c5427c4de65a151a4ed9e21f2f1a5.zip |
hush: improve 2 testsuite tests
git-svn-id: svn://busybox.net/trunk/busybox@18683 69ca8d6d-28ef-0310-b511-8ec308f3f277
-rw-r--r-- | shell/hush_test/hush-misc/shift.right | 6 | ||||
-rwxr-xr-x | shell/hush_test/hush-misc/shift.tests | 10 | ||||
-rw-r--r-- | shell/hush_test/hush-misc/syntax_err.right | 1 | ||||
-rwxr-xr-x | shell/hush_test/hush-misc/syntax_err.tests | 2 |
4 files changed, 17 insertions, 2 deletions
diff --git a/shell/hush_test/hush-misc/shift.right b/shell/hush_test/hush-misc/shift.right index afb90be9c..d281e358c 100644 --- a/shell/hush_test/hush-misc/shift.right +++ b/shell/hush_test/hush-misc/shift.right | |||
@@ -1,2 +1,6 @@ | |||
1 | ./shift.tests abc d e | 1 | ./shift.tests abc d e |
2 | ./shift.tests d e | 2 | ./shift.tests d e 123 |
3 | ./shift.tests d e 123 | ||
4 | ./shift.tests | ||
5 | ./shift.tests | ||
6 | ./shift.tests | ||
diff --git a/shell/hush_test/hush-misc/shift.tests b/shell/hush_test/hush-misc/shift.tests index 17f2c9f36..53ef249f2 100755 --- a/shell/hush_test/hush-misc/shift.tests +++ b/shell/hush_test/hush-misc/shift.tests | |||
@@ -1,6 +1,14 @@ | |||
1 | if test $# = 0; then | 1 | if test $# = 0; then |
2 | exec "$THIS_SH" $0 abc "d e" | 2 | exec "$THIS_SH" $0 abc "d e" 123 |
3 | fi | 3 | fi |
4 | echo $0 $1 $2 | 4 | echo $0 $1 $2 |
5 | shift | 5 | shift |
6 | echo $0 $1 $2 | 6 | echo $0 $1 $2 |
7 | shift 999 | ||
8 | echo $0 $1 $2 | ||
9 | shift 2 | ||
10 | echo $0 $1 $2 | ||
11 | shift 2 | ||
12 | echo $0 $1 $2 | ||
13 | shift | ||
14 | echo $0 $1 $2 | ||
diff --git a/shell/hush_test/hush-misc/syntax_err.right b/shell/hush_test/hush-misc/syntax_err.right index fbf3c9f82..08a270c31 100644 --- a/shell/hush_test/hush-misc/syntax_err.right +++ b/shell/hush_test/hush-misc/syntax_err.right | |||
@@ -1 +1,2 @@ | |||
1 | shown | ||
1 | hush: syntax error: unterminated ' | 2 | hush: syntax error: unterminated ' |
diff --git a/shell/hush_test/hush-misc/syntax_err.tests b/shell/hush_test/hush-misc/syntax_err.tests index c990c6475..d10ed42e9 100755 --- a/shell/hush_test/hush-misc/syntax_err.tests +++ b/shell/hush_test/hush-misc/syntax_err.tests | |||
@@ -1 +1,3 @@ | |||
1 | echo shown | ||
1 | echo test `echo 'aa` | 2 | echo test `echo 'aa` |
3 | echo not shown | ||