[med-svn] [Git][med-team/nanoplot][master] Try autopkgtest

Andreas Tille gitlab at salsa.debian.org
Wed Apr 29 08:33:57 BST 2020



Andreas Tille pushed to branch master at Debian Med / nanoplot


Commits:
c7509b6f by Andreas Tille at 2020-04-29T09:33:36+02:00
Try autopkgtest

- - - - -


3 changed files:

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


Changes:

=====================================
debian/rules
=====================================
@@ -17,3 +17,9 @@ override_dh_install:
 #ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
 #	do_stuff_for_testing
 #endif
+
+override_dh_installexamples:
+	# Do not install test script in Python lib
+	find debian -name scripts -type d | xargs rm -rf
+	dh_installexamples
+	sed -i 's/^git clone/#&/' `find debian -name test.sh`


=====================================
debian/tests/control_not_umplemented_yet → 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,19 @@
 #!/bin/bash
 set -e
 
-pkg=#PACKAGENAME#
+pkg=nanoplot
 
 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#
+gunzip -r *
+
+sh test.sh



View it on GitLab: https://salsa.debian.org/med-team/nanoplot/-/commit/c7509b6f7d64fd857c6c81160267edbf1767b400

-- 
View it on GitLab: https://salsa.debian.org/med-team/nanoplot/-/commit/c7509b6f7d64fd857c6c81160267edbf1767b400
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/20200429/9f19e02d/attachment-0001.html>


More information about the debian-med-commit mailing list