diff options
author | Denys Vlasenko | 2016-10-02 17:49:46 +0200 |
---|---|---|
committer | Denys Vlasenko | 2016-10-02 17:49:46 +0200 |
commit | 1b73f8471a3694d2e6b035bb7f04e1f4df943f03 (patch) | |
tree | bdfec37feb42130ca65045c29173fb46fd093f54 | |
parent | 5d6b8729ed7335c702022f4f3176573f4cf2cf5a (diff) | |
download | busybox-1b73f8471a3694d2e6b035bb7f04e1f4df943f03.zip busybox-1b73f8471a3694d2e6b035bb7f04e1f4df943f03.tar.gz |
sh testsuite: create hush-heredoc/* and move files around
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | shell/ash_test/ash-heredoc/heredoc5.right (renamed from shell/hush_test/hush-misc/heredoc2.right) | 0 | ||||
-rwxr-xr-x | shell/ash_test/ash-heredoc/heredoc5.tests (renamed from shell/hush_test/hush-misc/heredoc2.tests) | 0 | ||||
-rw-r--r-- | shell/hush_test/hush-heredoc/heredoc1.right (renamed from shell/hush_test/hush-misc/heredoc1.right) | 0 | ||||
-rwxr-xr-x | shell/hush_test/hush-heredoc/heredoc1.tests (renamed from shell/hush_test/hush-misc/heredoc1.tests) | 0 | ||||
-rw-r--r-- | shell/hush_test/hush-heredoc/heredoc2.right | 2 | ||||
-rwxr-xr-x | shell/hush_test/hush-heredoc/heredoc2.tests | 7 | ||||
-rw-r--r-- | shell/hush_test/hush-heredoc/heredoc3.right (renamed from shell/hush_test/hush-misc/heredoc3.right) | 0 | ||||
-rwxr-xr-x | shell/hush_test/hush-heredoc/heredoc3.tests (renamed from shell/hush_test/hush-misc/heredoc3.tests) | 0 | ||||
-rw-r--r-- | shell/hush_test/hush-heredoc/heredoc4.right (renamed from shell/hush_test/hush-misc/heredoc4.right) | 0 | ||||
-rwxr-xr-x | shell/hush_test/hush-heredoc/heredoc4.tests (renamed from shell/hush_test/hush-misc/heredoc4.tests) | 0 | ||||
-rw-r--r-- | shell/hush_test/hush-heredoc/heredoc5.right | 9 | ||||
-rwxr-xr-x | shell/hush_test/hush-heredoc/heredoc5.tests | 12 | ||||
-rw-r--r-- | shell/hush_test/hush-heredoc/heredoc_backslash1.right (renamed from shell/hush_test/hush-misc/heredoc_backslash1.right) | 0 | ||||
-rwxr-xr-x | shell/hush_test/hush-heredoc/heredoc_backslash1.tests (renamed from shell/hush_test/hush-misc/heredoc_backslash1.tests) | 0 | ||||
-rw-r--r-- | shell/hush_test/hush-heredoc/heredoc_huge.right (renamed from shell/hush_test/hush-misc/heredoc_huge.right) | 0 | ||||
-rwxr-xr-x | shell/hush_test/hush-heredoc/heredoc_huge.tests (renamed from shell/hush_test/hush-misc/heredoc_huge.tests) | 0 |
16 files changed, 30 insertions, 0 deletions
diff --git a/shell/hush_test/hush-misc/heredoc2.right b/shell/ash_test/ash-heredoc/heredoc5.right index 74110e3..74110e3 100644 --- a/shell/hush_test/hush-misc/heredoc2.right +++ b/shell/ash_test/ash-heredoc/heredoc5.right diff --git a/shell/hush_test/hush-misc/heredoc2.tests b/shell/ash_test/ash-heredoc/heredoc5.tests index e619bde..e619bde 100755 --- a/shell/hush_test/hush-misc/heredoc2.tests +++ b/shell/ash_test/ash-heredoc/heredoc5.tests diff --git a/shell/hush_test/hush-misc/heredoc1.right b/shell/hush_test/hush-heredoc/heredoc1.right index 7fc68f3..7fc68f3 100644 --- a/shell/hush_test/hush-misc/heredoc1.right +++ b/shell/hush_test/hush-heredoc/heredoc1.right diff --git a/shell/hush_test/hush-misc/heredoc1.tests b/shell/hush_test/hush-heredoc/heredoc1.tests index 2eeb472..2eeb472 100755 --- a/shell/hush_test/hush-misc/heredoc1.tests +++ b/shell/hush_test/hush-heredoc/heredoc1.tests diff --git a/shell/hush_test/hush-heredoc/heredoc2.right b/shell/hush_test/hush-heredoc/heredoc2.right new file mode 100644 index 0000000..a486f1a --- /dev/null +++ b/shell/hush_test/hush-heredoc/heredoc2.right @@ -0,0 +1,2 @@ +bar +bar diff --git a/shell/hush_test/hush-heredoc/heredoc2.tests b/shell/hush_test/hush-heredoc/heredoc2.tests new file mode 100755 index 0000000..6d9ccb6 --- /dev/null +++ b/shell/hush_test/hush-heredoc/heredoc2.tests @@ -0,0 +1,7 @@ +foo () { +cat <<EOF && { echo "$1" ; } +$1 +EOF +} + +foo "bar" diff --git a/shell/hush_test/hush-misc/heredoc3.right b/shell/hush_test/hush-heredoc/heredoc3.right index 6ed517f..6ed517f 100644 --- a/shell/hush_test/hush-misc/heredoc3.right +++ b/shell/hush_test/hush-heredoc/heredoc3.right diff --git a/shell/hush_test/hush-misc/heredoc3.tests b/shell/hush_test/hush-heredoc/heredoc3.tests index 938577a..938577a 100755 --- a/shell/hush_test/hush-misc/heredoc3.tests +++ b/shell/hush_test/hush-heredoc/heredoc3.tests diff --git a/shell/hush_test/hush-misc/heredoc4.right b/shell/hush_test/hush-heredoc/heredoc4.right index 371b092..371b092 100644 --- a/shell/hush_test/hush-misc/heredoc4.right +++ b/shell/hush_test/hush-heredoc/heredoc4.right diff --git a/shell/hush_test/hush-misc/heredoc4.tests b/shell/hush_test/hush-heredoc/heredoc4.tests index 642ddb3..642ddb3 100755 --- a/shell/hush_test/hush-misc/heredoc4.tests +++ b/shell/hush_test/hush-heredoc/heredoc4.tests diff --git a/shell/hush_test/hush-heredoc/heredoc5.right b/shell/hush_test/hush-heredoc/heredoc5.right new file mode 100644 index 0000000..74110e3 --- /dev/null +++ b/shell/hush_test/hush-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/hush_test/hush-heredoc/heredoc5.tests b/shell/hush_test/hush-heredoc/heredoc5.tests new file mode 100755 index 0000000..e619bde --- /dev/null +++ b/shell/hush_test/hush-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-misc/heredoc_backslash1.right b/shell/hush_test/hush-heredoc/heredoc_backslash1.right index 6a61148..6a61148 100644 --- a/shell/hush_test/hush-misc/heredoc_backslash1.right +++ b/shell/hush_test/hush-heredoc/heredoc_backslash1.right diff --git a/shell/hush_test/hush-misc/heredoc_backslash1.tests b/shell/hush_test/hush-heredoc/heredoc_backslash1.tests index 501af54..501af54 100755 --- a/shell/hush_test/hush-misc/heredoc_backslash1.tests +++ b/shell/hush_test/hush-heredoc/heredoc_backslash1.tests diff --git a/shell/hush_test/hush-misc/heredoc_huge.right b/shell/hush_test/hush-heredoc/heredoc_huge.right index 11740f6..11740f6 100644 --- a/shell/hush_test/hush-misc/heredoc_huge.right +++ b/shell/hush_test/hush-heredoc/heredoc_huge.right diff --git a/shell/hush_test/hush-misc/heredoc_huge.tests b/shell/hush_test/hush-heredoc/heredoc_huge.tests index c2ec281..c2ec281 100755 --- a/shell/hush_test/hush-misc/heredoc_huge.tests +++ b/shell/hush_test/hush-heredoc/heredoc_huge.tests |