File: run-python-tests

package info (click to toggle)
opm-simulators 2025.10%2Bds-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 21,552 kB
  • sloc: cpp: 193,037; sh: 1,807; python: 1,704; lisp: 1,108; makefile: 31; awk: 10
file content (18 lines) | stat: -rw-r--r-- 402 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/bash
set -e
set -u

if [ ! -v AUTOPKGTEST_TMP ]; then
  fail "E: opm-autopkgtest must be invoked by autopkgtest"
fi

sourcedir=${PWD}
cd "${AUTOPKGTEST_TMP}"
cp -axv "${sourcedir}"/python/test* .

for py in $(py3versions -r 2>/dev/null) ; do
    echo "Basic tests with $py"
    $py -m unittest test/test_basic.py
    echo "Schedule tests with $py"
    $py -m unittest test/test_schedule.py
done