diff options
author | Florian Pritz <bluewind@xinu.at> | 2014-12-21 15:48:57 +0100 |
---|---|---|
committer | Allan McRae <allan@archlinux.org> | 2015-01-11 09:58:24 +0100 |
commit | 287f7a575e8d09d695a9a3e9a95c0196f03648f4 (patch) | |
tree | 387cfb347036bd6f65640e02d46a7726d0e493c3 /test/scripts/makepkg-template-tests/keep-old-version/testcase-config | |
parent | dfacd8473e6d83042f5d01f2cfc61b7bd43a7617 (diff) | |
download | pacman-287f7a575e8d09d695a9a3e9a95c0196f03648f4.tar.gz pacman-287f7a575e8d09d695a9a3e9a95c0196f03648f4.tar.xz |
test makepkg-template: Add keep-old-version
Signed-off-by: Florian Pritz <bluewind@xinu.at>
Diffstat (limited to 'test/scripts/makepkg-template-tests/keep-old-version/testcase-config')
-rw-r--r-- | test/scripts/makepkg-template-tests/keep-old-version/testcase-config | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/test/scripts/makepkg-template-tests/keep-old-version/testcase-config b/test/scripts/makepkg-template-tests/keep-old-version/testcase-config new file mode 100644 index 00000000..b9448a08 --- /dev/null +++ b/test/scripts/makepkg-template-tests/keep-old-version/testcase-config @@ -0,0 +1,29 @@ +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 |