[med-svn] [Git][med-team/nanostat][master] 5 commits: Add autopkgtest

Andreas Tille gitlab at salsa.debian.org
Tue Dec 1 13:26:59 GMT 2020



Andreas Tille pushed to branch master at Debian Med / nanostat


Commits:
43127526 by Andreas Tille at 2020-12-01T14:08:23+01:00
Add autopkgtest

- - - - -
ce13991d by Andreas Tille at 2020-12-01T14:12:36+01:00
Remove example test script from Python3 install dir

- - - - -
b659bebb by Andreas Tille at 2020-12-01T14:13:01+01:00
routine-update: Standards-Version: 4.5.1

- - - - -
3c6f556b by Andreas Tille at 2020-12-01T14:13:10+01:00
Set upstream metadata fields: Bug-Database, Bug-Submit, Repository, Repository-Browse.

Changes-By: lintian-brush
Fixes: lintian: upstream-metadata-file-is-missing
See-also: https://lintian.debian.org/tags/upstream-metadata-file-is-missing.html
Fixes: lintian: upstream-metadata-missing-bug-tracking
See-also: https://lintian.debian.org/tags/upstream-metadata-missing-bug-tracking.html
Fixes: lintian: upstream-metadata-missing-repository
See-also: https://lintian.debian.org/tags/upstream-metadata-missing-repository.html

- - - - -
8dc99a8d by Andreas Tille at 2020-12-01T14:19:27+01:00
Fix target package for example script, spelling

- - - - -


9 changed files:

- + debian/README.test
- debian/changelog
- debian/control
- + debian/docs
- + debian/nanostat.examples
- debian/rules
- + debian/tests/control
- + debian/tests/run-unit-test
- + debian/upstream/metadata


Changes:

=====================================
debian/README.test
=====================================
@@ -0,0 +1,9 @@
+Notes on how this package can be tested.
+────────────────────────────────────────
+
+This package can be tested by running the provided test:
+
+    sudo apt install python3-nanoget-examples
+    sh run-unit-test
+
+in order to confirm its integrity.


=====================================
debian/changelog
=====================================
@@ -1,3 +1,15 @@
+nanostat (1.4.0-3) UNRELEASED; urgency=medium
+
+  * Team upload
+  * Add autopkgtest
+  * Remove example test script from Python3 install dir
+    Closes: #973625
+  * Standards-Version: 4.5.1 (routine-update)
+  * Set upstream metadata fields: Bug-Database, Bug-Submit, Repository,
+    Repository-Browse.
+
+ -- Andreas Tille <tille at debian.org>  Tue, 01 Dec 2020 14:06:06 +0100
+
 nanostat (1.4.0-2) unstable; urgency=medium
 
   * Team upload.


=====================================
debian/control
=====================================
@@ -11,7 +11,7 @@ Build-Depends: debhelper-compat (= 13),
                python3-nanomath,
                python3-nanoget,
                help2man
-Standards-Version: 4.5.0
+Standards-Version: 4.5.1
 Homepage: https://github.com/wdecoster/nanostat
 Vcs-Browser: https://salsa.debian.org/med-team/nanostat
 Vcs-Git: https://salsa.debian.org/med-team/nanostat.git


=====================================
debian/docs
=====================================
@@ -0,0 +1,2 @@
+debian/tests/run-unit-test
+debian/README.test


=====================================
debian/nanostat.examples
=====================================
@@ -0,0 +1 @@
+scripts/*


=====================================
debian/rules
=====================================
@@ -14,6 +14,7 @@ override_dh_auto_install:
 	# uncomment if the generation of the man page fails
 	#PYTHONPATH=debian/python3-nanostat/usr/lib/python3.8/dist-packages/:debian/python3-nanostat/usr/lib/python3/dist-packages/ ./debian/nanostat/usr/bin/NanoStat --help
 	PYTHONPATH=`find debian/python3-nanostat/usr/lib/ -maxdepth 1 -name python3* -type d|head -n 1`/dist-packages/ help2man ./debian/nanostat/usr/bin/NanoStat > NanoStat.1
+	find debian -name scripts -type d | xargs rm -rf
 
 override_dh_auto_clean:
 	dh_auto_clean


=====================================
debian/tests/control
=====================================
@@ -0,0 +1,3 @@
+Tests: run-unit-test
+Depends: @, python3-nanoget-examples
+Restrictions: allow-stderr


=====================================
debian/tests/run-unit-test
=====================================
@@ -0,0 +1,20 @@
+#!/bin/bash
+set -e
+
+pkg=nanostat
+data=python3-nanoget
+
+export LC_ALL=C.UTF-8
+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}"
+cp -a /usr/share/doc/${data}/examples/nanotest "${AUTOPKGTEST_TMP}"
+
+cd "${AUTOPKGTEST_TMP}"
+
+gunzip nanotest/[as]*.gz
+
+sh test.sh


=====================================
debian/upstream/metadata
=====================================
@@ -0,0 +1,5 @@
+---
+Bug-Database: https://github.com/wdecoster/nanostat/issues
+Bug-Submit: https://github.com/wdecoster/nanostat/issues/new
+Repository: https://github.com/wdecoster/nanostat.git
+Repository-Browse: https://github.com/wdecoster/nanostat



View it on GitLab: https://salsa.debian.org/med-team/nanostat/-/compare/b4e196a6d19b71f4cd0f6942304e920a3c6299fb...8dc99a8d9a34137784bfb0f491187eec20b6a041

-- 
View it on GitLab: https://salsa.debian.org/med-team/nanostat/-/compare/b4e196a6d19b71f4cd0f6942304e920a3c6299fb...8dc99a8d9a34137784bfb0f491187eec20b6a041
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/20201201/a0bdac06/attachment-0001.html>


More information about the debian-med-commit mailing list