Signed-off-by: Florian Pritz <bluewind@xinu.at> --- .../invalid-template-line-unknown-marker/PKGBUILD | 9 +++++++++ .../invalid-template-line-unknown-marker/testcase-config | 11 +++++++++++ 2 files changed, 20 insertions(+) create mode 100644 test/scripts/makepkg-template-tests/invalid-template-line-unknown-marker/PKGBUILD create mode 100644 test/scripts/makepkg-template-tests/invalid-template-line-unknown-marker/testcase-config diff --git a/test/scripts/makepkg-template-tests/invalid-template-line-unknown-marker/PKGBUILD b/test/scripts/makepkg-template-tests/invalid-template-line-unknown-marker/PKGBUILD new file mode 100644 index 0000000..645ea37 --- /dev/null +++ b/test/scripts/makepkg-template-tests/invalid-template-line-unknown-marker/PKGBUILD @@ -0,0 +1,9 @@ +pkgname=foo +pkgver=1 + +build() { +# template boom; name=test +perl Makefile.pl +make +# template end; +} diff --git a/test/scripts/makepkg-template-tests/invalid-template-line-unknown-marker/testcase-config b/test/scripts/makepkg-template-tests/invalid-template-line-unknown-marker/testcase-config new file mode 100644 index 0000000..077a85c --- /dev/null +++ b/test/scripts/makepkg-template-tests/invalid-template-line-unknown-marker/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' +Unknown template marker 'boom' +./makepkg-template-tests/invalid-template-line-unknown-marker/PKGBUILD:5: # template boom; name=test +EOF + +IFS="" read -d '' expected_result <<'EOF' +EOF -- 2.2.1