Nilesh Patra pushed to branch master at Debian Med / swissknife
Commits: ab294458 by Nilesh Patra at 2020-12-25T14:27:25+05:30 Add autopkgtests - - - - - b7ea63d1 by Nilesh Patra at 2020-12-25T14:50:05+05:30 Install examples post overriding - - - - - a0642a87 by Nilesh Patra at 2020-12-25T14:59:06+05:30 Add myself to uploaders - - - - - 3b88dd5a by Nilesh Patra at 2020-12-25T14:59:29+05:30 Release to unstable - - - - - 5 changed files: - debian/changelog - debian/control - debian/rules - + debian/tests/control - + debian/tests/run-unit-test Changes: ===================================== debian/changelog ===================================== @@ -1,3 +1,10 @@ +swissknife (1.79-2) unstable; urgency=medium + + * Add autopkgtests + * Install examples post overriding + + -- Nilesh Patra <[email protected]> Fri, 25 Dec 2020 14:58:13 +0530 + swissknife (1.79-1) unstable; urgency=medium * New upstream version. ===================================== debian/control ===================================== @@ -1,7 +1,8 @@ Source: swissknife Maintainer: Debian Med Packaging Team <[email protected]> Uploaders: Steffen Moeller <[email protected]>, - Andreas Tille <[email protected]> + Andreas Tille <[email protected]>, + Nilesh Patra <[email protected]> Section: perl Testsuite: autopkgtest-pkg-perl Priority: optional ===================================== debian/rules ===================================== @@ -4,5 +4,5 @@ dh $@ override_dh_installexamples: - dh_install - find debian -name "*.dat" | xargs -r chmod --x + dh_installexamples + find debian -name "*.dat" | xargs -r chmod -x ===================================== debian/tests/control ===================================== @@ -0,0 +1,3 @@ +Tests: run-unit-test +Depends: @ +Restrictions: allow-stderr ===================================== debian/tests/run-unit-test ===================================== @@ -0,0 +1,22 @@ +#!/bin/bash +set -e + +pkg="libswiss-perl" + +if [ "$AUTOPKGTEST_TMP" = "" ] ; then + AUTOPKGTEST_TMP=`mktemp -d /tmp/${pkg}-test.XXXXXX` + trap "rm -rf $AUTOPKGTEST_TMP" 0 INT QUIT ABRT PIPE TERM +fi + +cp -a /usr/share/doc/${pkg}/examples/* $AUTOPKGTEST_TMP + +cd $AUTOPKGTEST_TMP +gunzip -r * + +echo "Execute example" +./example.pl SWISS100.dat > test1 +[ -s test1 ] && head -20 test1 && rm -f test1 +./example.pl varsplic.dat > test2 +[ -s test2 ] && head -20 test2 && rm -f test2 +echo "=======================================" +echo "PASS" View it on GitLab: https://salsa.debian.org/med-team/swissknife/-/compare/f6104f8eca1e714214b428677fc68592146b412f...3b88dd5af83b44ccf75de552b906d3e8e10c1d5b -- View it on GitLab: https://salsa.debian.org/med-team/swissknife/-/compare/f6104f8eca1e714214b428677fc68592146b412f...3b88dd5af83b44ccf75de552b906d3e8e10c1d5b You're receiving this email because of your account on salsa.debian.org.
_______________________________________________ debian-med-commit mailing list [email protected] https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-med-commit
