thrnciar / tests / python

Forked from tests/python 4 years ago
Clone

Blame selftest/parallel.sh

11bfd62
#!/bin/sh -eux
11bfd62
11bfd62
# set python version
11bfd62
VERSION=${VERSION:-3.7}
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