#!/bin/sh -e

pkg=minia

if [ "$AUTOPKGTEST_TMP" = "" ] ; then
  AUTOPKGTEST_TMP=$(mktemp -d /tmp/${pkg}-test.XXXXXX)
  trap "rm -rf $AUTOPKGTEST_TMP" 0 INT QUIT ABRT PIPE TERM
fi

cd $AUTOPKGTEST_TMP

cp -a /usr/share/doc/${pkg}/test/* .
gunzip -r *

echo "************ Run simple_test.sh ****************"
bash simple_test.sh
echo "************ Run 10k_test.sh ****************"
sh 10k_test.sh
echo "************ Run buchnera_test.sh ****************"
sh buchnera_test.sh

echo "************ Run buchnera_simulate_reads.sh ****************"
sh buchnera_simulate_reads.sh
echo "************ Run 1seq_90bp_simulate_reads.sh ****************"
sh 1seq_90bp_simulate_reads.sh
