#!/usr/bin/make -f %: dh $@ --builddirectory=_build --buildsystem=golang # Patch testscript/testscript.go and override dh-golang default GOPROXY=off # to allow TestScripts/env_var_with_go and TestSimple/cover to PASS SKIP1:=TestSimple/cover|TestScripts/env_var_with_go # TestSetup/overlay/overlay: requires Internet # TestScripts/pty: flaky test FTBFS https://bugs.debian.org/1119927 SKIP2:=TestSetup/overlay/overlay|TestScripts/pty override_dh_auto_test: -dh_auto_test $(DH_BUILD_OPTS) -- -run="$(SKIP1)|$(SKIP2)" patch -N -p1 -i debian/0001-Allow-TestSimple-cover-to-PASS.patch GOPROXY= dh_auto_test $(DH_BUILD_OPTS) -- -run="$(SKIP1)" patch -R -p1 -i debian/0001-Allow-TestSimple-cover-to-PASS.patch dh_auto_test $(DH_BUILD_OPTS) -- -skip="$(SKIP1)|$(SKIP2)"