Blame selftest/parallel.sh

11bfd62
#!/bin/sh -eux
11bfd62
6a9ffe6
# set default version to %{python3_version} if available
6a9ffe6
VERSION=${VERSION:-$(rpm --eval '%{?python3_version}')} || true
6a9ffe6
# ...or 3.8 if that macro is not available or rpm fails for any reason
6a9ffe6
VERSION=${VERSION:-3.8}
6a9ffe6
11bfd62
PYTHON=${PYTHON:-python$VERSION}
11bfd62
11bfd62
# what to skip
11bfd62
# test_socket swaps and kills the machine https://bugs.python.org/issue34587
11bfd62
X=${X:-"-x test_socket"}
11bfd62
11bfd62
# parallel jobs, 0 lets Python decide what's best
11bfd62
JOBS=${JOBS:-0}
11bfd62
606e77a
# Fedora sets explicit minimum/maximum TLS versions.
606e77a
# Python's test suite assumes that the minimum/maximum version is set to
97db1f9
# a magic marker. We workaround the test problem by setting:
97db1f9
export OPENSSL_CONF=/non-existing-file
97db1f9
# https://bugzilla.redhat.com/show_bug.cgi?id=1618753
606e77a
# https://bugzilla.redhat.com/show_bug.cgi?id=1778357
606e77a
# https://bugs.python.org/issue35045
606e77a
# https://bugs.python.org/issue38815
97db1f9
8dbc369
$PYTHON -m test.pythoninfo
8dbc369
$PYTHON -m test -wW -j$JOBS $X