mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-22 15:58:50 -05:00
test makepkg-template: Add invalid-template-line-unknown-marker
Signed-off-by: Florian Pritz <bluewind@xinu.at>
This commit is contained in:
parent
107eabdfb3
commit
dfacd8473e
@ -0,0 +1,9 @@
|
|||||||
|
pkgname=foo
|
||||||
|
pkgver=1
|
||||||
|
|
||||||
|
build() {
|
||||||
|
# template boom; name=test
|
||||||
|
perl Makefile.pl
|
||||||
|
make
|
||||||
|
# template end;
|
||||||
|
}
|
@ -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
|
Loading…
Reference in New Issue
Block a user