Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
2
3 %:
4 dh $@ --builddirectory=_build --buildsystem=golang
5
6 # Patch testscript/testscript.go and override dh-golang default GOPROXY=off
7 # to allow TestScripts/env_var_with_go and TestSimple/cover to PASS
8 SKIP1:=TestSimple/cover|TestScripts/env_var_with_go
9 # TestSetup/overlay/overlay: requires Internet
10 # TestScripts/pty: flaky test FTBFS https://bugs.debian.org/1119927
11 SKIP2:=TestSetup/overlay/overlay|TestScripts/pty
12 override_dh_auto_test:
13 -dh_auto_test $(DH_BUILD_OPTS) -- -run="$(SKIP1)|$(SKIP2)"
14 patch -N -p1 -i debian/0001-Allow-TestSimple-cover-to-PASS.patch
15 GOPROXY= dh_auto_test $(DH_BUILD_OPTS) -- -run="$(SKIP1)"
16 patch -R -p1 -i debian/0001-Allow-TestSimple-cover-to-PASS.patch
17 rm -fv _build/src/github.com/rogpeppe/go-internal/testscript/testscript.go.orig
18 dh_auto_test $(DH_BUILD_OPTS) -- -skip="$(SKIP1)|$(SKIP2)"