Mohd Bilal pushed to branch master at Debian Med / minc-tools
Commits: 5d178fa9 by Mohammed Bilal at 2022-05-24T18:44:26+00:00 Install examples - - - - - 6c579231 by Mohammed Bilal at 2022-05-25T00:21:53+05:30 Add autopkgtests - - - - - 810a4d69 by Mohammed Bilal at 2022-05-25T00:22:25+05:30 Bump Standards-Version to 4.6.1 (no changes needed) - - - - - 3829fb72 by Mohammed Bilal at 2022-05-25T00:30:32+05:30 clean test output files - - - - - 5e9e3dce by Mohammed Bilal at 2022-05-24T19:13:50+00:00 Update changelog - - - - - 6 changed files: - debian/changelog - + debian/clean - debian/control - + debian/examples - + debian/tests/control - + debian/tests/run-unit-test Changes: ===================================== debian/changelog ===================================== @@ -1,3 +1,13 @@ +minc-tools (2.3.00+dfsg-9) UNRELEASED; urgency=medium + + * Team upload. + * Install examples + * Add autopkgtests + * Bump Standards-Version to 4.6.1 (no changes needed) + * clean test output files + + -- Mohammed Bilal <[email protected]> Tue, 24 May 2022 19:10:46 +0000 + minc-tools (2.3.00+dfsg-8) unstable; urgency=medium * Really fix watch file ===================================== debian/clean ===================================== @@ -0,0 +1,5 @@ +Testing/mincaverage-out.mnc +Testing/minccalc-out.mnc +Testing/mincresample-out.mnc +Testing/mincreshape-t1.mnc +Testing/mincreshape-t1.txt ===================================== debian/control ===================================== @@ -15,7 +15,7 @@ Build-Depends: debhelper-compat (= 13), texlive-latex-base, libhdf5-dev, debhelper -Standards-Version: 4.6.0 +Standards-Version: 4.6.1 Vcs-Browser: https://salsa.debian.org/med-team/minc-tools Vcs-Git: https://salsa.debian.org/med-team/minc-tools.git Homepage: https://www.bic.mni.mcgill.ca/ServicesSoftware/HomePage ===================================== debian/examples ===================================== @@ -0,0 +1 @@ +Testing/*.mnc ===================================== debian/tests/control ===================================== @@ -0,0 +1,3 @@ +Tests: run-unit-test +Depends: @ +Restrictions: allow-stderr ===================================== debian/tests/run-unit-test ===================================== @@ -0,0 +1,64 @@ +set -e + +pkg=minc-tools + +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/share/doc/${pkg}/examples/* "${AUTOPKGTEST_TMP}" + +cd "${AUTOPKGTEST_TMP}" + +echo -e "\e[93m\e[1mTest 1\e[0m" + +mincaverage -clobber mincaverage-in0.mnc mincaverage-in1.mnc mincaverage-out.mnc +r1=`mincstats -quiet -sum mincaverage-out.mnc` +if [[ $r1 == "-88.5" ]]; then + echo -e "\e[92m\e[1mPassed\e[0m" +else + echo -e "\e[1;31FAILED!" +fi; + + +echo -e "\e[93m\e[1mTest 2\e[0m" + +minccalc -clobber -quiet -expression "A[0]+A[1];" test-one.mnc test-two.mnc minccalc-out.mnc +r2=`mincstats -quiet -sum minccalc-out.mnc` +if [[ $r2 == "375" ]]; then + echo -e "\e[92m\e[1mPassed\e[0m" +else + echo -e "\e[1;31FAILED!" +fi; + +echo -e "\e[93m\e[1mTest 3\e[0m" + +mincresample -clobber test-rnd.mnc mincresample-out.mnc +r3=`mincstats -quiet -sum mincresample-out.mnc` +if [[ $r3 == "250" ]]; then + echo -e "\e[92m\e[1mPassed\e[0m" +else + echo -e "\e[1;31FAILED!" +fi; + + +echo -e "\e[93m\e[1mTest 4\e[0m" + +r4=`mincinfo -dimlength xspace test-zero.mnc` +if [[ $r4 == "5" ]]; then + echo -e "\e[92m\e[1mPassed\e[0m" +else + echo -e "\e[1;31FAILED!" +fi; + +echo -e "\e[93m\e[1mTest 5\e[0m" + +mincreshape -quiet -clobber -unsigned -short test-one.mnc mincreshape-t1.mnc +r5=`mincstats -clobber -integer_histogram -histogram mincreshape-t1.txt -quiet -sum mincreshape-t1.mnc` +if [[ $r5 == "125" ]]; then + echo -e "\e[92m\e[1mPassed\e[0m" +else + echo -e "\e[1;31FAILED!" +fi; + View it on GitLab: https://salsa.debian.org/med-team/minc-tools/-/compare/aa1399b78b874ef668d121d404d459c03a17df90...5e9e3dce3f7cef9a83a7ea1dd4585b1ae80812ad -- View it on GitLab: https://salsa.debian.org/med-team/minc-tools/-/compare/aa1399b78b874ef668d121d404d459c03a17df90...5e9e3dce3f7cef9a83a7ea1dd4585b1ae80812ad You're receiving this email because of your account on salsa.debian.org.
_______________________________________________ debian-med-commit mailing list [email protected] https://alioth-lists.debian.net/cgi-bin/mailman/listinfo/debian-med-commit
