[pacman-dev] [PATCH 04/11] test makepkg-template: Add invalid-template-line-unknown-marker
Florian Pritz
bluewind at xinu.at
Sun Dec 21 15:11:22 UTC 2014
Signed-off-by: Florian Pritz <bluewind at xinu.at>
---
.../invalid-template-line-unknown-marker/PKGBUILD | 9 +++++++++
.../invalid-template-line-unknown-marker/expected_output | 3 +++
2 files changed, 12 insertions(+)
create mode 100644 test/scripts/makepkg-template-tests/invalid-template-line-unknown-marker/PKGBUILD
create mode 100644 test/scripts/makepkg-template-tests/invalid-template-line-unknown-marker/expected_output
diff --git a/test/scripts/makepkg-template-tests/invalid-template-line-unknown-marker/PKGBUILD b/test/scripts/makepkg-template-tests/invalid-template-line-unknown-marker/PKGBUILD
new file mode 100644
index 0000000..645ea37
--- /dev/null
+++ b/test/scripts/makepkg-template-tests/invalid-template-line-unknown-marker/PKGBUILD
@@ -0,0 +1,9 @@
+pkgname=foo
+pkgver=1
+
+build() {
+# template boom; name=test
+perl Makefile.pl
+make
+# template end;
+}
diff --git a/test/scripts/makepkg-template-tests/invalid-template-line-unknown-marker/expected_output b/test/scripts/makepkg-template-tests/invalid-template-line-unknown-marker/expected_output
new file mode 100644
index 0000000..b233374
--- /dev/null
+++ b/test/scripts/makepkg-template-tests/invalid-template-line-unknown-marker/expected_output
@@ -0,0 +1,3 @@
+Unknown template marker 'boom'
+./makepkg-template-tests/invalid-template-line-unknown-marker/PKGBUILD:5: # template boom; name=test
+255
--
2.2.1
More information about the pacman-dev
mailing list