/usr/share/python-zope.testrunner/test_helper is in python-zope.testrunner 4.4.9-1.
This file is owned by root:root, with mode 0o644.
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 | # includable shell script to make test scripts smaller
set -e
if [ -z "${testfilter}" ]; then
if [ -x /usr/bin/van-pydeb ]; then
testfilter="-s $(van-pydeb src_to_py $(grep 'Source: ' debian/control | sed 's/Source: //'))"
else
echo "Could not find van-pydeb to guess the python package name. You should have your tests depend on it or you "
echo "must specify testfilter variable, something like -p package_name, see zope-testrunner --help for details."
exit 1
fi
fi
PYVERS=$(pyversions -r debian/control)
for python in ${PYVERS}; do
py_libdir_sh=$(${python} -c 'from distutils import sysconfig; print(sysconfig.get_python_lib())')
echo Running tests for ${python}: /usr/bin/zope-testrunner -k --test-path ${py_libdir_sh} ${testfilter}
${python} /usr/bin/zope-testrunner -k --test-path ${py_libdir_sh} ${testfilter}
done
|