override_dh_auto_test:
- make -C obj-$(DEB_HOST_GNU_TYPE) check-headless
+ dh_auto_test -- check-headless
Running dh_auto_test _always_ runs "make check" regardless of any additional make target specified. 'make check' will fail in a headless package build environment (which is why the check-headless target exists). The original line explicitly running the 'make' command is correct. If you want to support 'nocheck' you will have to use the old ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) trick.
override_ dh_auto_ test: HOST_GNU_ TYPE) check-headless
- make -C obj-$(DEB_
+ dh_auto_test -- check-headless
Running dh_auto_test _always_ runs "make check" regardless of any additional make target specified. 'make check' will fail in a headless package build environment (which is why the check-headless target exists). The original line explicitly running the 'make' command is correct. If you want to support 'nocheck' you will have to use the old ifeq (,$(filter nocheck, $(DEB_BUILD_ OPTIONS) )) trick.