[med-svn] [Git][med-team/dcm2niix][debian/master] 2 commits: bring back md5sum check for json output

Mohd Bilal (@rmb) gitlab at salsa.debian.org
Fri Aug 12 16:22:04 BST 2022



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


Commits:
a5c2176b by Mohammed Bilal at 2022-08-12T20:51:07+05:30
bring back md5sum check for json output

Added md5sum check by replacing the version number in the generated file

- - - - -
f098a140 by Mohammed Bilal at 2022-08-12T20:51:50+05:30
Update changelog

- - - - -


2 changed files:

- debian/changelog
- debian/tests/run-unit-test


Changes:

=====================================
debian/changelog
=====================================
@@ -1,10 +1,13 @@
 dcm2niix (1.0.20220720-1) UNRELEASED; urgency=medium
 
+  [ Andreas Tille ]
   * Team upload.
   * New upstream version
-  * d/t/run-unit-test: remove md5sum check for generated json file
 
- -- Andreas Tille <tille at debian.org>  Fri, 12 Aug 2022 14:46:27 +0200
+  [ Mohammed Bilal ]
+  * Fix hashsum mismatch for autopkgtest
+
+ -- Mohammed Bilal <mdbilal at disroot.org>  Fri, 12 Aug 2022 20:51:12 +0530
 
 dcm2niix (1.0.20211006-5) unstable; urgency=medium
 


=====================================
debian/tests/run-unit-test
=====================================
@@ -11,8 +11,10 @@ mkdir -p ${AUTOPKGTEST_TMP}/data
 cp debian-tests-data -a "${AUTOPKGTEST_TMP}/data"
 
 cd "${AUTOPKGTEST_TMP}"
+PACKAGE_VERSION=$(dcm2niix --version | tail -1)
 
 echo "306132738d94d6fd612b0d7b14c3cde4  data/data_pasl_2d_20181218130847_3.nii" >> checksums
+echo "cf8f6487a5acd611b3f9904dd6502890  data/data_pasl_2d_20181218130847_3.json" >> checksums
 
 # Basic functionality
 
@@ -27,6 +29,8 @@ else
    dcm2niix data/
 fi
 
+sed -i "s/$PACKAGE_VERSION//g" "data/data_pasl_2d_20181218130847_3.json"
+
 
 md5sum --check checksums
 echo -e "\e[92m\e[1mPASS\e[0m"



View it on GitLab: https://salsa.debian.org/med-team/dcm2niix/-/compare/e4b726a2c804319ef563e270fd99089cfb1b8874...f098a140740a73fcdf0f2182843536eb017c9e63

-- 
View it on GitLab: https://salsa.debian.org/med-team/dcm2niix/-/compare/e4b726a2c804319ef563e270fd99089cfb1b8874...f098a140740a73fcdf0f2182843536eb017c9e63
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/20220812/a20e18fb/attachment-0001.htm>


More information about the debian-med-commit mailing list