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 | 4dd9ccbc7883ddaaba7f633dba2a4bb3ef5ffcc3 (patch) | |
tree | 397aa36c43280567e248db94d2fa37624b6fd2dd | |
parent | 17ad845c41c5713ca62e6cea47948a82a2d601a1 (diff) | |
download | pacman-4dd9ccbc7883ddaaba7f633dba2a4bb3ef5ffcc3.tar.gz pacman-4dd9ccbc7883ddaaba7f633dba2a4bb3ef5ffcc3.tar.xz |
test makepkg-template: Add missing-template-symlink
Signed-off-by: Florian Pritz <bluewind@xinu.at>
3 files changed, 17 insertions, 0 deletions
diff --git a/test/scripts/makepkg-template-tests/missing-template-symlink/PKGBUILD b/test/scripts/makepkg-template-tests/missing-template-symlink/PKGBUILD new file mode 100644 index 00000000..8ee94aca --- /dev/null +++ b/test/scripts/makepkg-template-tests/missing-template-symlink/PKGBUILD @@ -0,0 +1,7 @@ +pkgname=foo +pkgver=1 + +build() { +# template start; name=perl-module; +# template end; +} diff --git a/test/scripts/makepkg-template-tests/missing-template-symlink/templates/perl-module-1.0.template b/test/scripts/makepkg-template-tests/missing-template-symlink/templates/perl-module-1.0.template new file mode 100644 index 00000000..f499d252 --- /dev/null +++ b/test/scripts/makepkg-template-tests/missing-template-symlink/templates/perl-module-1.0.template @@ -0,0 +1 @@ +this should not be included diff --git a/test/scripts/makepkg-template-tests/missing-template-symlink/testcase-config b/test/scripts/makepkg-template-tests/missing-template-symlink/testcase-config new file mode 100644 index 00000000..c0eabe0d --- /dev/null +++ b/test/scripts/makepkg-template-tests/missing-template-symlink/testcase-config @@ -0,0 +1,9 @@ +arguments+=() +expected_exitcode=255 + +IFS="" read -d '' expected_output <<'EOF' +Couldn't detect version for template 'perl-module' +EOF + +IFS="" read -d '' expected_result <<'EOF' +EOF |