1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
|
#!/bin/sh
set -C -e -f -u
# This script must be executed in the source tree. It runs the
# upstream test suite tests/test.py.
# The latter insists on writing various files, so we need to run it in
# a writable directory: ADTTMP/tests_tmp. Cleaning ADTTMP/tests_tmp is
# the responsibility of the caller.
# When called by debian/rules, . is writable, ADTTMP=. and "tests.py"
# will find the local version of taskcoachlib in ...
# When called by autopkg-test or sadt, . may not be writable and
# "tests.py" will not find taskcoachlib in .., so it will use the
# system-wide installed version.
cp --archive tests "$ADTTMP/tests_tmp"
cd "$ADTTMP/tests_tmp"
LC_ALL=en_US.utf8 \
xvfb-run \
python test.py --verbose --integrationtests --unittests
|