#!/bin/sh
# autopkgtest check: Run test cases for installed AEGeAn tools
# Author: Sascha Steinbiss <sascha@steinbiss.name>
set -e

ORIGDIR=$(pwd)
WORKDIR=$(mktemp -d)
trap "rm -rf $WORKDIR" 0 INT QUIT ABRT PIPE TERM
cd $WORKDIR

cp $ORIGDIR/example/* .
cp $ORIGDIR/debian/tests/SRR* .

if [ -n "$1" ]; then
  CMD=$1;
else
  CMD=sspace
fi

$CMD -l libraries.txt -s contigs_abyss.fasta

[ -s standard_output.final.evidence ]
[ -s standard_output.final.scaffolds.fasta ]
[ -s standard_output.logfile.txt ]
[ -s standard_output.summaryfile.txt ]
