[med-svn] [Git][med-team/dcmtk][master] 3 commits: Add autopkgtests
Mohd Bilal (@rmb)
gitlab at salsa.debian.org
Fri Aug 19 18:46:48 BST 2022
Mohd Bilal pushed to branch master at Debian Med / dcmtk
Commits:
61bcbf66 by Mohammed Bilal at 2022-08-19T16:48:02+00:00
Add autopkgtests
- - - - -
cde06d7e by Mohammed Bilal at 2022-08-19T16:48:41+00:00
Bump Standards-Version to 4.6.1 (no changes needed)
- - - - -
47a9f1dc by Mohammed Bilal at 2022-08-19T16:51:45+00:00
Update changelog
- - - - -
4 changed files:
- debian/changelog
- debian/control
- + debian/tests/control
- + debian/tests/run-unit-test
Changes:
=====================================
debian/changelog
=====================================
@@ -1,3 +1,16 @@
+dcmtk (3.6.7-6) UNRELEASED; urgency=medium
+
+ [ Mathieu Malaterre ]
+ * Team upload.
+ * d/control: libdcmtk4 is not present in o-o-stable
+ * d/postrm: Fix possible-bashism-in-maintainer-script
+
+ [ Mohammed Bilal ]
+ * Add autopkgtests
+ * Bump Standards-Version to 4.6.1 (no changes needed)
+
+ -- Mohammed Bilal <mdbilal at disroot.org> Fri, 19 Aug 2022 16:49:08 +0000
+
dcmtk (3.6.7-5) unstable; urgency=medium
[ Gregory C. Sharp ]
=====================================
debian/control
=====================================
@@ -17,7 +17,7 @@ Build-Depends: cmake,
zlib1g-dev
Build-Depends-Indep: doxygen,
graphviz
-Standards-Version: 4.6.0
+Standards-Version: 4.6.1
Vcs-Browser: https://salsa.debian.org/med-team/dcmtk
Vcs-Git: https://salsa.debian.org/med-team/dcmtk.git
Homepage: https://dicom.offis.de/dcmtk
=====================================
debian/tests/control
=====================================
@@ -0,0 +1,3 @@
+Tests: run-unit-test
+Depends: @, python3-pydicom
+Restrictions: allow-stderr
=====================================
debian/tests/run-unit-test
=====================================
@@ -0,0 +1,139 @@
+#!/bin/bash
+set -e
+
+pkg=dcmtk
+
+CUR_DIR=`pwd`
+
+
+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
+
+cp -a /usr/lib/python3/dist-packages/pydicom/data/test_files/CT_small.dcm "${AUTOPKGTEST_TMP}"
+cp -a ${CUR_DIR}/dcmdata/data/dicom.dic "${AUTOPKGTEST_TMP}"
+
+
+export DCMDICTPATH=${AUTOPKGTEST_TMP}/dicom.dic
+
+cd "${AUTOPKGTEST_TMP}"
+
+echo -e "15e7e2a11cdeabac32e1134674beda6b CT_small.dcm" >> checksums
+
+echo -e "Running Tests"
+
+echo -e "Test 1"
+
+dcm2json CT_small.dcm dcm2json.json
+
+echo -e "Test 2"
+
+dcm2xml CT_small.dcm dcm2xml.xml
+
+echo -e "Test 3"
+
+dcmconv --convert-to-latin1 CT_small.dcm dcmconv.out
+
+echo -e "Test 4"
+
+dcmcrle CT_small.dcm dcmcrle.out
+
+echo -e "Test 5"
+
+dcmdrle dcmcrle.out dcmdrle.out
+
+echo -e "Test 6"
+
+dcmdump CT_small.dcm > dcmdump.out
+
+echo -e "Test 7"
+
+dump2dcm dcmdump.out dump2dcm.dcm
+
+echo -e "Test 8"
+
+dcmftest CT_small.dcm
+
+echo -e "Test 9"
+
+dcmodify -e "(0008,0031)" CT_small.dcm
+
+echo -e "Test 10"
+
+dcm2pnm +Rtd CT_small.dcm dcm2pnm.png
+
+echo -e "Test 11"
+
+dcmscale +Sxf 2.0 CT_small.dcm dcmscale.out
+
+echo -e "Test 12"
+
+dcmcjpls CT_small.dcm dcmcjpls.out
+
+echo -e "Test 13"
+
+dcmdjpls dcmcjpls.out dcmdjpls.out
+
+echo -e "Test 14"
+
+dcml2pnm CT_small.dcm dcml2pnm.png
+
+echo -e "Test 15"
+
+cat <<EOT >> crv.txt
+ 256.451947 1.000000
+ 477.689863 128.822080
+ 128.822080 477.689863
+ 35.310137 128.822080
+ 256.451947 1.000000
+EOT
+
+dcmmkcrv CT_small.dcm crv.txt dcmmkcrv.out
+
+echo -e "Test 16"
+
+dcmmklut dcmmklut.out
+
+echo -e "Test 17"
+
+dcmp2pgm CT_small.dcm dcmp2pgm.out
+
+echo -e "Test 18"
+dcmpsmk CT_small.dcm dcmpsmk.out
+
+echo -e "Test 19"
+mkdir dcmqridx
+
+dcmqridx dcmqridx/ CT_small.dcm
+
+echo -e "Test 20"
+dcmsign -q CT_small.dcm
+
+if [ -f dcmqridx/index.dat ] && \
+ [ -f dcmpsmk.out ] && \
+ [ -f dcmmklut.out ] && \
+ [ -f dcm2json.json ] && \
+ [ -f dcm2xml.xml ] && \
+ [ -f dcmconv.out ] && \
+ [ -f dcmcrle.out ] && \
+ [ -f dcmdrle.out ] && \
+ [ -f dcmdump.out ] && \
+ [ -f dump2dcm.dcm ] && \
+ [ -f dcm2pnm.png ] && \
+ [ -f dcmscale.out ] && \
+ [ -f dcmcjpls.out ] && \
+ [ -f dcmdjpls.out ] && \
+ [ -f dcml2pnm.png ] && \
+ [ -f dcmmkcrv.out ] && \
+ [ -f dcmp2pgm.out ] && \
+ md5sum --check checksums; then
+
+ echo -e "PASS"
+
+else
+ echo "FAIL"
+
+fi
+
View it on GitLab: https://salsa.debian.org/med-team/dcmtk/-/compare/cae3399047c20a2582e9ffe1399950268f04fb39...47a9f1dc15b56db6efcfd7dbbcdd6d97c0cbcb4a
--
View it on GitLab: https://salsa.debian.org/med-team/dcmtk/-/compare/cae3399047c20a2582e9ffe1399950268f04fb39...47a9f1dc15b56db6efcfd7dbbcdd6d97c0cbcb4a
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/20220819/824a5443/attachment-0001.htm>
More information about the debian-med-commit
mailing list