[med-svn] [Git][med-team/dcm2niix][debian/master] 5 commits: Add autopkgtests

Mohd Bilal (@rmb) gitlab at salsa.debian.org
Sun May 22 20:17:18 BST 2022



Mohd  Bilal pushed to branch debian/master at Debian Med / dcm2niix


Commits:
3d2b52d0 by Mohammed Bilal at 2022-05-23T00:27:56+05:30
Add autopkgtests

- - - - -
0500b613 by Mohammed Bilal at 2022-05-23T00:28:27+05:30
Install examples

- - - - -
3ed78607 by Mohammed Bilal at 2022-05-23T00:29:57+05:30
Bump Standards-Version to 4.6.1 (no changes needed)

- - - - -
52239ee8 by Mohammed Bilal at 2022-05-23T00:36:18+05:30
add example data tarball to d/s/include-binaries

- - - - -
5cfe6d21 by Mohammed Bilal at 2022-05-23T00:45:35+05:30
Update changelog

- - - - -


8 changed files:

- debian/changelog
- debian/control
- + debian/examples
- + debian/source/include-binaries
- + debian/tests/README
- + debian/tests/control
- + debian/tests/data/sample-dicoms.tar.gz
- + debian/tests/run-unit-test


Changes:

=====================================
debian/changelog
=====================================
@@ -1,3 +1,13 @@
+dcm2niix (1.0.20211006-3) UNRELEASED; urgency=medium
+
+  * Team upload.
+  * Add autopkgtests
+  * Install examples
+  * Bump Standards-Version to 4.6.1 (no changes needed)
+  * add example data tarball to d/s/include-binaries
+
+ -- Mohammed Bilal <mdbilal at disroot.org>  Mon, 23 May 2022 00:36:23 +0530
+
 dcm2niix (1.0.20211006-2) unstable; urgency=medium
 
   [ Helmut Grohne ]


=====================================
debian/control
=====================================
@@ -11,7 +11,7 @@ Build-Depends: cmake,
                pkg-config,
                python3-sphinx:native,
                zlib1g-dev
-Standards-Version: 4.6.0
+Standards-Version: 4.6.1
 Vcs-Browser: https://salsa.debian.org/med-team/dcm2niix
 Vcs-Git: https://salsa.debian.org/med-team/dcm2niix.git
 Homepage: https://github.com/rordenlab/dcm2niix


=====================================
debian/examples
=====================================
@@ -0,0 +1 @@
+debian/tests/data/*


=====================================
debian/source/include-binaries
=====================================
@@ -0,0 +1 @@
+debian/tests/data/sample-dicoms.tar.gz


=====================================
debian/tests/README
=====================================
@@ -0,0 +1,5 @@
+Tests for dcm2niix
+=================
+
+The data for tests has been referenced from:
+	https://github.com/neurolabusc/dcm_qa_asl/tree/master/In/PASL2D/3_pasl_2d


=====================================
debian/tests/control
=====================================
@@ -0,0 +1,3 @@
+Tests: run-unit-test
+Depends: @
+Restrictions: allow-stderr


=====================================
debian/tests/data/sample-dicoms.tar.gz
=====================================
Binary files /dev/null and b/debian/tests/data/sample-dicoms.tar.gz differ


=====================================
debian/tests/run-unit-test
=====================================
@@ -0,0 +1,32 @@
+set -e
+
+pkg=dcm2niix
+
+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 /usr/share/doc/${pkg}/examples/* -a "${AUTOPKGTEST_TMP}"
+
+
+cd "${AUTOPKGTEST_TMP}"
+
+gunzip -r *
+mkdir data
+tar -xvf *.tar --directory=data
+
+
+echo "bb0b8cb8ad4eb8b796e9cbb098f2d3c8  data/data_pasl_2d_20181218130847_3.json" >> checksums
+echo "306132738d94d6fd612b0d7b14c3cde4  data/data_pasl_2d_20181218130847_3.nii" >> checksums
+
+# Basic functionality
+
+dcm2niix data/
+
+echo -e "\e[93m\e[1mRunning Tests\e[0m"
+
+md5sum --check checksums
+echo -e "\e[92m\e[1mPASS\e[0m"
+
+



View it on GitLab: https://salsa.debian.org/med-team/dcm2niix/-/compare/2d04fee498bab280127a34e44d4f4d3ffa622415...5cfe6d21b0240fcc1ed79344fff8713c506584bb

-- 
View it on GitLab: https://salsa.debian.org/med-team/dcm2niix/-/compare/2d04fee498bab280127a34e44d4f4d3ffa622415...5cfe6d21b0240fcc1ed79344fff8713c506584bb
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/20220522/001ce242/attachment-0001.htm>


More information about the debian-med-commit mailing list