File: pkgos-dh_auto_test

package info (click to toggle)
openstack-pkg-tools 54
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 392 kB
  • ctags: 59
  • sloc: sh: 3,143; makefile: 28
file content (20 lines) | stat: -rw-r--r-- 587 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/bin/sh

set -e
set -x

PYTHONS=$(pyversions -vr 2>/dev/null)
PYTHON3S=$(py3versions -vr 2>/dev/null)

for pyvers in 2.7 ${PYTHON3S}; do
	PYMAJOR=$(echo ${pyvers} | cut -d'.' -f1)
	echo "===> Testing with python${pyers} (python${PYMAJOR})"
	rm -rf .testrepository
	testr-python${PYMAJOR} init
	TEMP_REZ=$(mktemp -t)
	PYTHONPATH=$(pwd) PYTHON=python${pyvers} testr-python${PYMAJOR} run --subunit ${1} | tee ${TEMP_REZ} | subunit2pyunit
	cat ${TEMP_REZ} | subunit-filter -s --no-passthrough | subunit-stats
	rm -f ${TEMP_REZ}
	testr-python${PYMAJOR} slowest
	rm -rf .testrepository
done