1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-11-14 13:25:09 -05:00
pacman/test/scripts/makepkg-template-tests/keep-old-version/testcase-config
Florian Pritz 287f7a575e test makepkg-template: Add keep-old-version
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-01-11 18:58:24 +10:00

30 lines
603 B
Plaintext

arguments+=()
expected_exitcode=0
_setup_testcase() {
ln -sr "templates/"{perl-bla-1.2.template,perl-bla.template}
ln -sr "templates/"{perl-module-1.1.template,perl-module.template}
}
# set IFS="" if you want trailing new lines, otherwise remove it
IFS="" read -d '' expected_output <<'EOF'
EOF
IFS="" read -d '' expected_result <<'EOF'
pkgname=foo
pkgver=1
build() {
# template start; name=perl-module; version=1.0;
echo "before bla template"
# template start; name=perl-bla; version=1.2;
bla bla
# template end;
echo "after bla template"
perl Makefile.pl
make
make install
# template end;
}
EOF