[pacman-dev] [PATCH 08/11] test makepkg-template: Add name-charset-invalid

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


Signed-off-by: Florian Pritz <bluewind at xinu.at>
---
 test/scripts/makepkg-template-tests/name-charset-invalid/PKGBUILD | 8 ++++++++
 .../makepkg-template-tests/name-charset-invalid/expected_output   | 3 +++
 2 files changed, 11 insertions(+)
 create mode 100644 test/scripts/makepkg-template-tests/name-charset-invalid/PKGBUILD
 create mode 100644 test/scripts/makepkg-template-tests/name-charset-invalid/expected_output

diff --git a/test/scripts/makepkg-template-tests/name-charset-invalid/PKGBUILD b/test/scripts/makepkg-template-tests/name-charset-invalid/PKGBUILD
new file mode 100644
index 0000000..36ed75b
--- /dev/null
+++ b/test/scripts/makepkg-template-tests/name-charset-invalid/PKGBUILD
@@ -0,0 +1,8 @@
+pkgname=foo
+pkgver=1
+
+build() {
+# template start; name=foo/
+make install
+# template end;
+}
diff --git a/test/scripts/makepkg-template-tests/name-charset-invalid/expected_output b/test/scripts/makepkg-template-tests/name-charset-invalid/expected_output
new file mode 100644
index 0000000..a8651a9
--- /dev/null
+++ b/test/scripts/makepkg-template-tests/name-charset-invalid/expected_output
@@ -0,0 +1,3 @@
+invalid chars used in name 'foo/'. allowed: [:alnum:]+_. at -
+./makepkg-template-tests/name-charset-invalid/PKGBUILD:5: # template start; name=foo/
+255
-- 
2.2.1


More information about the pacman-dev mailing list