diff options
-rw-r--r-- | tests/data/pkg/platconf | 1 | ||||
-rw-r--r-- | tests/data/platconf_foo/platconf/x60/bar/poem | 6 | ||||
-rw-r--r-- | tests/data/platconf_foo/platconf/x60/foo/poem | 36 | ||||
-rw-r--r-- | tests/data/platconf_foo_1.0/platconf/x60/foo_1.0/poem | 36 | ||||
-rw-r--r-- | tests/data/platconf_foo_1.0/platconf/x60/foo_2.0/poem | 6 | ||||
-rwxr-xr-x | tests/exe/opkbuild.sh | 2 | ||||
-rw-r--r-- | tests/local.mk | 5 |
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: |