File: rules

package info (click to toggle)
golang-github-hashicorp-go-sockaddr 0.0~git20170627.41949a1%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, experimental, sid
  • size: 984 kB
  • sloc: sh: 165; makefile: 8
file content (16 lines) | stat: -rwxr-xr-x 524 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/usr/bin/make -f

export DH_GOLANG_EXCLUDES := cmd/sockaddr
# Some of the tests rely on having certain network configuration present.
# Tell them not to do that.
export SOCKADDR_HAVE_PRIVATE_IP := 0
export SOCKADDR_HAVE_PUBLIC_IP := 0

%:
	dh $@ --buildsystem=golang --with=golang

# The template tests depend on the build machine's network stack matching the
# author's, and no amount of patching would make them reliable enough.
override_dh_auto_test: DH_GOLANG_EXCLUDES += template
override_dh_auto_test:
	dh_auto_test