Commit 16d4ae1d authored by Saira Hussain's avatar Saira Hussain 💬
Browse files

Add autopkgtests

parent c501e168
Loading
Loading
Loading
Loading
+9 −0
Original line number Diff line number Diff line
dnaclust (3-7) UNRELEASED; urgency=medium

  * Team upload.
  
  [Saira Hussain]
  * Add autopkgtests

 -- Saira Hussain <saira.h0213@zoho.com>  Thu, 08 Aug 2019 13:08:28 +0100

dnaclust (3-6) unstable; urgency=medium

  * debhelper 11

debian/dnaclust

0 → 100644
+1 −0
Original line number Diff line number Diff line
debian/tests/data/*
 No newline at end of file

debian/tests/control

0 → 100644
+3 −0
Original line number Diff line number Diff line
Tests: run-unit-tests
Depends: @
Restrictions: allow-stderr
+40 −0

File added.

Preview size limit exceeded, changes collapsed.

+23 −0
Original line number Diff line number Diff line
#!/bin/bash
set -e

pkg=dnaclust

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

# Test a fasta
${pkg} ebola.fasta -l -s 1.4 -k 3 > clusters