Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/test/scripts/makepkg-template-tests/name-charset-invalid/testcase-config
diff options
context:
space:
mode:
authorFlorian Pritz <bluewind@xinu.at>2014-12-21 15:48:57 +0100
committerAllan McRae <allan@archlinux.org>2015-01-11 18:58:24 +1000
commit6201f6e5acca08268d6a019a72b76c1318d4dbd5 (patch)
tree316b89f1734521010a689ffa084a8e03c854a65a /test/scripts/makepkg-template-tests/name-charset-invalid/testcase-config
parent4dd9ccbc7883ddaaba7f633dba2a4bb3ef5ffcc3 (diff)
test makepkg-template: Add name-charset-invalid
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'test/scripts/makepkg-template-tests/name-charset-invalid/testcase-config')
-rw-r--r--test/scripts/makepkg-template-tests/name-charset-invalid/testcase-config10
1 files changed, 10 insertions, 0 deletions
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 00000000..7ea9502c
--- /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:]+_.@-
+./makepkg-template-tests/name-charset-invalid/PKGBUILD:5: # template start; name=foo/
+EOF
+
+IFS="" read -d '' expected_result <<'EOF'
+EOF