diff options
author | Florian Pritz <bluewind@xinu.at> | 2014-12-21 15:48:57 +0100 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2015-01-11 09:58:24 +0100 |
commit | 207ba1e05f79e30c1cbae84549311c8a1e370c93 (patch) | |
tree | 9b406be7484bb874f7456c5b4b9f594c340dc177 /test | |
parent | ca5af32b9931172387cf3df47cece22bf1523186 (diff) | |
download | pacman-207ba1e05f79e30c1cbae84549311c8a1e370c93.tar.gz pacman-207ba1e05f79e30c1cbae84549311c8a1e370c93.tar.xz |
test makepkg-template: Add invalid-key
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'test')
-rw-r--r-- | test/scripts/makepkg-template-tests/invalid-key/PKGBUILD | 1 | ||||
-rw-r--r-- | test/scripts/makepkg-template-tests/invalid-key/testcase-config | 11 |
2 files changed, 12 insertions, 0 deletions
diff --git a/test/scripts/makepkg-template-tests/invalid-key/PKGBUILD b/test/scripts/makepkg-template-tests/invalid-key/PKGBUILD new file mode 100644 index 00000000..02bfadcc --- /dev/null +++ b/test/scripts/makepkg-template-tests/invalid-key/PKGBUILD @@ -0,0 +1 @@ +# template input; []³|>=bar; diff --git a/test/scripts/makepkg-template-tests/invalid-key/testcase-config b/test/scripts/makepkg-template-tests/invalid-key/testcase-config new file mode 100644 index 00000000..4e4725e2 --- /dev/null +++ b/test/scripts/makepkg-template-tests/invalid-key/testcase-config @@ -0,0 +1,11 @@ +arguments+=() +expected_exitcode=255 + +# set IFS="" if you want trailing new lines, otherwise remove it +IFS="" read -d '' expected_output <<'EOF' +invalid key/value pair +./makepkg-template-tests/invalid-key/PKGBUILD:1: # template input; []³|>=bar; +EOF + +IFS="" read -d '' expected_result <<'EOF' +EOF |