#!/bin/sh
set -e
cp -r test* "$AUTOPKGTEST_TMP/" && cd "$AUTOPKGTEST_TMP"
install -d "$AUTOPKGTEST_TMP/pyhomematic/devicetypes"
ln -s /usr/lib/python3/dist-packages/pyhomematic/devicetypes/json "$AUTOPKGTEST_TMP/pyhomematic/devicetypes"
for py in $(py3versions -s); do
$py -Wd -m pytest -v -x 2>&1
done
