Skip to content
Commits on Source (3)
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.
......@@ -11,7 +11,7 @@ epcr (2.3.12-1-8) UNRELEASED; urgency=medium
[ Saira Hussain ]
* Add script to fetch the required data for testing
-- Vagrant Default User <vagrant@contrib-testing.localdomain> Mon, 24 Jun 2019 13:23:50 +0000
-- Saira Hussain <saira.h0213@zoho.com> Mon, 24 Jun 2019 13:23:50 +0000
epcr (2.3.12-1-7) unstable; urgency=medium
......
README.txt
README.html
debian/RETIRED_README.txt
debian/tests/data
debian/tests/run-unit-test
debian/README.test
......@@ -14,7 +14,7 @@ CFLAGS += -I. -g2 -DDEALLOCATE=0 -DVERSION=\"$(DEB_VERSION_UPSTREAM)\" -DVER_MAJ
LDFLAGS += -L.
%:
dh $@
dh $@ --no-parallel
override_dh_auto_clean:
rm -fr epcr
......
Tests: run-unit-test
Depends: @
Restrictions: allow-stderr
rbcL1/rbcLA TTGGCAGCATTYCGAGTAACTCC CCTTTRTAACGATCAAGRC
......@@ -34,7 +34,7 @@ def fetch_ids(dbs, qr):
def create_primer(pr):
pf = open('rbcL-primer.txt', 'w')
pf = open('data/rbcL-primer.txt', 'w')
pf.write(pr)
pf.write('\n')
pf.close()
......
#!/bin/bash
set -e
pkg=ncbi-epcr
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 -a /usr/share/doc/${pkg}/data/* "${AUTOPKGTEST_TMP}"
cd "${AUTOPKGTEST_TMP}"
gunzip -r *
re-PCR -S ginko.hash -n 5 -g 0 -d 100-300 -o rbcL5.rePCR rbcL-primer.txt