File: rules

package info (click to toggle)
unittest2 1.1.0-6.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 732 kB
  • ctags: 1,872
  • sloc: python: 7,655; sh: 24; makefile: 9
file content (15 lines) | stat: -rwxr-xr-x 584 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/make -f
export PYBUILD_NAME=unittest2

%:
	dh $@ --with=python2,python3 --buildsystem=pybuild

override_dh_install:
	dh_install
	mv $(CURDIR)/debian/python-unittest2/usr/bin/unit2 $(CURDIR)/debian/python-unittest2/usr/bin/python2-unit2
	mv $(CURDIR)/debian/python3-unittest2/usr/bin/unit2 $(CURDIR)/debian/python3-unittest2/usr/bin/python3-unit2

# Tests cannot run without unittest2 running them.
# See: https://code.google.com/p/unittest-ext/issues/detail?id=93 for details
override_dh_auto_test:
	dh_auto_test -- --system=custom --test-args='{interpreter} -m unittest2'