[med-svn] [Git][med-team/seqan-raptor][master] 2 commits: d/rules: whoops, more work needed to build & run all the available tests.
Michael R. Crusoe (@crusoe)
gitlab at salsa.debian.org
Mon Aug 21 19:19:07 BST 2023
Michael R. Crusoe pushed to branch master at Debian Med / seqan-raptor
Commits:
94a1a4bd by Michael R. Crusoe at 2023-08-21T20:18:17+02:00
d/rules: whoops, more work needed to build & run all the available tests.
- - - - -
85329779 by Michael R. Crusoe at 2023-08-21T20:18:17+02:00
Add "-O3" to the build-flags, to match "-DCMAKE_BUILD_TYPE=Release".
- - - - -
5 changed files:
- debian/changelog
- debian/control
- debian/rules
- debian/tests/control
- + debian/tests/run-unit-test
Changes:
=====================================
debian/changelog
=====================================
@@ -1,3 +1,11 @@
+seqan-raptor (3.0.1+ds-3) UNRELEASED; urgency=medium
+
+ * d/rules,d/tests/*: whoops, more work needed to build & run all the available
+ tests.
+ * Add "-O3" to the build-flags, to match "-DCMAKE_BUILD_TYPE=Release".
+
+ -- Michael R. Crusoe <crusoe at debian.org> Mon, 21 Aug 2023 16:36:15 +0200
+
seqan-raptor (3.0.1+ds-2) unstable; urgency=medium
* Fix docs only build
=====================================
debian/control
=====================================
@@ -45,6 +45,7 @@ Package: seqan-raptor-doc
Architecture: all
Depends: ${misc:Depends}
Section: doc
+Build-Profiles: <!nodoc>
Multi-Arch: foreign
Description: HTML & PDF documentation for seqan-raptor and its APIs
Raptor is a system for approximately searching many queries such as
=====================================
debian/rules
=====================================
@@ -4,6 +4,8 @@
export LC_ALL=C.UTF-8
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
export DEB_CPPFLAGS_MAINT_APPEND=-I/usr/include/seqan3/submodules/sdsl-lite/include/ -I/usr/include/simde -I${CURDIR}/lib/submodules/sharg-parser/include/ -I${CURDIR}/lib/submodules/lemon/include/
+export DEB_CFLAGS_MAINT_APPEND=-O3
+export DEB_CXXFLAGS_MAINT_APPEND=-O3
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk
@@ -11,10 +13,18 @@ include /usr/share/dpkg/buildflags.mk
dh $@
override_dh_auto_configure-indep:
- true
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS) $(DEB_BUILD_PROFILES)))
+ dh_auto_configure --sourcedirectory=test/documentation --builddirectory doc_build -- -DRAPTOR_NATIVE_BUILD=OFF -DRAPTOR_SUBMODULES_DIR=$(CURDIR)/lib -DRAPTOR_STRIP_BINARY=OFF -Dbuild_search=ON
+endif
override_dh_auto_configure-arch:
dh_auto_configure -- -DRAPTOR_NATIVE_BUILD=OFF -DRAPTOR_SUBMODULES_DIR=$(CURDIR)/lib -DRAPTOR_STRIP_BINARY=OFF
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS) $(DEB_BUILD_PROFILES)))
+ dh_auto_configure --sourcedirectory=test/unit --builddirectory build_unit -- -DRAPTOR_NATIVE_BUILD=OFF -DRAPTOR_SUBMODULES_DIR=$(CURDIR)/lib -DRAPTOR_STRIP_BINARY=OFF
+ #dh_auto_configure --sourcedirectory=test/performance --builddirectory build_performance -- -DRAPTOR_NATIVE_BUILD=OFF -DRAPTOR_SUBMODULES_DIR=$(CURDIR)/lib -DRAPTOR_STRIP_BINARY=OFF
+ #dh_auto_configure --sourcedirectory=test/header --builddirectory build_header -- -DRAPTOR_NATIVE_BUILD=OFF -DRAPTOR_SUBMODULES_DIR=$(CURDIR)/lib -DRAPTOR_STRIP_BINARY=OFF
+ dh_auto_configure --sourcedirectory=test/snippet --builddirectory build_snippet -- -DRAPTOR_NATIVE_BUILD=OFF -DRAPTOR_SUBMODULES_DIR=$(CURDIR)/lib -DRAPTOR_STRIP_BINARY=OFF
+endif
override_dh_auto_build-arch:
dh_auto_build --arch
@@ -29,10 +39,32 @@ override_dh_auto_build-arch:
obj-*/bin/raptor layout --export-help cwl > debian/raptor-layout.cwl
obj-*/bin/raptor prepare --export-help cwl > debian/raptor-prepare.cwl
obj-*/bin/raptor upgrade --export-help cwl > debian/raptor-upgrade.cwl
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS) $(DEB_BUILD_PROFILES)))
+ dh_auto_build --arch --builddirectory build_unit
+ #dh_auto_build --arch --builddirectory build_performance
+ #dh_auto_build --arch --builddirectory build_header
+ dh_auto_build --arch --builddirectory build_snippet
+endif
override_dh_auto_build-indep:
ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS) $(DEB_BUILD_PROFILES)))
- mkdir -p doc_build && cd doc_build && cmake ../test/documentation && $(MAKE) && ctest . --output-on-failure && cd latex && $(MAKE)
+ dh_auto_build --indep --builddirectory doc_build
+ cd doc_build/latex && $(MAKE)
+endif
+
+override_dh_auto_test-arch:
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS) $(DEB_BUILD_PROFILES)))
+ dh_auto_test --arch --builddirectory build_unit
+ #dh_auto_test --arch --builddirectory build_performance
+ #dh_auto_test --arch --builddirectory build_header
+ dh_auto_test --arch --builddirectory build_snippet
+endif
+
+override_dh_auto_test-indep:
+ifeq (,$(filter nodoc,$(DEB_BUILD_OPTIONS) $(DEB_BUILD_PROFILES)))
+ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS) $(DEB_BUILD_PROFILES)))
+ dh_auto_test --builddirectory doc_build
+endif
endif
override_dh_auto_install-indep:
=====================================
debian/tests/control
=====================================
@@ -1,3 +1,7 @@
Tests: cwl
Depends: @, cwltool, python3-setuptools, nodejs
Restrictions: allow-stderr
+
+# Tests: run-unit-test
+# Depends: @, cmake
+# Restrictions: allow-stderr
=====================================
debian/tests/run-unit-test
=====================================
@@ -0,0 +1,17 @@
+#!/bin/bash
+set -e
+
+pkg=seqan-raptor
+
+if [ "${AUTOPKGTEST_TMP}" = "" ] ; then
+ AUTOPKGTEST_TMP=$(mktemp -d /tmp/${pkg}-test.XXXXXX)
+ trap "rm -rf ${AUTOPKGTEST_TMP}" 0 INT QUIT ABRT PIPE TERM
+fi
+
+cp -r test "${AUTOPKGTEST_TMP}"
+
+# Build some data for the test binaries as prerequisites
+cd "${AUTOPKGTEST_TMP}"/test/unit
+cmake .
+make CMAKE_BINARY_DIR=/usr
+ctest .
View it on GitLab: https://salsa.debian.org/med-team/seqan-raptor/-/compare/3e5170c6e52930e4422d9addc21c726e37936e2e...85329779171623591f9d2992017819159fc2b3fd
--
View it on GitLab: https://salsa.debian.org/med-team/seqan-raptor/-/compare/3e5170c6e52930e4422d9addc21c726e37936e2e...85329779171623591f9d2992017819159fc2b3fd
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/20230821/79306a64/attachment-0001.htm>
More information about the debian-med-commit
mailing list