diff -Nru norsnet-1.0.17/debian/changelog norsnet-1.0.17/debian/changelog --- norsnet-1.0.17/debian/changelog 2018-10-18 06:33:36.000000000 +0000 +++ norsnet-1.0.17/debian/changelog 2019-07-31 10:31:56.000000000 +0000 @@ -1,3 +1,17 @@ +norsnet (1.0.17-5) unstable; urgency=medium + + [ Saira Hussain ] + * Team upload. + + [Saira Hussain] + * Add unit tests + + [ Andreas Tille ] + * debhelper-compat 12 + * Standards-Version: 4.4.0 + + -- Saira Hussain Wed, 31 Jul 2019 11:31:56 +0100 + norsnet (1.0.17-4) unstable; urgency=medium * pp-popularity-contest only suggested diff -Nru norsnet-1.0.17/debian/compat norsnet-1.0.17/debian/compat --- norsnet-1.0.17/debian/compat 2018-10-18 06:33:36.000000000 +0000 +++ norsnet-1.0.17/debian/compat 1970-01-01 00:00:00.000000000 +0000 @@ -1 +0,0 @@ -11 diff -Nru norsnet-1.0.17/debian/control norsnet-1.0.17/debian/control --- norsnet-1.0.17/debian/control 2018-10-18 06:33:36.000000000 +0000 +++ norsnet-1.0.17/debian/control 2019-07-31 10:31:56.000000000 +0000 @@ -5,8 +5,8 @@ Andreas Tille Section: science Priority: optional -Build-Depends: debhelper (>= 11~) -Standards-Version: 4.2.1 +Build-Depends: debhelper-compat (= 12) +Standards-Version: 4.4.0 Vcs-Browser: https://salsa.debian.org/med-team/norsnet Vcs-Git: https://salsa.debian.org/med-team/norsnet.git Homepage: https://www.rostlab.org/owiki/index.php/Norsnet diff -Nru norsnet-1.0.17/debian/examples norsnet-1.0.17/debian/examples --- norsnet-1.0.17/debian/examples 1970-01-01 00:00:00.000000000 +0000 +++ norsnet-1.0.17/debian/examples 2019-07-31 10:31:56.000000000 +0000 @@ -0,0 +1 @@ +examples/* diff -Nru norsnet-1.0.17/debian/tests/control norsnet-1.0.17/debian/tests/control --- norsnet-1.0.17/debian/tests/control 1970-01-01 00:00:00.000000000 +0000 +++ norsnet-1.0.17/debian/tests/control 2019-07-31 10:31:56.000000000 +0000 @@ -0,0 +1,3 @@ +Tests: run-unit-tests +Depends: @ +Restrictions: allow-stderr diff -Nru norsnet-1.0.17/debian/tests/run-unit-tests norsnet-1.0.17/debian/tests/run-unit-tests --- norsnet-1.0.17/debian/tests/run-unit-tests 1970-01-01 00:00:00.000000000 +0000 +++ norsnet-1.0.17/debian/tests/run-unit-tests 2019-07-31 10:31:56.000000000 +0000 @@ -0,0 +1,30 @@ +#!/bin/bash +set -e + +pkg=norsnet + +if [ "${AUTOPKGTEST_TMP}" = "" ] ; then + AUTOPKGTEST_TMP=$(mktemp -d /tmp/${pkg}-test.XXXXXX) + # Double quote below to expand the temporary directory variable now versus + # later is on purpose. + # shellcheck disable=SC2064 +# 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 * + +# Just for debugging +set -x + +# Run the shipped example data files +for (( n=1; n<=2; n++)) +do + norsnet cad23.f cad23-fil.rdbProf cad23-fil.hssp cad23.norsnet cad23 cad23.profbval $n debug +done + + + +