#!/bin/sh -e

pkg=proteinortho
if [ "$ADTTMP" = "" ] ; then
  ADTTMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
fi
cd $ADTTMP
mkdir test
cp -a /usr/share/doc/${pkg}/examples/* test
find . -type f -name "*.gz" -exec gunzip \{\} \;
mv test/chk_test.pl .
proteinortho5 -project=test -synteny -singles test/*.faa
./chk_test.pl test.proteinortho
./chk_test.pl test.poff
echo "Test okay"

rm -fr $ADTTMP/*
