hush testsuite: add many tests from ash testsuite
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
1
shell/hush_test/hush-misc/heredoc4.right
Normal file
1
shell/hush_test/hush-misc/heredoc4.right
Normal file
@@ -0,0 +1 @@
|
||||
'$'
|
3
shell/hush_test/hush-misc/heredoc4.tests
Executable file
3
shell/hush_test/hush-misc/heredoc4.tests
Executable file
@@ -0,0 +1,3 @@
|
||||
cat <<EOF
|
||||
'$'
|
||||
EOF
|
2
shell/hush_test/hush-misc/last_amp.right
Normal file
2
shell/hush_test/hush-misc/last_amp.right
Normal file
@@ -0,0 +1,2 @@
|
||||
3
|
||||
End
|
8
shell/hush_test/hush-misc/last_amp.tests
Executable file
8
shell/hush_test/hush-misc/last_amp.tests
Executable file
@@ -0,0 +1,8 @@
|
||||
$THIS_SH -c 'echo 3&'
|
||||
d=`date`
|
||||
while test "`date`" = "$d"; do true; done
|
||||
d1=`date`
|
||||
$THIS_SH -c 'sleep 1&'
|
||||
d2=`date`
|
||||
test "$d1" = "$d2" || echo BAD
|
||||
echo End
|
4
shell/hush_test/hush-misc/local1.right
Normal file
4
shell/hush_test/hush-misc/local1.right
Normal file
@@ -0,0 +1,4 @@
|
||||
A1:'A'
|
||||
A2:''
|
||||
A3:''
|
||||
A4:'A'
|
11
shell/hush_test/hush-misc/local1.tests
Executable file
11
shell/hush_test/hush-misc/local1.tests
Executable file
@@ -0,0 +1,11 @@
|
||||
a=A
|
||||
f() {
|
||||
local a
|
||||
# the above line unsets $a
|
||||
echo "A2:'$a'"
|
||||
unset a
|
||||
echo "A3:'$a'"
|
||||
}
|
||||
echo "A1:'$a'"
|
||||
f
|
||||
echo "A4:'$a'"
|
3
shell/hush_test/hush-misc/nulltick1.right
Normal file
3
shell/hush_test/hush-misc/nulltick1.right
Normal file
@@ -0,0 +1,3 @@
|
||||
Test 1
|
||||
Test 2
|
||||
Done
|
3
shell/hush_test/hush-misc/nulltick1.tests
Executable file
3
shell/hush_test/hush-misc/nulltick1.tests
Executable file
@@ -0,0 +1,3 @@
|
||||
echo Test ` ` 1
|
||||
echo Test `</dev/null` 2
|
||||
echo Done
|
Reference in New Issue
Block a user