[pacman-dev] [PATCH 06/11] test makepkg-template: Add missing-template-file

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


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

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 0000000..dbfda1d
--- /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/expected_output b/test/scripts/makepkg-template-tests/missing-template-file/expected_output
new file mode 100644
index 0000000..975fa9d
--- /dev/null
+++ b/test/scripts/makepkg-template-tests/missing-template-file/expected_output
@@ -0,0 +1,2 @@
+failed to open './makepkg-template-tests/missing-template-file/templates/perl-module-1.0.template': No such file or directory
+2
diff --git a/test/scripts/makepkg-template-tests/missing-template-file/templates/perl-module.template b/test/scripts/makepkg-template-tests/missing-template-file/templates/perl-module.template
new file mode 120000
index 0000000..8c2189a
--- /dev/null
+++ b/test/scripts/makepkg-template-tests/missing-template-file/templates/perl-module.template
@@ -0,0 +1 @@
+perl-module-1.0.template
\ No newline at end of file
-- 
2.2.1


More information about the pacman-dev mailing list