
#!/bin/sh
set -efu

export PYTHONWARNINGS=d

python3_all="$(py3versions -s 2>/dev/null)"

TESTS_TO_EXCLUDE="not test_annots and not test_docs_samples and not test_codespell and not test_flake8 and not test_font and not test_general and not test_linebreaks and not test_linequad and not test_objectstreams and not test_pixmap and not test_story and not test_tables and not test_textbox and not test_textextract and not test_toc and not test_word_delimiters and not test_insertpdf and not test_mupdf_regressions and not test_pagedelete and not test_pylint and not test_tesseract"

cp -r tests "$AUTOPKGTEST_TMP/"
cd "$AUTOPKGTEST_TMP"

for py in $python3_all; do
    echo "=== $py ==="
    $py -m pytest --verbose -k "${TESTS_TO_EXCLUDE}" 2>&1
done

