File: unit-tests-3

package info (click to toggle)
twisted 25.5.0-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 20,560 kB
  • sloc: python: 203,171; makefile: 200; sh: 92; javascript: 36; xml: 31
file content (20 lines) | stat: -rw-r--r-- 630 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

set -euf

cd ${AUTOPKGTEST_TMP}

# See discussion in https://bugs.debian.org/965041.
export CRYPTOGRAPHY_OPENSSL_NO_LEGACY=1

for py in $(py3versions -s); do
    echo "=== $py ==="
    # Should just be $py -m twisted.trial, but this forces the Hypothesis
    # profile in twisted.trial.test to be loaded at the right time.  See
    # https://bugs.debian.org/1116155.
    $py -c 'import sys; import twisted.trial.test; from twisted.scripts.trial import run; sys.exit(run())' \
        --temp-directory=${AUTOPKGTEST_TMP}/_trial_temp_$py \
        --reactor=default \
        --reporter=verbose \
        -e twisted
done