~xubuntu-dev/ubuntu-cdimage/xubuntu-base

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#! /bin/sh

set -e

# ensure we have our test dependencies
dpkg-checkbuilddeps -d 'dctrl-tools, python, python-mock, python3, python3 (>= 3.3) | python3-mock, procmail, squashfs-tools' /dev/null

if [ -z "$*" ]; then
	set -- discover cdimage.tests
fi

PYTHONPATH=lib python -m unittest "$@"
if which python3 >/dev/null 2>&1; then
	PYTHONPATH=lib python3 -m unittest "$@"
fi