diff options
author | Florian Pritz <bluewind@xinu.at> | 2014-12-21 15:48:57 +0100 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2015-01-11 18:58:24 +1000 |
commit | 17ad845c41c5713ca62e6cea47948a82a2d601a1 (patch) | |
tree | 70e9fbf97153e638c76262b4402fe2593c9fa8ca /test | |
parent | 287f7a575e8d09d695a9a3e9a95c0196f03648f4 (diff) | |
download | pacman-17ad845c41c5713ca62e6cea47948a82a2d601a1.tar.xz |
test makepkg-template: Add missing-template-file
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'test')
-rw-r--r-- | test/scripts/makepkg-template-tests/missing-template-file/PKGBUILD | 7 | ||||
-rw-r--r-- | test/scripts/makepkg-template-tests/missing-template-file/testcase-config | 14 |
2 files changed, 21 insertions, 0 deletions
diff --git a/test/scripts/makepkg-template-tests/missing-template-file/PKGBUILD b/test/scripts/makepkg-template-tests/missing-template-file/PKGBUILD new file mode 100644 index 00000000..dbfda1dd --- /dev/null +++ b/test/scripts/makepkg-template-tests/missing-template-file/PKGBUILD @@ -0,0 +1,7 @@ +pkgname=foo +pkgver=1 + +build() { +# template start; name=perl-module; version=1.0; +# template end; +} diff --git a/test/scripts/makepkg-template-tests/missing-template-file/testcase-config b/test/scripts/makepkg-template-tests/missing-template-file/testcase-config new file mode 100644 index 00000000..bdfde40d --- /dev/null +++ b/test/scripts/makepkg-template-tests/missing-template-file/testcase-config @@ -0,0 +1,14 @@ +arguments+=() +expected_exitcode=2 + +_setup_testcase() { + ln -sr "templates/"{perl-module-1.0.template,perl-module.template} +} + +# set IFS="" if you want trailing new lines, otherwise remove it +IFS="" read -d '' expected_output <<'EOF' +failed to open './makepkg-template-tests/missing-template-file/templates/perl-module-1.0.template': No such file or directory +EOF + +IFS="" read -d '' expected_result <<'EOF' +EOF |