#!/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 [ "$AUTOPKGTEST_TMP" = "" ] ; then
  AUTOPKGTEST_TMP=$(mktemp -d /tmp/${pkg}-test.XXXXXX)
  trap "rm -rf $AUTOPKGTEST_TMP" 0 INT QUIT ABRT PIPE TERM
fi

cd $AUTOPKGTEST_TMP

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 ]
