#!/bin/sh -e

pkg=mira

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}-assembler/test_data .
cp -a /usr/share/doc/${pkg}-assembler/*.conf .
gunzip -r *

#denovo
mira solexa1.conf > log_assembly.txt

#mapping
mira solexa2.conf > log_assembly.txt

#est
mira est_assembly.conf > log_assembly.txt
