#!/bin/sh -e

pkg=python-sql

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

cd $ADTTMP

mkdir test
cp -a /usr/lib/python2.7/dist-packages/sql/* ./test/

python -m pytest test/tests/
