#!/bin/sh
# autopkgtest check: build and run with default test data
# Author: Tatiana Malygina <merlettaia@gmail.com>

set -e

pkg=rate4site

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

cd $ADTTMP

cat <<EOF > msa.fasta
>string1
CAPTIA-N
>string2
CAPT-A--
>string3
CAPT-AIN
EOF 
# This creates file with a simple multiple sequence alignment in one of 
# supported formats (namely, in .fasta format). This doesn't produce any 
# sensible data, but simply shows that program executes and outputs some 
# results. 

echo "Run rate4site..."
rate4site -s msa.fasta
[ -s TheTree.txt ]
[ -s r4s.res ]
