From 3c7b22febf2abf7e8f1e64c6dfd64912c01b8966 Mon Sep 17 00:00:00 2001 From: Jan Nieuwenhuizen Date: Sat, 24 Nov 2018 13:17:21 +0100 Subject: [PATCH] test: add 42-sh.sh --- check.sh | 1 + test/41-dot.stdout | 2 ++ test/42-sh.sh | 2 ++ test/42-sh.stdout | 2 ++ test/data/script.sh | 1 + 5 files changed, 8 insertions(+) create mode 100644 test/41-dot.stdout create mode 100644 test/42-sh.sh create mode 100644 test/42-sh.stdout diff --git a/check.sh b/check.sh index db7486d..ac43138 100755 --- a/check.sh +++ b/check.sh @@ -78,6 +78,7 @@ tests=' 40-assignment-eval-echo 41-dot +42-sh 50-iohere 50-iohere-builtin diff --git a/test/41-dot.stdout b/test/41-dot.stdout new file mode 100644 index 0000000..a486f1a --- /dev/null +++ b/test/41-dot.stdout @@ -0,0 +1,2 @@ +bar +bar diff --git a/test/42-sh.sh b/test/42-sh.sh new file mode 100644 index 0000000..aeb1a25 --- /dev/null +++ b/test/42-sh.sh @@ -0,0 +1,2 @@ +sh test/data/script.sh +echo $foo diff --git a/test/42-sh.stdout b/test/42-sh.stdout new file mode 100644 index 0000000..9972d7e --- /dev/null +++ b/test/42-sh.stdout @@ -0,0 +1,2 @@ +bar + diff --git a/test/data/script.sh b/test/data/script.sh index 74d0a43..4b4cd91 100644 --- a/test/data/script.sh +++ b/test/data/script.sh @@ -1 +1,2 @@ foo=bar +echo $foo