From 6201f6e5acca08268d6a019a72b76c1318d4dbd5 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sun, 21 Dec 2014 15:48:57 +0100 Subject: test makepkg-template: Add name-charset-invalid Signed-off-by: Florian Pritz --- .../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 (limited to 'test/scripts') 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 00000000..36ed75bb --- /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 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 -- cgit v1.2.3-70-g09d2