#!/bin/sh -e

pkg=python-ruffus
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
mkdir ruffus
cd ruffus
cp -a /usr/share/doc/python-ruffus-doc/test .
cd test
find . -type f -name "*.gz" -exec gunzip \{\} \;

export LC_ALL=C.UTF-8
export HOME=$AUTOPKGTEST_TMP
bash run_all_unit_tests3.cmd
