From: Denys Vlasenko Date: Sun, 2 Oct 2016 15:49:46 +0000 (+0200) Subject: sh testsuite: create hush-heredoc/* and move files around X-Git-Tag: 1_26_0~188 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=1b73f8471a3694d2e6b035bb7f04e1f4df943f03;p=oweals%2Fbusybox.git sh testsuite: create hush-heredoc/* and move files around Signed-off-by: Denys Vlasenko --- diff --git a/shell/ash_test/ash-heredoc/heredoc5.right b/shell/ash_test/ash-heredoc/heredoc5.right new file mode 100644 index 000000000..74110e3b5 --- /dev/null +++ b/shell/ash_test/ash-heredoc/heredoc5.right @@ -0,0 +1,9 @@ +exit EOF-f +" +echo 1 +echo Hello World +moo + EOF-f +EOF-f f +EOF-f +Ok diff --git a/shell/ash_test/ash-heredoc/heredoc5.tests b/shell/ash_test/ash-heredoc/heredoc5.tests new file mode 100755 index 000000000..e619bded1 --- /dev/null +++ b/shell/ash_test/ash-heredoc/heredoc5.tests @@ -0,0 +1,12 @@ +f=1 + cat <<- EOF-f + exit EOF-f +" +echo $f +echo `echo Hello World` + moo + EOF-f +EOF-f f +EOF-f +EOF-f +echo Ok diff --git a/shell/hush_test/hush-heredoc/heredoc1.right b/shell/hush_test/hush-heredoc/heredoc1.right new file mode 100644 index 000000000..7fc68f3e1 --- /dev/null +++ b/shell/hush_test/hush-heredoc/heredoc1.right @@ -0,0 +1,5 @@ +qwe +asd +123 +456 +Ok diff --git a/shell/hush_test/hush-heredoc/heredoc1.tests b/shell/hush_test/hush-heredoc/heredoc1.tests new file mode 100755 index 000000000..2eeb4726b --- /dev/null +++ b/shell/hush_test/hush-heredoc/heredoc1.tests @@ -0,0 +1,9 @@ +cat <<000; cat <"$0.tmp" +yes "123456789 123456789 123456789 123456789" | head -3000 >>"$0.tmp" +echo 'HERE' >>"$0.tmp" + +yes "123456789 123456789 123456789 123456789" | head -3000 | md5sum +. "$0.tmp" +rm "$0.tmp" +echo End diff --git a/shell/hush_test/hush-misc/heredoc1.right b/shell/hush_test/hush-misc/heredoc1.right deleted file mode 100644 index 7fc68f3e1..000000000 --- a/shell/hush_test/hush-misc/heredoc1.right +++ /dev/null @@ -1,5 +0,0 @@ -qwe -asd -123 -456 -Ok diff --git a/shell/hush_test/hush-misc/heredoc1.tests b/shell/hush_test/hush-misc/heredoc1.tests deleted file mode 100755 index 2eeb4726b..000000000 --- a/shell/hush_test/hush-misc/heredoc1.tests +++ /dev/null @@ -1,9 +0,0 @@ -cat <<000; cat <"$0.tmp" -yes "123456789 123456789 123456789 123456789" | head -3000 >>"$0.tmp" -echo 'HERE' >>"$0.tmp" - -yes "123456789 123456789 123456789 123456789" | head -3000 | md5sum -. "$0.tmp" -rm "$0.tmp" -echo End