[med-svn] [Git][med-team/python-pauvre][master] Try autopkgtest

Andreas Tille gitlab at salsa.debian.org
Mon Apr 27 10:09:27 BST 2020



Andreas Tille pushed to branch master at Debian Med / python-pauvre


Commits:
dc920b57 by Andreas Tille at 2020-04-27T11:09:07+02:00
Try autopkgtest

- - - - -


3 changed files:

- debian/rules
- debian/tests/control
- debian/tests/run-unit-test


Changes:

=====================================
debian/rules
=====================================
@@ -19,7 +19,8 @@ ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
 	&& rm "$${PYBUILDDIR}/input"
 endif
 
-override_dh_install:
-	# Do not install test script in Python lib fir
+override_dh_installexamples:
+	# Do not install test script in Python lib
 	find debian -name scripts -type d | xargs rm -rf
-	dh_install
+	dh_installexamples
+	sed -i 's/^git clone/#&/' `find debian -name test.sh`


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


=====================================
debian/tests/run-unit-test
=====================================
@@ -1,19 +1,17 @@
 #!/bin/bash
 set -e
 
-pkg=#PACKAGENAME#
+pkg=python3-pauvre
 
 export LC_ALL=C.UTF-8
 if [ "${AUTOPKGTEST_TMP}" = "" ] ; then
   AUTOPKGTEST_TMP=$(mktemp -d /tmp/${pkg}-test.XXXXXX)
-  # Double quote below to expand the temporary directory variable now versus
-  # later is on purpose.
-  # shellcheck disable=SC2064
   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/python3-nanoget/examples/nanotest "${AUTOPKGTEST_TMP}"
 
 cd "${AUTOPKGTEST_TMP}"
 
-#do_stuff_to_test_package#
+sh test.sh



View it on GitLab: https://salsa.debian.org/med-team/python-pauvre/-/commit/dc920b57ad450c83ad581de79bcc6f310455dfc0

-- 
View it on GitLab: https://salsa.debian.org/med-team/python-pauvre/-/commit/dc920b57ad450c83ad581de79bcc6f310455dfc0
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/20200427/401c486f/attachment-0001.html>


More information about the debian-med-commit mailing list