#!/bin/sh -e

pkg=velvet
if [ "$AUTOPKGTEST_TMP" = "" ] ; then
  AUTOPKGTEST_TMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
fi
cd $AUTOPKGTEST_TMP
cp -a /usr/share/doc/${pkg}/tests/* $AUTOPKGTEST_TMP
gunzip [RS]*.gz
chmod +x run-tests*
./run-tests.sh
# rm -f $AUTOPKGTEST_TMP/*
