test makepkg-template: Add name-charset-invalid

Signed-off-by: Florian Pritz <bluewind@xinu.at>
This commit is contained in:
Florian Pritz 2014-12-21 15:48:57 +01:00 committed by Allan McRae
parent 4dd9ccbc78
commit 6201f6e5ac
2 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,8 @@
pkgname=foo
pkgver=1
build() {
# template start; name=foo/
make install
# template end;
}

View File

@ -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