summaryrefslogtreecommitdiffstats
path: root/tests/aux/setup.sh
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-03-17 17:48:06 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-03-17 17:48:06 (EDT)
commit60a5b39d10b219e8762780dd4f41e809e3abeddf (patch)
tree54f4857f1b1722a3df78f1e6c45c1d6ccbad7f7d /tests/aux/setup.sh
parente789e383f0b7013d5ca94f7912d95cd055d0e827 (diff)
tests/aux/setup.sh: Make source file
Move from tests/exe/ob-unpacksource.sh. tests/aux/common.sh needs a copy of FOO_SH's definition for use by tests/exe/ob-unpacksource.sh.
Diffstat (limited to 'tests/aux/setup.sh')
-rw-r--r--tests/aux/setup.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/aux/setup.sh b/tests/aux/setup.sh
index ca91b8c..e16b3d6 100644
--- a/tests/aux/setup.sh
+++ b/tests/aux/setup.sh
@@ -40,3 +40,12 @@ cat >'changelog' <<-EOF
* Initial release.
-- ${MAINTAINER} Thu, 01 Jan 1970 00:00:00 +0000
EOF
+
+FOO_SH="$(cat <<-'EOF'
+ #!/bin/sh
+ printf 'Hello, world!\n'
+ EOF
+ )"
+
+mkdir -p '../src/src/'
+printf '%s\n' "${FOO_SH}" >'../src/src/foo.sh'