File: run-unit-test

package info (click to toggle)
smart-open 7.5.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 980 kB
  • sloc: python: 8,054; sh: 90; makefile: 14
file content (22 lines) | stat: -rw-r--r-- 473 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash

set -e

pkg=smart_open

if [ "$AUTOPKGTEST_TMP" = "" ] ; then
  AUTOPKGTEST_TMP=`mktemp -d /tmp/${pkg}-test.XXXXXX`
  trap "rm -rf $AUTOPKGTEST_TMP" 0 INT QUIT ABRT PIPE TERM
fi

cp -a pyproject.toml tests $AUTOPKGTEST_TMP

cd $AUTOPKGTEST_TMP

export CRYPTOGRAPHY_OPENSSL_NO_LEGACY=1

for py in $(py3versions -s 2> /dev/null)
do
    echo "Testing with $py in $(pwd):"
    $py -m pytest --ignore tests/test_gcs.py -k 'not test_gs_uri and not test_scheme'
done