[med-svn] [Git][med-team/mia][master] 2 commits: Try really hard to run upstream tests but failed. Unfortunately upstream seems to be MIA

Andreas Tille (@tille) gitlab at salsa.debian.org
Fri Oct 27 08:49:39 BST 2023



Andreas Tille pushed to branch master at Debian Med / mia


Commits:
8591c15e by Andreas Tille at 2023-10-27T08:52:13+02:00
Try really hard to run upstream tests but failed.  Unfortunately upstream seems to be MIA

- - - - -
53185d85 by Andreas Tille at 2023-10-27T09:49:13+02:00
Deactivate autopkgtest

- - - - -


6 changed files:

- − debian/examples
- + debian/libmia-2.4-doc.examples
- debian/libmia-2.4-doc.install
- debian/rules
- debian/tests/control → debian/tests/control_autopkgtest_does_not_work
- debian/tests/run-unit-test


Changes:

=====================================
debian/examples deleted
=====================================
@@ -1,2 +0,0 @@
-testdata/*
-testdata/IM-0001-0001.dcm
\ No newline at end of file


=====================================
debian/libmia-2.4-doc.examples
=====================================
@@ -0,0 +1,3 @@
+testdata
+# examples # seems not needed for test
+test


=====================================
debian/libmia-2.4-doc.install
=====================================
@@ -1,2 +1,2 @@
 usr/share/doc/mia-2.4/libdoc/*
-
+obj-*/config.h usr/share/doc/libmia-2.4-dev/examples/test


=====================================
debian/rules
=====================================
@@ -26,7 +26,7 @@ else
 endif
 
 
-.PHONY: override_dh_strip override_dh_shlibdeps override_dh_auto_test
+.PHONY: override_dh_strip override_dh_shlibdeps
 
 %:
 	dh $@
@@ -54,6 +54,7 @@ override_dh_auto_build-arch:
 override_dh_auto_install-indep:
 	# Install process expects some files that are not built in arch all builds
 	dh_auto_install -i || true
+	find debian/*/usr/share/doc -name CMakeLists.txt -delete
 
 override_dh_shlibdeps:
 	dh_shlibdeps -- $(shell find  debian/libmia-2.4-4/ -name "*.mia")


=====================================
debian/tests/control → debian/tests/control_autopkgtest_does_not_work
=====================================


=====================================
debian/tests/run-unit-test
=====================================
@@ -2,21 +2,52 @@
 set -e
 
 pkg=mia
-CUR_DIR=`pwd`
+# yes, examples in libmia-2.4-doc will be installed to libmia-2.4-dev!
+pkgdoc=lib${pkg}-2.4-dev
+CPP=c++
+
+set -x
 
 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
+  # trap "rm -rf ${AUTOPKGTEST_TMP}" 0 INT QUIT ABRT PIPE TERM
 fi
 
-cp -a ${CUR_DIR}/* "${AUTOPKGTEST_TMP}"
- cp ${CUR_DIR}/testdata/* -a "${AUTOPKGTEST_TMP}"
- cp ${CUR_DIR}/examples/* -a "${AUTOPKGTEST_TMP}"
- cp ${CUR_DIR}/test/* -a "${AUTOPKGTEST_TMP}"
+cp -a /usr/share/doc/${pkgdoc}/examples/* "${AUTOPKGTEST_TMP}"
 
 cd "${AUTOPKGTEST_TMP}"
 
-chmod a+x ./test
+# chmod a+x ./test
+
+cd test
+
+${CPP} -g -O2 -I. -I/usr/include/mia-2.4 -I/usr/lib/$(dpkg-architecture -qDEB_HOST_GNU_TYPE)/mia-2.4/include/ \
+	-fstack-protector-strong -fstack-clash-protection -Wformat \
+	-Werror=format-security -fcf-protection -Wdate-time \
+	-D_FORTIFY_SOURCE=2 -fvisibility=hidden -Wl,-z,relro -Wl,-z,now \
+	-fvisibility=hidden -rdynamic test_minimizer.cc -o test-minimizer \
+	-lmiacore-2.4 -lboost_unit_test_framework \
+	-lgsl -lgslcblas -lm -lboost_filesystem -lboost_system \
+	-lpthread -Wl,-Bstatic -ldl -Wl,-Bdynamic -lfftw3f -lxml2 
+# FIXME: this test fails to find plugins
+./test-minimizer
+
+# FIXME: This has linker errors
+${CPP} -DBOOST_ALL_DYN_LINK -DBOOST_ALL_NO_LIB -DBOOST_FILESYSTEM_DYN_LINK \
+       -DBOOST_FILESYSTEM_VERSION=3 -DBOOST_SYSTEM_DYN_LINK \
+       -DBOOST_UNIT_TEST_FRAMEWORK_DYN_LINK -DHAVE_CONFIG_H \
+       -I. -I/usr/include/mia-2.4 -I/usr/lib/$(dpkg-architecture -qDEB_HOST_GNU_TYPE)/mia-2.4/include/ \
+       -I/usr/include/eigen3 -I/usr/include/libxml2 \
+       -g -O2 -fstack-protector-strong -fstack-clash-protection -Wformat \
+       -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 \
+       -fvisibility=hidden test_ioplugins.cc -o test_ioplugins.o
+${CPP} -g -O2 -fstack-protector-strong -fstack-clash-protection -Wformat \
+       -Werror=format-security -fcf-protection -Wdate-time -D_FORTIFY_SOURCE=2 \
+       -fvisibility=hidden -Wl,-z,relro -Wl,-z,now -fvisibility=hidden \
+       -rdynamic test_ioplugins.o -o test-ioplugins \
+       -lmia3d-2.4 -lboost_unit_test_framework -lmia2d-2.4 -lmiacore-2.4 \
+       -lgsl -lgslcblas -lm -lboost_filesystem -lboost_system \
+       -lpthread -Wl,-Bstatic -ldl -Wl,-Bdynamic -lfftw3f -lxml2 
 
 echo -e "\e[92m\e[1mPASS\e[0m"



View it on GitLab: https://salsa.debian.org/med-team/mia/-/compare/d36f2e91ac009ba531d62aec8df4b637d39dfd0e...53185d85b28dd2eb4c8dbadf1a72c98c9bd4b2ba

-- 
View it on GitLab: https://salsa.debian.org/med-team/mia/-/compare/d36f2e91ac009ba531d62aec8df4b637d39dfd0e...53185d85b28dd2eb4c8dbadf1a72c98c9bd4b2ba
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/20231027/5d9c79e8/attachment-0001.htm>


More information about the debian-med-commit mailing list