# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
+include /usr/share/openstack-pkg-tools/pkgos.make
+
%:
- dh $@ --with python2
+ dh $@ --with python2,systemd
get-orig-source:
uscan --verbose --rename --destdir=../build-area
ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
override_dh_auto_test:
- ./run_tests.sh -N -P
+ rm -rf .testrepository
+ testr init && \
+ set -e && \
+ TEMP_REZ=`mktemp -t` && \
+ testr run --subunit | tee $$TEMP_REZ | subunit2pyunit; \
+ rm -f $$TEMP_REZ
endif
override_dh_install:
override_dh_clean:
# temporary workaround for d2to1 wonkyness
dh_clean -Xsetup.cfg
+ rm -f debian/*.init debian/*.service debian/*.upstart