#!/bin/bash
set -e

pkg="pftools"

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

cd $AUTOPKGTEST_TMP

cp -a /usr/share/doc/${pkg}/examples/* .

sed -i -e 's|CMPDIR=/usr/share/data/cmp|CMPDIR=/usr/share/doc/pftools/examples/Matrices|g' test_V3.sh
. ./test_V3.sh CMPDIR=/usr/share/doc/pftools/examples
