[med-svn] [Git][med-team/libmmmulti][master] 2 commits: Add autopkgtest running the mmmulti test utility
Andreas Tille (@tille)
gitlab at salsa.debian.org
Wed Oct 28 09:41:05 GMT 2026
Andreas Tille pushed to branch master at Debian Med / libmmmulti
Commits:
2e3aa7e0 by Andreas Tille at 2026-10-28T10:38:30+01:00
Add autopkgtest running the mmmulti test utility
- - - - -
9e63f0bf by Andreas Tille at 2026-10-28T10:40:05+01:00
Upload to unstable
- - - - -
5 changed files:
- + debian/README.test
- debian/changelog
- + debian/mmmulti.docs
- + debian/tests/control
- + debian/tests/run-unit-test
Changes:
=====================================
debian/README.test
=====================================
@@ -0,0 +1,14 @@
+Notes on how this package can be tested.
+────────────────────────────────────────
+
+This package can be tested by executing
+
+ sh run-unit-test
+
+in order to confirm its integrity.
+
+The test drives the installed mmmulti test utility with a small amount of
+random data against the multimap, multiset and interval tree
+implementations. The memory-mapped test files are written to a temporary
+directory and removed afterwards. The very same script is used by the
+autopkgtest.
=====================================
debian/changelog
=====================================
@@ -1,12 +1,13 @@
-libmmmulti (0.1+git20210125.d8fb6c9-1) UNRELEASED; urgency=medium
+libmmmulti (0.1+git20210125.d8fb6c9-1) unstable; urgency=medium
* For latest vg we need the last upstream commit which is not tagged
so adapt d/watch to fetch latest commit
* New upstream version
* Rebase patches to latest upstream
* Add libmio-dev to build dependencies
+ * Add autopkgtest running the mmmulti test utility
- -- Andreas Tille <tille at debian.org> Wed, 28 Oct 2026 09:28:16 +0100
+ -- Andreas Tille <tille at debian.org> Wed, 28 Oct 2026 10:38:36 +0100
libmmmulti (0.1-5) unstable; urgency=medium
=====================================
debian/mmmulti.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,29 @@
+#!/bin/sh -e
+
+pkg=mmmulti
+
+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"
+
+# The mmmulti test utility generates its own random data and writes the
+# memory-mapped test files to the current directory. Run it against the
+# multimap, multiset and interval tree implementations.
+
+# multimap (default, padded values)
+mmmulti -T test -s 100000 -M 10000 -t 2
+
+# multimap with complex (two-value) records
+mmmulti -T test -s 100000 -M 10000 -t 2 -c
+
+# multimap without padding
+mmmulti -T test -s 100000 -M 10000 -t 2 -P
+
+# multiset
+mmmulti -T test -s 100000 -M 10000 -t 2 -m
+
+# interval tree (keep the value range small so the overlap scan is quick)
+mmmulti -T test -s 10000 -M 1000 -t 2 -I
View it on GitLab: https://salsa.debian.org/med-team/libmmmulti/-/compare/2eb790f33109d109ce2764ba0b3934d911a62e60...9e63f0bf1cedd3adbe93ab90f39d00b996e06496
--
View it on GitLab: https://salsa.debian.org/med-team/libmmmulti/-/compare/2eb790f33109d109ce2764ba0b3934d911a62e60...9e63f0bf1cedd3adbe93ab90f39d00b996e06496
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/20261028/e8256ca7/attachment-0001.htm>
More information about the debian-med-commit
mailing list