#!/bin/sh -e

pkg=poa

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

cd $ADTTMP

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

poa -read_fasta test1.fa -clustal clustal.aln blosum80.mat

poa -read_msa clustal.aln -pir pir.aln blosum80.mat

poa -read_fasta test2.fa -pir pir.aln -best blosum80.mat

poa -read_fasta test3.fa -po po.aln blosum80.mat

poa -read_fasta test4.fa -do_global -clustal clustal.aln blosum80.mat

poa -read_fasta test5.fa -do_progressive -clustal clustal.aln blosum80.mat
