File: python-upstream.sh

package info (click to toggle)
python-cmaes 0.12.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 544 kB
  • sloc: python: 5,136; sh: 92; makefile: 4
file content (21 lines) | stat: -rwxr-xr-x 404 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
#!/bin/bash

set -u

testdir=$PWD/tests
cp -R $testdir $AUTOPKGTEST_TMP
cd $AUTOPKGTEST_TMP

for py3ver in $(py3versions -vs)
do
    for file in tests/test_*.py
    do
        echo "Running test ${file} with Python ${py3ver}."
        /usr/bin/python${py3ver} -B -m unittest ${file}
        ret=$?
        if [ "$ret" != 0 ] && [ "$ret" != 5 ]
        then
            exit $ret
        fi
    done
done