[pacman-dev] [PATCH 07/11] test makepkg-template: Add missing-template-symlink

Florian Pritz bluewind at xinu.at
Sun Dec 21 15:11:25 UTC 2014


Signed-off-by: Florian Pritz <bluewind at xinu.at>
---
 .../makepkg-template-tests/missing-template-symlink/PKGBUILD       | 7 +++++++
 .../missing-template-symlink/expected_output                       | 2 ++
 .../missing-template-symlink/templates/perl-module-1.0.template    | 1 +
 3 files changed, 10 insertions(+)
 create mode 100644 test/scripts/makepkg-template-tests/missing-template-symlink/PKGBUILD
 create mode 100644 test/scripts/makepkg-template-tests/missing-template-symlink/expected_output
 create mode 100644 test/scripts/makepkg-template-tests/missing-template-symlink/templates/perl-module-1.0.template

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/expected_output b/test/scripts/makepkg-template-tests/missing-template-symlink/expected_output
new file mode 100644
index 0000000..17488ac
--- /dev/null
+++ b/test/scripts/makepkg-template-tests/missing-template-symlink/expected_output
@@ -0,0 +1,2 @@
+Couldn't detect version for template 'perl-module'
+255
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
-- 
2.2.1


More information about the pacman-dev mailing list