mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-22 07:48:50 -05:00
test makepkg-template: Add update-version-with-newest-option
Signed-off-by: Florian Pritz <bluewind@xinu.at>
This commit is contained in:
parent
d5f703729f
commit
0108884952
@ -0,0 +1,7 @@
|
||||
pkgname=foo
|
||||
pkgver=1
|
||||
|
||||
build() {
|
||||
# template start; name=perl-module; version=1.0
|
||||
# template end;
|
||||
}
|
@ -0,0 +1 @@
|
||||
bla bla
|
@ -0,0 +1,6 @@
|
||||
echo "before bla template"
|
||||
# template input; name=perl-bla
|
||||
echo "after bla template"
|
||||
perl Makefile.pl
|
||||
make
|
||||
make install
|
@ -0,0 +1,7 @@
|
||||
echo "perl-module version 1.1"
|
||||
echo "before bla template"
|
||||
# template input; name=perl-bla
|
||||
echo "after bla template"
|
||||
perl Makefile.pl
|
||||
make
|
||||
make install
|
@ -0,0 +1,29 @@
|
||||
arguments+=(-n)
|
||||
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}
|
||||
}
|
||||
|
||||
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.1;
|
||||
echo "perl-module version 1.1"
|
||||
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
|
Loading…
Reference in New Issue
Block a user