[med-svn] [Git][med-team/libsparsepp][master] Add template for autopkgtest
Andreas Tille (@tille)
gitlab at salsa.debian.org
Tue Oct 27 13:09:25 GMT 2026
Andreas Tille pushed to branch master at Debian Med / libsparsepp
Commits:
e391b43e by Andreas Tille at 2026-10-27T14:08:50+01:00
Add template for autopkgtest
- - - - -
4 changed files:
- + debian/README.test
- + debian/libsparsepp-dev.docs
- + debian/tests/control
- + debian/tests/run-unit-test
Changes:
=====================================
debian/README.test
=====================================
@@ -0,0 +1,8 @@
+Notes on how this package can be tested.
+────────────────────────────────────────
+
+This package can be tested by running the provided test:
+
+ sh run-unit-test
+
+in order to confirm its integrity.
=====================================
debian/libsparsepp-dev.docs
=====================================
@@ -0,0 +1,2 @@
+debian/README.test
+debian/tests/run-unit-test
=====================================
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=libsparsepp-dev
+
+export LC_ALL=C.UTF-8
+if [ "${AUTOPKGTEST_TMP}" = "" ] ; then
+ AUTOPKGTEST_TMP=$(mktemp -d /tmp/${pkg}-test.XXXXXX)
+ # shellcheck disable=SC2064
+ trap "rm -rf ${AUTOPKGTEST_TMP}" 0 INT QUIT ABRT PIPE TERM
+fi
+
+cp -a /usr/share/doc/${pkg}/examples/* "${AUTOPKGTEST_TMP}"
+
+cd "${AUTOPKGTEST_TMP}"
+
+#do_stuff_to_test_package#
+
+# Please make sure this script will be installed via
+# debian/tests/run-unit-test in debian/docs
+# You can for instance run the unit test via
+# mmdebstrap sid /dev/null --components=main --include=${pkg} --customize-hook='chroot $1 /usr/share/doc/${pkg}/run-unit-test'
View it on GitLab: https://salsa.debian.org/med-team/libsparsepp/-/commit/e391b43ec3c441ff083ae3b48946a40cfe33013b
--
View it on GitLab: https://salsa.debian.org/med-team/libsparsepp/-/commit/e391b43ec3c441ff083ae3b48946a40cfe33013b
You're receiving this email because of your account on salsa.debian.org. Manage all notifications: https://salsa.debian.org/-/profile/notifications | Help: https://salsa.debian.org/help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-med-commit/attachments/20261027/36459e51/attachment-0001.htm>
More information about the debian-med-commit
mailing list