diff -Nru mipe-1.1/debian/changelog mipe-1.1/debian/changelog --- mipe-1.1/debian/changelog 2020-11-26 12:14:46.000000000 +0000 +++ mipe-1.1/debian/changelog 2021-02-21 18:17:24.000000000 +0000 @@ -1,3 +1,15 @@ +mipe (1.1-9) unstable; urgency=medium + + * Team upload. + * Add autopkgtests + Closes: #890788 + * Add data for tests + * Add example for tests + * Add docs + * Add source for test data + + -- Shruti Sridhar Sun, 21 Feb 2021 23:47:24 +0530 + mipe (1.1-8) unstable; urgency=medium * Standards-Version: 4.5.1 (routine-update) diff -Nru mipe-1.1/debian/docs mipe-1.1/debian/docs --- mipe-1.1/debian/docs 2020-11-26 12:14:46.000000000 +0000 +++ mipe-1.1/debian/docs 2021-02-21 18:17:24.000000000 +0000 @@ -1 +1,3 @@ README +debian/README* +debian/tests/run-unit-test \ No newline at end of file diff -Nru mipe-1.1/debian/examples mipe-1.1/debian/examples --- mipe-1.1/debian/examples 1970-01-01 00:00:00.000000000 +0000 +++ mipe-1.1/debian/examples 2021-02-21 18:17:24.000000000 +0000 @@ -0,0 +1 @@ +debian/tests/data/* \ No newline at end of file diff -Nru mipe-1.1/debian/README.test mipe-1.1/debian/README.test --- mipe-1.1/debian/README.test 1970-01-01 00:00:00.000000000 +0000 +++ mipe-1.1/debian/README.test 2021-02-21 18:17:24.000000000 +0000 @@ -0,0 +1,14 @@ +Notes on how this package can be tested. +──────────────────────────────────────── + +This package can be tested by running the provided test: + + sh run-unit-test + +in order to confirm its integrity. + +Notes on the files used for testing +──────────────────────────────────────── +Files: debian/tests/data/* +Source: http://mipe.sourceforge.net/ + diff -Nru mipe-1.1/debian/tests/control mipe-1.1/debian/tests/control --- mipe-1.1/debian/tests/control 1970-01-01 00:00:00.000000000 +0000 +++ mipe-1.1/debian/tests/control 2021-02-21 18:17:24.000000000 +0000 @@ -0,0 +1,3 @@ +Tests: run-unit-test +Depends: @ +Restrictions: allow-stderr diff -Nru mipe-1.1/debian/tests/data/template.mipe mipe-1.1/debian/tests/data/template.mipe --- mipe-1.1/debian/tests/data/template.mipe 1970-01-01 00:00:00.000000000 +0000 +++ mipe-1.1/debian/tests/data/template.mipe 2021-02-21 18:17:24.000000000 +0000 @@ -0,0 +1,35 @@ + + + 1.0 + + PCR1 + 20040426 + 20040428 + Jan Aerts + chicken + + + CYP2D6.fas + + 125-642 + ACCTACTACTACAAACTACAACAAAATTCACATCAAAACATACACCATACCTACTACTAT... + + OL04-242 + + + OL04-243 + + + + CACCATCACAGCTCACTATCGCCTGCGGGATCTCTCATTTACACAATTCGAGCTCACATCTATCATATCTAA... + 1 + + SCW0006 + 45 + R + 3 + + + + diff -Nru mipe-1.1/debian/tests/run-unit-test mipe-1.1/debian/tests/run-unit-test --- mipe-1.1/debian/tests/run-unit-test 1970-01-01 00:00:00.000000000 +0000 +++ mipe-1.1/debian/tests/run-unit-test 2021-02-21 18:17:24.000000000 +0000 @@ -0,0 +1,34 @@ +#!/bin/bash +set -e + +pkg=mipe + +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/share/doc/${pkg}/examples/* "${AUTOPKGTEST_TMP}" + +cd "${AUTOPKGTEST_TMP}" + + +mipe0_9to1_0 template.mipe > mipe0_9 +echo "6292e7feaa902e9dab6c8401d780ff06 mipe0_9" >> checksums + +mipe2pcroverview template.mipe > mipepcr +echo "10632740119ff60721a50ded8a375209 mipepcr" >> checksums + +mipe06to07 template.mipe > mipe06 +echo "2878e5c422cd82574df7f75e0182eea4 mipe06" >> checksums + +mipe2snps template.mipe > snp.csv +echo "1d1d78f1a3aba3bb354ef336bb4996e6 snp.csv" >> checksums + +mipe2pcrprimers template.mipe > primers +echo "bc64141b33d3026b6d8c421ba4d779e5 primers" >> checksums + +md5sum --check checksums + +