#!/bin/sh
# autopkgtest check: build and run with default test data, taken from package's readme.txt
# Author: Tatiana Malygina <merlettaia@gmail.com>

set -e

pkg=conservation-code

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}/examples/* .

#following call doesn't produce error when default alignment matrix can be found
score_conservation -o alignment.scores 2plc__hssp-filtered.aln
[ -e alignment.scores ]
