#!/usr/bin/make -f # Don't build the examples or "gen" utility export DH_GOLANG_EXCLUDES := example internal/testutil/gen # Include necessary test data export DH_GOLANG_INSTALL_EXTRA := example/server/exampleop/templates example/server/service-key1.pem pkg/oidc/regression_data pkg/op/form_post.html.tmpl # Because other tests rely on templates under the example/ directory, change the default to include all source in the resulting package export DH_GOLANG_EXCLUDES_ALL := 0 %: dh $@ --builddirectory=_build --buildsystem=golang SKIP="TestMetadataHandler_serveMux|TestMetadataHandler_Intercept" override_dh_auto_test: -dh_auto_test $(DH_BUILD_OPTS) -- -run=$(SKIP) dh_auto_test $(DH_BUILD_OPTS) -- -skip=$(SKIP)