File: unittests

package info (click to toggle)
python-os-testr 3.0.0-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 376 kB
  • sloc: python: 1,153; sh: 29; makefile: 22
file content (16 lines) | stat: -rw-r--r-- 411 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

PYTHON3S=$(py3versions -vr)

set -e
echo "===> Running tests"
for i in ${PYTHON3S}; do
  echo "===> Testing with python$i"
  rm -rf .testrepository
  stestr init
  TEMP_REZ=`mktemp -t` 
  PYTHONPATH=`pwd` PYTHON=python$i stestr run --subunit | tee $TEMP_REZ | subunit2pyunit ; \
  cat $TEMP_REZ | subunit-filter -s --no-passthrough | subunit-stats ; \
  rm -f $TEMP_REZ ; \
  stestr slowest ; \
done