#!/bin/sh
# Run pyrit unit tests using the default Python version. Assumes
# $AUTOPKGTEST_TMP is set, see /usr/share/doc/autopkgtest/README.package-tests.gz
set -e

mkdir "$AUTOPKGTEST_TMP/home"
export HOME="$AUTOPKGTEST_TMP/home"

# We just copy the entire test suite to the $ADTTMP directory and run the
# tests from within there.
cp -r test "$AUTOPKGTEST_TMP"
cd "$AUTOPKGTEST_TMP"/test
python test_pyrit.py
