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

Florian Pritz bluewind at xinu.at
Sun Dec 28 15:23:45 UTC 2014


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

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/testcase-config b/test/scripts/makepkg-template-tests/name-charset-invalid/testcase-config
new file mode 100644
index 0000000..7ea9502
--- /dev/null
+++ b/test/scripts/makepkg-template-tests/name-charset-invalid/testcase-config
@@ -0,0 +1,10 @@
+arguments+=()
+expected_exitcode=255
+
+IFS="" read -d '' expected_output <<'EOF'
+invalid chars used in name 'foo/'. allowed: [:alnum:]+_. at -
+./makepkg-template-tests/name-charset-invalid/PKGBUILD:5: # template start; name=foo/
+EOF
+
+IFS="" read -d '' expected_result <<'EOF'
+EOF
-- 
2.2.1


More information about the pacman-dev mailing list