#!/bin/sh -e

pkg=python3-webdav

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/share/${pkg}/test/* ./test/

python3 -m pytest test
