#!/bin/bash
set -e

DEB_HOST_ARCH=$(dpkg-architecture -q DEB_HOST_ARCH)

if [ "${DEB_HOST_ARCH}" = "amd64" ]; then
    cp -r qutip/tests "$AUTOPKGTEST_TMP"
    for py in $(py3versions -r 2>/dev/null); do
	cd "$AUTOPKGTEST_TMP"
	echo "Testing with $py:"
	$py -m pytest
    done
else
    echo "qutip tests are performed for amd64 only"
fi
