diff options
author | Florian Pritz <bluewind@xinu.at> | 2014-12-21 15:48:57 +0100 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2015-01-11 09:58:24 +0100 |
commit | dfacd8473e6d83042f5d01f2cfc61b7bd43a7617 (patch) | |
tree | c83a2ba12433780c64c9c17f4a59e9e051826524 /test/scripts/makepkg-template-tests | |
parent | 107eabdfb34891824807f6dc9c1e40fb91c76c26 (diff) | |
download | pacman-dfacd8473e6d83042f5d01f2cfc61b7bd43a7617.tar.gz pacman-dfacd8473e6d83042f5d01f2cfc61b7bd43a7617.tar.xz |
test makepkg-template: Add invalid-template-line-unknown-marker
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'test/scripts/makepkg-template-tests')
-rw-r--r-- | test/scripts/makepkg-template-tests/invalid-template-line-unknown-marker/PKGBUILD | 9 | ||||
-rw-r--r-- | test/scripts/makepkg-template-tests/invalid-template-line-unknown-marker/testcase-config | 11 |
2 files changed, 20 insertions, 0 deletions
diff --git a/test/scripts/makepkg-template-tests/invalid-template-line-unknown-marker/PKGBUILD b/test/scripts/makepkg-template-tests/invalid-template-line-unknown-marker/PKGBUILD new file mode 100644 index 00000000..645ea371 --- /dev/null +++ b/test/scripts/makepkg-template-tests/invalid-template-line-unknown-marker/PKGBUILD @@ -0,0 +1,9 @@ +pkgname=foo +pkgver=1 + +build() { +# template boom; name=test +perl Makefile.pl +make +# template end; +} diff --git a/test/scripts/makepkg-template-tests/invalid-template-line-unknown-marker/testcase-config b/test/scripts/makepkg-template-tests/invalid-template-line-unknown-marker/testcase-config new file mode 100644 index 00000000..077a85c3 --- /dev/null +++ b/test/scripts/makepkg-template-tests/invalid-template-line-unknown-marker/testcase-config @@ -0,0 +1,11 @@ +arguments+=() +expected_exitcode=255 + +# set IFS="" if you want trailing new lines, otherwise remove it +IFS="" read -d '' expected_output <<'EOF' +Unknown template marker 'boom' +./makepkg-template-tests/invalid-template-line-unknown-marker/PKGBUILD:5: # template boom; name=test +EOF + +IFS="" read -d '' expected_result <<'EOF' +EOF |