From 107eabdfb34891824807f6dc9c1e40fb91c76c26 Mon Sep 17 00:00:00 2001 From: Florian Pritz Date: Sun, 21 Dec 2014 15:48:57 +0100 Subject: [PATCH] test makepkg-template: Add invalid-template-line-missing-name Signed-off-by: Florian Pritz --- .../invalid-template-line-missing-name/PKGBUILD | 1 + .../testcase-config | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 test/scripts/makepkg-template-tests/invalid-template-line-missing-name/PKGBUILD create mode 100644 test/scripts/makepkg-template-tests/invalid-template-line-missing-name/testcase-config diff --git a/test/scripts/makepkg-template-tests/invalid-template-line-missing-name/PKGBUILD b/test/scripts/makepkg-template-tests/invalid-template-line-missing-name/PKGBUILD new file mode 100644 index 00000000..d0a20c18 --- /dev/null +++ b/test/scripts/makepkg-template-tests/invalid-template-line-missing-name/PKGBUILD @@ -0,0 +1 @@ +# template input; diff --git a/test/scripts/makepkg-template-tests/invalid-template-line-missing-name/testcase-config b/test/scripts/makepkg-template-tests/invalid-template-line-missing-name/testcase-config new file mode 100644 index 00000000..6bfda327 --- /dev/null +++ b/test/scripts/makepkg-template-tests/invalid-template-line-missing-name/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 template line: can't find template name +./makepkg-template-tests/invalid-template-line-missing-name/PKGBUILD:1: # template input; +EOF + +IFS="" read -d '' expected_result <<'EOF' +EOF