#!/bin/sh -e

pkg=python3-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/python3/dist-packages/sql/* ./test/

python3 -m pytest test/tests
