#!/bin/bash
set -e -u
export PYTHONWARNINGS=d
cp -a tests/ doc/ "$AUTOPKGTEST_TMP"
cd "$AUTOPKGTEST_TMP/tests/"
touch "$AUTOPKGTEST_TMP/tests/__init__.py"
# Skip test_export_ps and test_decode in s390x.
if [[ "$(dpkg-architecture -qDEB_HOST_ARCH)" == "s390x" ]]; then
    py3versions -s | tr ' ' '\n' | xargs -I {} env CC=gcc {} -m nose --verbose --no-skip -e test_export_ps -e test_decode 2>&1
else
    py3versions -s | tr ' ' '\n' | xargs -I {} env CC=gcc {} -m nose --verbose --no-skip -e test_export_ps 2>&1
fi
