summaryrefslogtreecommitdiff
path: root/debian/tests/python-upstream.sh
blob: 36d5031c786c4ea8b33b53b5ecf920b18ad2e40e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/bash

set -e
set -u

helper=$PWD/debian/tests/upstream.py
testdir=$PWD/src/python/test
cp $helper $AUTOPKGTEST_TMP
cp -R $testdir $AUTOPKGTEST_TMP
cd $AUTOPKGTEST_TMP

rm -f test/test_dtm.py # Imports torch too early.

for py3ver in $(py3versions -vs)
do
    echo "Running tests with Python ${py3ver}."
    /usr/bin/python${py3ver} -B upstream.py test
    rm -rf .pytest_cache
    echo "**********"
done