msh: create testsuite (based on hush one)

hush: add TODO (doesn't know ":" command)
This commit is contained in:
Denis Vlasenko
2008-03-02 19:57:53 +00:00
parent 444639cc21
commit a43dba76ea
42 changed files with 318 additions and 12 deletions

@@ -0,0 +1 @@
OK

@@ -0,0 +1,4 @@
if test $# = 0; then
exec "$THIS_SH" "$0" arg
fi
echo OK

@@ -0,0 +1 @@
HELLO

@@ -0,0 +1,2 @@
# next line has no EOL!
echo HELLO

@@ -0,0 +1 @@
1

@@ -0,0 +1,7 @@
# last line has no EOL!
if true
then
echo 1
else
echo 2
fi

@@ -0,0 +1 @@
'1'

@@ -0,0 +1,2 @@
a=1
echo "'$a'"

@@ -0,0 +1 @@
>1

@@ -0,0 +1,2 @@
a=1
echo ">$a"

@@ -0,0 +1,3 @@
Testing: in $empty""
..
Finished

@@ -0,0 +1,8 @@
if test $# = 0; then
exec "$THIS_SH" quote3.tests abc "d e"
fi
echo 'Testing: in $empty""'
empty=''
for a in $empty""; do echo ".$a."; done
echo Finished

@@ -0,0 +1 @@
a b

@@ -0,0 +1,2 @@
a_b='a b'
echo "$a_b"