1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
|
#!/usr/bin/make -f
export DH_GOLANG_INSTALL_EXTRA := x509roots/fallback/bundle/bundle.der
%:
dh $@ --builddirectory=_build --buildsystem=golang
execute_after_dh_auto_configure:
cp -av $(CURDIR)/debian/go/src _build/src/golang.org/x/crypto/vendor
override_dh_auto_install:
dh_auto_install -- --no-binaries
# Modern openssh trigger this failure, do we need to enable forwarding somehow?
# OK 10.0p1-8 FAIL 10.2p1-1
# === RUN TestAgentForward
# agent_unix_test.go:41: RequestAgentForwarding: forwarding request denied
SKIP_TESTS="TestAgentForward"
# This test takes 2-200 seconds on other archs
# === RUN TestCSHAKELargeS
# panic: test timed out after 25m0s
# running tests:
# TestCSHAKELargeS (24m55s)
# https://ci.debian.net/packages/g/golang-go.crypto/testing/s390x/64949234/
#
# The following fail because of an upstream bug
# --- FAIL: TestMarshalUnmarshal (0.00s)
# --- FAIL: TestMarshalUnmarshal/SHA3-224 (0.00s)
# panic: interface conversion: *sha3.asmState is not encoding.BinaryMarshaler: missing method MarshalBinary [recovered]
# panic: interface conversion: *sha3.asmState is not encoding.BinaryMarshaler: missing method MarshalBinary
# https://github.com/golang/go/issues/73681
ifneq (,$(filter $(DEB_TARGET_ARCH), s390x))
SKIP_TESTS="TestAgentForward|TestCSHAKELargeS|TestMarshalUnmarshal"
endif
override_dh_auto_test:
dh_auto_test $(DH_BUILD_OPTS) -- -skip "$(SKIP_TESTS)"
-timeout 5m dh_auto_test $(DH_BUILD_OPTS) -- -run "$(SKIP_TESTS)"
|