Commit effd46a1 authored by Liubov Chuprikova's avatar Liubov Chuprikova
Browse files

Add a simple autopkgtest

parent f2162cc2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -23,7 +23,7 @@ Depends: ${shlibs:Depends},
         qiime,
         python3-setuptools,
         python3-click
Description: Command line interface for QIIME 2
Description: Click-based command line interface for QIIME 2
 QIIME 2 is a powerful, extensible, and decentralized microbiome analysis
 package with a focus on data and analysis transparency. QIIME 2 enables
 researchers to start an analysis with raw DNA sequence data and finish with
+7 −9
Original line number Diff line number Diff line
#!/bin/bash
set -e
#!/bin/sh -e

pkg=#PACKAGENAME#
pkg=q2cli

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}/examples/* "${AUTOPKGTEST_TMP}"

cd "${AUTOPKGTEST_TMP}"

#do_stuff_to_test_package#
export HOME=${HOME:-$PWD}

/usr/bin/qiime --help

echo "\nRESULTS: OK\n"