[med-svn] [Git][med-team/libmaus2][master] 3 commits: Add autopkgtest checking the installed library and headers
Andreas Tille (@tille)
gitlab at salsa.debian.org
Mon Nov 2 08:14:18 GMT 2026
Andreas Tille pushed to branch master at Debian Med / libmaus2
Commits:
5e1aaa83 by Andreas Tille at 2026-11-01T20:04:34+01:00
Add autopkgtest checking the installed library and headers
Build a small program with the flags from libmaus2.pc and run it, which
checks the interface the package actually ships:
* libmaus2::off_t is 64 bit. On 32 bit architectures this only holds if
the -D_FILE_OFFSET_BITS=64 recorded by AC_SYS_LARGEFILE is part of the
exported Cflags; otherwise the header and the library disagree and
PosixFunctions::fstatSizeAndMode() is undefined (see #1091568).
* CacheLineSize::getCacheLineSize() returns a usable alignment, and a
cache line aligned AutoArray of 1398102 elements can be allocated.
This is what failed on arm64 (see #1069691).
* PosixFunctions::fstatSizeAndMode() and modeIsReg() work on a regular
file.
Follows the run-unit-test scheme used by the Debian Med team (as in
libsecrecy and htslib): Tests: run-unit-test with build-essential and
pkgconf in Depends and allow-stderr as restriction.
- - - - -
bff41fc5 by Andreas Tille at 2026-11-02T08:23:40+01:00
Use upstream test as autopkgtest
- - - - -
ff0ca354 by Andreas Tille at 2026-11-02T09:12:20+01:00
Upload to unstable
- - - - -
6 changed files:
- + debian/README.test
- debian/changelog
- + debian/libmaus2-dev.docs
- + debian/libmaus2-dev.examples
- + 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/changelog
=====================================
@@ -1,31 +1,17 @@
-libmaus2 (2.0.813+ds-7) UNRELEASED; urgency=medium
+libmaus2 (2.0.813+ds-7) unstable; urgency=medium
* Drop redundant fields from watch file
* Reflow Uploaders field (cme)
* largefile-cppflags.patch: new: add the large file flag found by
- AC_SYS_LARGEFILE to LIBMAUSCPPFLAGS. Targets using their own
- *_CPPFLAGS did not see it, so off_t had a different size there and
- PosixFunctions::fstatSizeAndMode() was undefined when linking on 32 bit
- architectures. (Closes: #1091568)
- * cacheline-size-fallback.patch: new: fix the cache line size detection.
- The sysfs file read by add-support-for-loong64.patch does not exist
- everywhere and was parsed with the wrong conversion, so the cache line
- size ended up as 0. The aligned allocation then threw std::bad_alloc
- and made testRank.sh and testdnarank.sh fail on arm64 and other
- architectures. Fall back to sysconf() and alignof(std::max_align_t).
- (Closes: #1069691, #1091144)
- * Do not enable autoarray tracing for arm64 any more. It was added in
- 2.0.813+ds-4 to track down the failures above, but with gcc-16 it breaks
- the build, as AutoArrayBackTrace holds std::atomic members and is put
- into a std::vector, which requires them to be copyable.
- * Note that the "no matching function for call to
- BlockMergeControl::sam_allocate_encoder()" errors from #934619 no longer
- occur: test/testparallelbamblocksort.cpp builds without any such
- diagnostic on the 32 bit architectures, and m68k, sh4 and x32 build
- this version successfully. The failure was fixed upstream.
- (Closes: #934619)
-
- -- Andreas Tille <tille at debian.org> Fri, 30 Oct 2026 17:33:47 +0100
+ AC_SYS_LARGEFILE to LIBMAUSCPPFLAGS
+ Closes: #1091568
+ * cacheline-size-fallback.patch: new: fix the cache line size detection
+ Closes: #1069691, #1091144
+ * Do not enable autoarray tracing for arm64 any more
+ * Failure was fixed upstream thus Closes: #934619
+ * Use upstream test as autopkgtest
+
+ -- Andreas Tille <tille at debian.org> Mon, 02 Nov 2026 08:26:36 +0100
libmaus2 (2.0.813+ds-6) unstable; urgency=medium
=====================================
debian/libmaus2-dev.docs
=====================================
@@ -0,0 +1,2 @@
+debian/README.test
+debian/tests/run-unit-test
=====================================
debian/libmaus2-dev.examples
=====================================
@@ -0,0 +1,28 @@
+src/test/testAIO.cpp
+src/test/testBitIO.cpp
+src/test/testRank.cpp
+src/test/testargparser.cpp
+src/test/testarraydecode.cpp
+src/test/testarrayinput.cpp
+src/test/testautoarray2d.cpp
+src/test/testbitbtree.cpp
+src/test/testdnarank.cpp
+src/test/testintervaltree.cpp
+src/test/testnplself.cpp
+src/test/testparasail.cpp
+src/test/testprotalign.cpp
+test/base64decode.sh
+test/configure.gz.sh
+test/testAIO.sh
+test/testBitIO.sh
+test/testRank.sh
+test/testargparser.sh
+test/testarraydecode.sh
+test/testarrayinput.sh
+test/testautoarray2d.sh
+test/testbitbtree.sh
+test/testdnarank.sh
+test/testintervaltree.sh
+test/testnplself.sh
+test/testparasail.sh
+test/testprotalign.sh
=====================================
debian/tests/control
=====================================
@@ -0,0 +1,3 @@
+Tests: run-unit-test
+Depends: @, build-essential, pkgconf
+Restrictions: allow-stderr
=====================================
debian/tests/run-unit-test
=====================================
@@ -0,0 +1,33 @@
+#!/bin/sh
+set -e
+
+pkg=libmaus2
+
+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
+
+cd "${AUTOPKGTEST_TMP}"
+
+set -v
+
+cp -a /usr/share/doc/${pkg}-dev/examples/. .
+mkdir src test
+mv test*.cpp src/
+mv *.sh test/
+CXXFLAGS="-O2 $( pkg-config ${pkg} --cflags )"
+LDFLAGS="$( pkg-config ${pkg} --libs )"
+export CXXFLAGS LDFLAGS
+printf -- 'CXXFLAGS=%s\nLDFLAGS=%s\n' "$CXXFLAGS" "$LDFLAGS"
+
+for f in src/test*.cpp ; do
+ g++ $CXXFLAGS "$f" -o "${f%.cpp}" $LDFLAGS
+done
+
+cd test
+for driver in *.sh ; do
+ [ -x "../src/${driver%.sh}" ] || continue
+ bash "${driver}"
+done
View it on GitLab: https://salsa.debian.org/med-team/libmaus2/-/compare/1910321f0dc9cca42a4e23d8377c4274f9ece97a...ff0ca35480f7cb1ae0902dae679a8ad1647913f3
--
View it on GitLab: https://salsa.debian.org/med-team/libmaus2/-/compare/1910321f0dc9cca42a4e23d8377c4274f9ece97a...ff0ca35480f7cb1ae0902dae679a8ad1647913f3
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/20261102/182a9b8e/attachment-0001.htm>
More information about the debian-med-commit
mailing list