[med-svn] [Git][med-team/swissknife][master] 4 commits: Add autopkgtests
Nilesh Patra
gitlab at salsa.debian.org
Fri Dec 25 09:34:43 GMT 2020
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 <npatra974 at gmail.com> 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 <debian-med-packaging at lists.alioth.debian.org>
Uploaders: Steffen Moeller <moeller at debian.org>,
- Andreas Tille <tille at debian.org>
+ Andreas Tille <tille at debian.org>,
+ Nilesh Patra <npatra974 at gmail.com>
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20201225/faa5580b/attachment-0001.html>
More information about the debian-med-commit
mailing list