mirror of
https://github.com/moparisthebest/pacman
synced 2025-02-28 17:31:52 -05:00
test makepkg-template: Add missing-template-file
Signed-off-by: Florian Pritz <bluewind@xinu.at>
This commit is contained in:
parent
287f7a575e
commit
17ad845c41
@ -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…
x
Reference in New Issue
Block a user