[pacman-dev] [PATCH v4 07/11] test makepkg-template: Add missing-template-symlink
Florian Pritz
bluewind at xinu.at
Sun Dec 28 15:23:44 UTC 2014
Signed-off-by: Florian Pritz <bluewind at xinu.at>
---
.../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
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 0000000..8ee94ac
--- /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 0000000..f499d25
--- /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 0000000..c0eabe0
--- /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
--
2.2.1
More information about the pacman-dev
mailing list