test makepkg-template: Add invalid-template-line-unknown-marker

Signed-off-by: Florian Pritz <bluewind@xinu.at>
This commit is contained in:
Florian Pritz 2014-12-21 15:48:57 +01:00 committed by Allan McRae
parent 107eabdfb3
commit dfacd8473e
2 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,9 @@
pkgname=foo
pkgver=1
build() {
# template boom; name=test
perl Makefile.pl
make
# template end;
}

View File

@ -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