From 4dd9ccbc7883ddaaba7f633dba2a4bb3ef5ffcc3 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sun, 21 Dec 2014 15:48:57 +0100 Subject: test makepkg-template: Add missing-template-symlink Signed-off-by: Florian Pritz --- .../makepkg-template-tests/missing-template-symlink/PKGBUILD | 7 +++++++ .../missing-template-symlink/templates/perl-module-1.0.template | 1 + .../missing-template-symlink/testcase-config | 9 +++++++++ 3 files changed, 17 insertions(+) create mode 100644 test/scripts/makepkg-template-tests/missing-template-symlink/PKGBUILD create mode 100644 test/scripts/makepkg-template-tests/missing-template-symlink/templates/perl-module-1.0.template create mode 100644 test/scripts/makepkg-template-tests/missing-template-symlink/testcase-config (limited to 'test/scripts/makepkg-template-tests/missing-template-symlink') 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 -- cgit v1.2.3-70-g09d2