Andreas Tille pushed to branch master at Debian Med / libsparsepp
Commits: 59946e2f by Andreas Tille at 2026-10-27T14:33:43+01:00 Run upstream tests at build time and as autopkgtest sparsepp is header-only and has no top-level build system, so dh_auto_test was a no-op. Run the two tests that build against the shipped headers from debian/rules, and fill in the autopkgtest template to do the same from the examples installed in /usr/share/doc/libsparsepp-dev. spp_bitset_test is skipped because sparsepp/spp_bitset.h is not part of the 1.23 release, and perftest1 is a 90 second benchmark without assertions. Also drop debian/lrc.config, a leftover stub containing a single header path. - - - - - e4b86844 by Andreas Tille at 2026-10-27T14:36:51+01:00 Upload to unstable - - - - - 5 changed files: - debian/changelog - debian/libsparsepp-dev.examples - debian/rules - debian/tests/control - debian/tests/run-unit-test Changes: ===================================== debian/changelog ===================================== @@ -1,5 +1,5 @@ libsparsepp (1.23-1) UNRELEASED; urgency=medium - * Initial release (Closes: #XXXXXX) + * Initial release (Closes: #1152280) - -- Andreas Tille <[email protected]> Tue, 27 Oct 2026 12:00:00 +0100 + -- Andreas Tille <[email protected]> Tue, 27 Oct 2026 14:33:55 +0100 ===================================== debian/libsparsepp-dev.examples ===================================== @@ -1,2 +1,4 @@ examples/*.cc examples/makefile +tests/spp_test.cc +tests/spp_alloc_test.cc ===================================== debian/rules ===================================== @@ -2,3 +2,11 @@ %: dh $@ + +# Header-only library: there is no build system at the top level, so run the +# upstream test suite explicitly instead of relying on dh_auto_test. +override_dh_auto_test: + for test in spp_test spp_alloc_test ; do \ + $(CXX) -O2 -std=c++11 -D_XOPEN_SOURCE=700 \ + -I. -o $$test tests/$$test.cc && ./$$test > /dev/null ; \ + done ===================================== debian/tests/control ===================================== @@ -1,3 +1,3 @@ Tests: run-unit-test -Depends: @ +Depends: @, build-essential Restrictions: allow-stderr ===================================== debian/tests/run-unit-test ===================================== @@ -6,7 +6,6 @@ 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 @@ -14,9 +13,8 @@ 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' +# Build and run the upstream unit tests against the installed headers. +for test in spp_test spp_alloc_test ; do + g++ -O2 -std=c++11 -D_XOPEN_SOURCE=700 -o "${test}" "${test}.cc" + "./${test}" > /dev/null +done View it on GitLab: https://salsa.debian.org/med-team/libsparsepp/-/compare/e391b43ec3c441ff083ae3b48946a40cfe33013b...e4b86844cd371a9e0740588a861d2a1004e6a679 -- View it on GitLab: https://salsa.debian.org/med-team/libsparsepp/-/compare/e391b43ec3c441ff083ae3b48946a40cfe33013b...e4b86844cd371a9e0740588a861d2a1004e6a679 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
_______________________________________________ debian-med-commit mailing list [email protected] https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-med-commit
