/usr/bin/pkgos-dh_auto_test is in openstack-pkg-tools 54.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
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
|