summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-06-17 17:23:55 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-06-17 17:23:55 (EDT)
commit76c1ceeb4d3ea591e1843b2178864545892e4cee (patch)
tree6b3f2c6f726357dfe471c44d2682b519dc5e8d36
parent4351e99efdc4e66b441e001b91c5b942c706331b (diff)
tests: Add platconf
-rw-r--r--tests/data/pkg/platconf1
-rw-r--r--tests/data/platconf_foo/platconf/x60/bar/poem6
-rw-r--r--tests/data/platconf_foo/platconf/x60/foo/poem36
-rw-r--r--tests/data/platconf_foo_1.0/platconf/x60/foo_1.0/poem36
-rw-r--r--tests/data/platconf_foo_1.0/platconf/x60/foo_2.0/poem6
-rwxr-xr-xtests/exe/opkbuild.sh2
-rw-r--r--tests/local.mk5
7 files changed, 92 insertions, 0 deletions
diff --git a/tests/data/pkg/platconf b/tests/data/pkg/platconf
new file mode 100644
index 0000000..90e8d29
--- /dev/null
+++ b/tests/data/pkg/platconf
@@ -0,0 +1 @@
+poem poem
diff --git a/tests/data/platconf_foo/platconf/x60/bar/poem b/tests/data/platconf_foo/platconf/x60/bar/poem
new file mode 100644
index 0000000..31953a1
--- /dev/null
+++ b/tests/data/platconf_foo/platconf/x60/bar/poem
@@ -0,0 +1,6 @@
+ YKCOWREBBAJ
+
+sevot yhtils eht dna,gillirb sawT’
+ ebaw eht ni elbmig dna eryg diD
+ ,sevogorob eht erew ysmim llA
+ .ebargtuo shtar emom eht dnA
diff --git a/tests/data/platconf_foo/platconf/x60/foo/poem b/tests/data/platconf_foo/platconf/x60/foo/poem
new file mode 100644
index 0000000..2566444
--- /dev/null
+++ b/tests/data/platconf_foo/platconf/x60/foo/poem
@@ -0,0 +1,36 @@
+ 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.
diff --git a/tests/data/platconf_foo_1.0/platconf/x60/foo_1.0/poem b/tests/data/platconf_foo_1.0/platconf/x60/foo_1.0/poem
new file mode 100644
index 0000000..2566444
--- /dev/null
+++ b/tests/data/platconf_foo_1.0/platconf/x60/foo_1.0/poem
@@ -0,0 +1,36 @@
+ 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.
diff --git a/tests/data/platconf_foo_1.0/platconf/x60/foo_2.0/poem b/tests/data/platconf_foo_1.0/platconf/x60/foo_2.0/poem
new file mode 100644
index 0000000..31953a1
--- /dev/null
+++ b/tests/data/platconf_foo_1.0/platconf/x60/foo_2.0/poem
@@ -0,0 +1,6 @@
+ YKCOWREBBAJ
+
+sevot yhtils eht dna,gillirb sawT’
+ ebaw eht ni elbmig dna eryg diD
+ ,sevogorob eht erew ysmim llA
+ .ebargtuo shtar emom eht dnA
diff --git a/tests/exe/opkbuild.sh b/tests/exe/opkbuild.sh
index f9e0529..13dc154 100755
--- a/tests/exe/opkbuild.sh
+++ b/tests/exe/opkbuild.sh
@@ -41,6 +41,8 @@ ls_inner()
plan_ 12
+export OB_TEST_DATADIR="${TOP_SRCDIR}/tests/data/platconf_foo"
+
# Get out of and remove the work area.
cd '../'
rm -Rf 'src/' 'tmp/'
diff --git a/tests/local.mk b/tests/local.mk
index 1e4138c..2a3ebde 100644
--- a/tests/local.mk
+++ b/tests/local.mk
@@ -46,7 +46,12 @@ EXTRA_DIST += \
tests/data/pkg/foo.pkg/docs \
tests/data/pkg/format \
tests/data/pkg/patches/01_goodbye.patch \
+ tests/data/pkg/platconf \
tests/data/pkg/substvars \
+ tests/data/platconf_foo/platconf/x60/bar/poem \
+ tests/data/platconf_foo/platconf/x60/foo/poem \
+ tests/data/platconf_foo_1.0/platconf/x60/foo_1.0/poem \
+ tests/data/platconf_foo_1.0/platconf/x60/foo_2.0/poem \
tests/data/src/src/foo.sh
distclean-local: