#!/bin/sh -e

pkg=toppred
if [ "$AUTOPKGTEST_TMP" = "" ] ; then
  AUTOPKGTEST_TMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
fi
cd $AUTOPKGTEST_TMP

cp -a /usr/share/doc/toppred/examples/* .
find . -name "*.gz" -exec gunzip \{\} \;
cd test

for tscript in *.test ; do
    sh ./$tscript
done

