summaryrefslogtreecommitdiff
path: root/shell/ash_test/ash-misc
diff options
context:
space:
mode:
authorDenys Vlasenko2016-10-02 18:23:14 +0200
committerDenys Vlasenko2016-10-02 18:23:14 +0200
commitc7a774dde4b777126de5ef9f718b503a15bf4d30 (patch)
treee20aa1c6536cebfbc5f0ab575832e3ef95f99d8a /shell/ash_test/ash-misc
parent0ba99705a112d37822f34619b893cf7205a2663c (diff)
downloadbusybox-c7a774dde4b777126de5ef9f718b503a15bf4d30.zip
busybox-c7a774dde4b777126de5ef9f718b503a15bf4d30.tar.gz
sh testsuite: sync ash-misc/source* and hush-misc/source*
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'shell/ash_test/ash-misc')
-rw-r--r--shell/ash_test/ash-misc/source5.right4
-rwxr-xr-xshell/ash_test/ash-misc/source5.tests8
2 files changed, 12 insertions, 0 deletions
diff --git a/shell/ash_test/ash-misc/source5.right b/shell/ash_test/ash-misc/source5.right
new file mode 100644
index 0000000..0587bad
--- /dev/null
+++ b/shell/ash_test/ash-misc/source5.right
@@ -0,0 +1,4 @@
+0:arg0 1:arg1 2:arg2
+Ok1:0
+0:arg0 1:q 2:w
+Ok2:0
diff --git a/shell/ash_test/ash-misc/source5.tests b/shell/ash_test/ash-misc/source5.tests
new file mode 100755
index 0000000..40b6b83
--- /dev/null
+++ b/shell/ash_test/ash-misc/source5.tests
@@ -0,0 +1,8 @@
+echo 'echo "0:$0 1:$1 2:$2"' >sourced1
+set -- 1 2 3
+"$THIS_SH" -c '. ./sourced1' arg0 arg1 arg2
+echo Ok1:$?
+"$THIS_SH" -c '. ./sourced1 q w e' arg0 arg1 arg2
+echo Ok2:$?
+
+rm sourced1