test makepkg-template: Add missing-template-file
Signed-off-by: Florian Pritz <bluewind@xinu.at>
This commit is contained in:
parent
287f7a575e
commit
17ad845c41
2 changed files with 21 additions and 0 deletions
|
@ -0,0 +1,7 @@
|
||||||
|
pkgname=foo
|
||||||
|
pkgver=1
|
||||||
|
|
||||||
|
build() {
|
||||||
|
# template start; name=perl-module; version=1.0;
|
||||||
|
# template end;
|
||||||
|
}
|
|
@ -0,0 +1,14 @@
|
||||||
|
arguments+=()
|
||||||
|
expected_exitcode=2
|
||||||
|
|
||||||
|
_setup_testcase() {
|
||||||
|
ln -sr "templates/"{perl-module-1.0.template,perl-module.template}
|
||||||
|
}
|
||||||
|
|
||||||
|
# set IFS="" if you want trailing new lines, otherwise remove it
|
||||||
|
IFS="" read -d '' expected_output <<'EOF'
|
||||||
|
failed to open './makepkg-template-tests/missing-template-file/templates/perl-module-1.0.template': No such file or directory
|
||||||
|
EOF
|
||||||
|
|
||||||
|
IFS="" read -d '' expected_result <<'EOF'
|
||||||
|
EOF
|
Loading…
Add table
Reference in a new issue