[med-svn] [Git][med-team/seaview][master] 2 commits: Add autopkgtest
Andreas Tille
gitlab at salsa.debian.org
Wed May 9 14:18:24 BST 2018
Andreas Tille pushed to branch master at Debian Med / seaview
Commits:
80b3b63a by Andreas Tille at 2018-05-09T14:39:25+02:00
Add autopkgtest
- - - - -
1b4e73e7 by Andreas Tille at 2018-05-09T15:18:13+02:00
Upload to unstable
- - - - -
5 changed files:
- + debian/README.test
- debian/changelog
- debian/docs
- + debian/tests/control
- + debian/tests/run-unit-test
Changes:
=====================================
debian/README.test
=====================================
--- /dev/null
+++ b/debian/README.test
@@ -0,0 +1,8 @@
+Notes on how this package can be tested.
+────────────────────────────────────────
+
+To run the unit tests provided by the package you can do
+
+ sh run-unit-test
+
+in this directory.
=====================================
debian/changelog
=====================================
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,10 +1,11 @@
-seaview (1:4.7-1) UNRELEASED; urgency=medium
+seaview (1:4.7-1) unstable; urgency=medium
* New upstream version
* Drop patch since upstream has fixed Makefile
* Re-add example which was lost by accident
+ * Add autopkgtest
- -- Andreas Tille <tille at debian.org> Wed, 09 May 2018 14:09:47 +0200
+ -- Andreas Tille <tille at debian.org> Wed, 09 May 2018 14:39:32 +0200
seaview (1:4.6.5-1) unstable; urgency=medium
=====================================
debian/docs
=====================================
--- a/debian/docs
+++ b/debian/docs
@@ -1 +1,3 @@
seaview.html
+debian/tests/run-unit-test
+debian/README.test
\ No newline at end of file
=====================================
debian/tests/control
=====================================
--- /dev/null
+++ b/debian/tests/control
@@ -0,0 +1,3 @@
+Tests: run-unit-test
+Depends: @
+Restrictions: allow-stderr
=====================================
debian/tests/run-unit-test
=====================================
--- /dev/null
+++ b/debian/tests/run-unit-test
@@ -0,0 +1,21 @@
+#!/bin/bash
+set -e
+
+pkg="seaview"
+
+if [ "$AUTOPKGTEST_TMP" = "" ] ; then
+ AUTOPKGTEST_TMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
+fi
+
+cp -a /usr/share/doc/${pkg}/examples/* $AUTOPKGTEST_TMP
+
+cd $AUTOPKGTEST_TMP
+
+gunzip *.gz
+
+seaview -build_tree -distance K2P -o tree.ph example.nxs
+
+# This requires PDF support
+seaview -plotonly -svg tree.ph
+
+echo "PASS"
View it on GitLab: https://salsa.debian.org/med-team/seaview/compare/b5aefb54f7e92027ac1e0776d4e13dea591aa77b...1b4e73e7190fe241ffc85afbdf9f94021ac658d8
---
View it on GitLab: https://salsa.debian.org/med-team/seaview/compare/b5aefb54f7e92027ac1e0776d4e13dea591aa77b...1b4e73e7190fe241ffc85afbdf9f94021ac658d8
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/20180509/217f3407/attachment-0001.html>
More information about the debian-med-commit
mailing list