summaryrefslogtreecommitdiffstats
path: root/tests/exe
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-06-17 23:35:36 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-06-17 23:35:36 (EDT)
commitda17d2d5ae772687c84f19a29f4f97cea962c74a (patch)
treeb9db8f2ebfc89244800d07e664fd65c91f91dd17 /tests/exe
parent9dcf32eec318584293e346914c10bdc23b5ae7f4 (diff)
tests: Generate rather than distribute platconf data
It's 2019 and Automake still hasn't mastered shell quoting.
Diffstat (limited to 'tests/exe')
-rwxr-xr-xtests/exe/ob-installplatconf.sh39
-rwxr-xr-xtests/exe/opkbuild.sh2
2 files changed, 3 insertions, 38 deletions
diff --git a/tests/exe/ob-installplatconf.sh b/tests/exe/ob-installplatconf.sh
index 1279428..f2311c0 100755
--- a/tests/exe/ob-installplatconf.sh
+++ b/tests/exe/ob-installplatconf.sh
@@ -27,46 +27,11 @@ plan_ 6
export OB_TEST_DATADIR=
for dir in 'foo' 'foo_1.0' 'foo_1.'; do
- OB_TEST_DATADIR="${TOP_SRCDIR}/tests/data/platconf_${dir}"
+ OB_TEST_DATADIR=${TOP_BUILDDIR}/tests/data.build/platconf_${dir}
rm -f 'poem'
command_ok_ 'ob-installplatconf exit status' -- \
ob-installplatconf
cmd_is 'correct file copied' cat 'poem' <<-EOF
- JABBERWOCKY
-
- 'Twas brillig, and the slithy toves
- Did gyre and gimble in the wabe;
- All mimsy were the borogoves,
- And the mome raths outgrabe.
-
- 'Beware the Jabberwock, my son!
- The jaws that bite, the claws that catch!
- Beware the Jubjub bird, and shun
- The frumious Bandersnatch!'
-
- He took his vorpal sword in hand:
- Long time the manxome foe he sought--
- So rested he by the Tumtum tree,
- And stood awhile in thought.
-
- And as in uffish thought he stood,
- The Jabberwock, with eyes of flame,
- Came whiffling through the tulgey wood,
- And burbled as it came!
-
- One, two! One, two! And through and through
- The vorpal blade went snicker-snack!
- He left it dead, and with its head
- He went galumphing back.
-
- 'And hast thou slain the Jabberwock?
- Come to my arms, my beamish boy!
- O frabjous day! Callooh! Callay!'
- He chortled in his joy.
-
- 'Twas brillig, and the slithy toves
- Did gyre and gimble in the wabe;
- All mimsy were the borogoves,
- And the mome raths outgrabe.
+ ${POEM_GOOD}
EOF
done
diff --git a/tests/exe/opkbuild.sh b/tests/exe/opkbuild.sh
index 13dc154..47fdcf7 100755
--- a/tests/exe/opkbuild.sh
+++ b/tests/exe/opkbuild.sh
@@ -41,7 +41,7 @@ ls_inner()
plan_ 12
-export OB_TEST_DATADIR="${TOP_SRCDIR}/tests/data/platconf_foo"
+export OB_TEST_DATADIR="${TOP_BUILDDIR}/tests/data.build/platconf_foo"
# Get out of and remove the work area.
cd '../'