diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-06-14 15:50:55 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-06-14 15:50:55 +0000 |
commit | dd316dd283704b9adb588c3fb7cdec6ba5fbceb8 (patch) | |
tree | 7e5a4f524e01190d04bc79a4814c4ff6dce9d40d /shell/hush_test | |
parent | a84420062a1e7a6e149b7d1ca77e1a787e55d45b (diff) | |
download | busybox-w32-dd316dd283704b9adb588c3fb7cdec6ba5fbceb8.tar.gz busybox-w32-dd316dd283704b9adb588c3fb7cdec6ba5fbceb8.tar.bz2 busybox-w32-dd316dd283704b9adb588c3fb7cdec6ba5fbceb8.zip |
hush: add support for ':'; create testsuite entries
text data bss dec hex filename
809569 612 7044 817225 c7849 busybox_old
809528 612 7044 817184 c7820 busybox_unstripped
Diffstat (limited to 'shell/hush_test')
-rw-r--r-- | shell/hush_test/hush-bugs/glob_and_assign.right | 2 | ||||
-rwxr-xr-x[-rw-r--r--] | shell/hush_test/hush-bugs/glob_and_assign.tests (renamed from shell/hush_test/zbad2) | 3 | ||||
-rw-r--r-- | shell/hush_test/hush-bugs/glob_and_vars.right | 1 | ||||
-rwxr-xr-x | shell/hush_test/hush-bugs/glob_and_vars.tests | 2 | ||||
-rw-r--r-- | shell/hush_test/hush-bugs/while_in_subshell.right | 1 | ||||
-rwxr-xr-x | shell/hush_test/hush-bugs/while_in_subshell.tests | 2 | ||||
-rw-r--r-- | shell/hush_test/hush-misc/colon.right | 2 | ||||
-rwxr-xr-x | shell/hush_test/hush-misc/colon.tests | 6 | ||||
-rw-r--r-- | shell/hush_test/zbad | 3 |
9 files changed, 17 insertions, 5 deletions
diff --git a/shell/hush_test/hush-bugs/glob_and_assign.right b/shell/hush_test/hush-bugs/glob_and_assign.right new file mode 100644 index 000000000..dae832361 --- /dev/null +++ b/shell/hush_test/hush-bugs/glob_and_assign.right | |||
@@ -0,0 +1,2 @@ | |||
1 | ZVAR=z.map | ||
2 | *.map | ||
diff --git a/shell/hush_test/zbad2 b/shell/hush_test/hush-bugs/glob_and_assign.tests index b6fffe59e..ea11e364b 100644..100755 --- a/shell/hush_test/zbad2 +++ b/shell/hush_test/hush-bugs/glob_and_assign.tests | |||
@@ -1,5 +1,3 @@ | |||
1 | ## TODO: fix and add to testsuite | ||
2 | |||
3 | ## # bash zbad2 | 1 | ## # bash zbad2 |
4 | ## ZVAR=z.map | 2 | ## ZVAR=z.map |
5 | ## *.map | 3 | ## *.map |
@@ -17,3 +15,4 @@ | |||
17 | ZVAR=*.map /bin/echo ZVAR=*.map | 15 | ZVAR=*.map /bin/echo ZVAR=*.map |
18 | ZVAR=*.map | 16 | ZVAR=*.map |
19 | echo "$ZVAR" | 17 | echo "$ZVAR" |
18 | rm ZVAR=z.map | ||
diff --git a/shell/hush_test/hush-bugs/glob_and_vars.right b/shell/hush_test/hush-bugs/glob_and_vars.right new file mode 100644 index 000000000..3ac7ec5ff --- /dev/null +++ b/shell/hush_test/hush-bugs/glob_and_vars.right | |||
@@ -0,0 +1 @@ | |||
./glob_and_vars.right ./glob_and_vars.tests | |||
diff --git a/shell/hush_test/hush-bugs/glob_and_vars.tests b/shell/hush_test/hush-bugs/glob_and_vars.tests new file mode 100755 index 000000000..c8e0c067d --- /dev/null +++ b/shell/hush_test/hush-bugs/glob_and_vars.tests | |||
@@ -0,0 +1,2 @@ | |||
1 | v=. | ||
2 | echo $v/glob_and_vars.* | ||
diff --git a/shell/hush_test/hush-bugs/while_in_subshell.right b/shell/hush_test/hush-bugs/while_in_subshell.right new file mode 100644 index 000000000..290d39b7e --- /dev/null +++ b/shell/hush_test/hush-bugs/while_in_subshell.right | |||
@@ -0,0 +1 @@ | |||
OK: 0 | |||
diff --git a/shell/hush_test/hush-bugs/while_in_subshell.tests b/shell/hush_test/hush-bugs/while_in_subshell.tests new file mode 100755 index 000000000..def8e092b --- /dev/null +++ b/shell/hush_test/hush-bugs/while_in_subshell.tests | |||
@@ -0,0 +1,2 @@ | |||
1 | (while true; do exit; done) | ||
2 | echo OK: $? | ||
diff --git a/shell/hush_test/hush-misc/colon.right b/shell/hush_test/hush-misc/colon.right new file mode 100644 index 000000000..2a87d0293 --- /dev/null +++ b/shell/hush_test/hush-misc/colon.right | |||
@@ -0,0 +1,2 @@ | |||
1 | 0 | ||
2 | OK: 0 | ||
diff --git a/shell/hush_test/hush-misc/colon.tests b/shell/hush_test/hush-misc/colon.tests new file mode 100755 index 000000000..ea3b4d5f3 --- /dev/null +++ b/shell/hush_test/hush-misc/colon.tests | |||
@@ -0,0 +1,6 @@ | |||
1 | false | ||
2 | : | ||
3 | echo $? | ||
4 | # Extra ; after done is due to a bug | ||
5 | (while :; do exit; done;) | ||
6 | echo OK: $? | ||
diff --git a/shell/hush_test/zbad b/shell/hush_test/zbad deleted file mode 100644 index e4b5caa61..000000000 --- a/shell/hush_test/zbad +++ /dev/null | |||
@@ -1,3 +0,0 @@ | |||
1 | # TODO: hush doesn't know ':' null command | ||
2 | |||
3 | while :; do exit; done | ||