| 1 | #!/usr/bin/make -f |
| 2 | |
| 3 | SKIP_TESTS = $(shell cat debian/tests/pkg-perl/smoke-skip) |
| 4 | TEST_FILES = $(filter-out $(SKIP_TESTS), $(wildcard t/*.t)) |
| 5 | |
| 6 | %: |
| 7 | dh $@ |
| 8 | |
| 9 | # The tests need an X server. This provides one even inside a chroot |
| 10 | override_dh_auto_test: |
| 11 | ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) |
| 12 | xvfb-run -a dh_auto_test -- TEST_FILES="$(TEST_FILES)" |
| 13 | endif |