aboutsummaryrefslogtreecommitdiff
path: root/shell/hush_test
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2007-05-23 00:32:25 +0000
committerDenis Vlasenko <vda.linux@googlemail.com>2007-05-23 00:32:25 +0000
commit1a7358612ff2dfdfc9fa461faa946c577666787f (patch)
tree3edf610e1f0bab6f33e90716fc1550f0c9060991 /shell/hush_test
parent94dace30160131fc3f45b3f486463c49cda05204 (diff)
downloadbusybox-w32-1a7358612ff2dfdfc9fa461faa946c577666787f.tar.gz
busybox-w32-1a7358612ff2dfdfc9fa461faa946c577666787f.tar.bz2
busybox-w32-1a7358612ff2dfdfc9fa461faa946c577666787f.zip
hush: fix a bit different instance of "No EOL" bug,
add testsuite for that. Expand another testsuite.
Diffstat (limited to 'shell/hush_test')
-rw-r--r--shell/hush_test/hush-parsing/noeol2.right1
-rwxr-xr-xshell/hush_test/hush-parsing/noeol2.tests7
-rw-r--r--shell/hush_test/hush-vars/star.right1
-rwxr-xr-xshell/hush_test/hush-vars/star.tests4
4 files changed, 11 insertions, 2 deletions
diff --git a/shell/hush_test/hush-parsing/noeol2.right b/shell/hush_test/hush-parsing/noeol2.right
new file mode 100644
index 000000000..d00491fd7
--- /dev/null
+++ b/shell/hush_test/hush-parsing/noeol2.right
@@ -0,0 +1 @@
1
diff --git a/shell/hush_test/hush-parsing/noeol2.tests b/shell/hush_test/hush-parsing/noeol2.tests
new file mode 100755
index 000000000..1220f056f
--- /dev/null
+++ b/shell/hush_test/hush-parsing/noeol2.tests
@@ -0,0 +1,7 @@
1# last line has no EOL!
2if true
3then
4 echo 1
5else
6 echo 2
7fi \ No newline at end of file
diff --git a/shell/hush_test/hush-vars/star.right b/shell/hush_test/hush-vars/star.right
index b33b176b2..0ecc55bc2 100644
--- a/shell/hush_test/hush-vars/star.right
+++ b/shell/hush_test/hush-vars/star.right
@@ -3,3 +3,4 @@
3.d. 3.d.
4.e. 4.e.
5.f. 5.f.
6.1 abc d e f.
diff --git a/shell/hush_test/hush-vars/star.tests b/shell/hush_test/hush-vars/star.tests
index 1914dde44..5554c4090 100755
--- a/shell/hush_test/hush-vars/star.tests
+++ b/shell/hush_test/hush-vars/star.tests
@@ -4,5 +4,5 @@ fi
4# 'd e f' should be split into 3 separate args: 4# 'd e f' should be split into 3 separate args:
5for a in $*; do echo ".$a."; done 5for a in $*; do echo ".$a."; done
6 6
7# must produce .1 abc d e f. Currently does not 7# must produce .1 abc d e f.
8#for a in "$*"; do echo ".$a."; done 8for a in "$*"; do echo ".$a."; done