#!/usr/bin/make -f

# Skip e2e tests folder to avoid circular dependencies during dh_auto_test
export DH_GOLANG_EXCLUDES := e2e/*

%:
	dh $@ --builddirectory=_build --buildsystem=golang

override_dh_auto_test:
	# Skip tests that require localhost ports, DNS lookups or GRPC connections
	# to avoid test failures in build environment.
	dh_auto_test -- -skip='TestEchoServer|TestFailedDNSLookupProxy_HTTPCONN|TestProxyDial_AgentTimeout_GRPC'
override_dh_auto_install:
	dh_auto_install -- --no-binaries
