From 207ba1e05f79e30c1cbae84549311c8a1e370c93 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sun, 21 Dec 2014 15:48:57 +0100 Subject: test makepkg-template: Add invalid-key Signed-off-by: Florian Pritz --- test/scripts/makepkg-template-tests/invalid-key/PKGBUILD | 1 + .../makepkg-template-tests/invalid-key/testcase-config | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 test/scripts/makepkg-template-tests/invalid-key/PKGBUILD create mode 100644 test/scripts/makepkg-template-tests/invalid-key/testcase-config (limited to 'test') 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 -- cgit v1.2.3-70-g09d2