File: unittests

package info (click to toggle)
taskcoach 1.4.1-4
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 32,496 kB
  • ctags: 17,810
  • sloc: python: 72,170; makefile: 254; ansic: 120; xml: 29; sh: 16
file content (22 lines) | stat: -rw-r--r-- 748 bytes parent folder | download
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