[med-svn] [Git][med-team/samtools][master] 2 commits: Autopkgtest is now using run-unit-test as user example

Andreas Tille (@tille) gitlab at salsa.debian.org
Wed Nov 8 08:10:57 GMT 2023



Andreas Tille pushed to branch master at Debian Med / samtools


Commits:
0a4b8fb8 by Andreas Tille at 2023-11-08T09:05:52+01:00
Autopkgtest is now using run-unit-test as user example

- - - - -
8c8f2a28 by Andreas Tille at 2023-11-08T09:09:34+01:00
Upload to unstable

- - - - -


7 changed files:

- + debian/README.test
- debian/changelog
- debian/samtools-test.install
- debian/samtools.docs
- debian/tests/control
- + debian/tests/run-unit-test
- − debian/tests/samtools-test


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 samtools-test
+    sh run-unit-test
+
+in order to confirm its integrity.


=====================================
debian/changelog
=====================================
@@ -1,8 +1,9 @@
-samtools (1.18-1) UNRELEASED; urgency=medium
+samtools (1.18-1) unstable; urgency=medium
 
   * New upstream version
+  * Autopkgtest is now using run-unit-test as user example
 
- -- Andreas Tille <tille at debian.org>  Wed, 08 Nov 2023 07:21:22 +0100
+ -- Andreas Tille <tille at debian.org>  Wed, 08 Nov 2023 09:05:57 +0100
 
 samtools (1.17-1) unstable; urgency=medium
 


=====================================
debian/samtools-test.install
=====================================
@@ -1 +1,2 @@
-test	usr/share/samtools
+test				usr/share/samtools
+debian/tests/run-unit-test	usr/share/doc/samtools


=====================================
debian/samtools.docs
=====================================
@@ -1,2 +1,3 @@
 AUTHORS
-README*
\ No newline at end of file
+README*
+debian/README.test


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


=====================================
debian/tests/run-unit-test
=====================================
@@ -0,0 +1,18 @@
+#!/bin/bash
+set -e
+
+pkg=samtools
+
+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/${pkg}/test/ "${AUTOPKGTEST_TMP}"
+
+cd "${AUTOPKGTEST_TMP}"
+ln -s /usr/bin/samtools .
+
+./test/test.pl


=====================================
debian/tests/samtools-test deleted
=====================================
@@ -1,6 +0,0 @@
-#!/bin/sh -e
-
-cd $AUTOPKGTEST_TMP
-cp -a /usr/share/samtools/test/ .
-ln -s /usr/bin/samtools .
-./test/test.pl



View it on GitLab: https://salsa.debian.org/med-team/samtools/-/compare/71817c1d003f6305230de1723dd6b7a034c4d6c4...8c8f2a283c89f39f6dd42c20bd3e0e7578c72085

-- 
View it on GitLab: https://salsa.debian.org/med-team/samtools/-/compare/71817c1d003f6305230de1723dd6b7a034c4d6c4...8c8f2a283c89f39f6dd42c20bd3e0e7578c72085
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/20231108/c41ff8b3/attachment-0001.htm>


More information about the debian-med-commit mailing list