Debian Codegraph @

debian/tests/unit-tests-3

raw
1 #!/bin/sh
2
3 set -euf
4
5 cd ${AUTOPKGTEST_TMP}
6
7 # See discussion in https://bugs.debian.org/965041.
8 export CRYPTOGRAPHY_OPENSSL_NO_LEGACY=1
9
10 for py in $(py3versions -s); do
11 echo "=== $py ==="
12 # Should just be $py -m twisted.trial, but this forces the Hypothesis
13 # profile in twisted.trial.test to be loaded at the right time. See
14 # https://bugs.debian.org/1116155.
15 $py -c 'import sys; import twisted.trial.test; from twisted.scripts.trial import run; sys.exit(run())' \
16 --temp-directory=${AUTOPKGTEST_TMP}/_trial_temp_$py \
17 --reactor=default \
18 --reporter=verbose \
19 -e twisted
20 done