#!/usr/bin/make -f export DH_GOLANG_INSTALL_EXTRA := \ kms/gcp/test \ ssh/test/ls \ storage/test \ test export DH_GOLANG_EXCLUDES := /source.go include /usr/share/dpkg/architecture.mk %: dh $@ --builddirectory=debian/_build --buildsystem=golang ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),) SKIP="TestNewFileSetInfoInfo|TestLogger" override_dh_auto_test: ifeq ($(DEB_TARGET_ARCH_BITS), 32) # Go test build fails on 32-bit systems, so ignore the failure -dh_auto_test else dh_auto_test $(DH_BUILD_OPTS) -- -skip=$(SKIP) endif endif execute_after_dh_auto_test: rm -rfv debian/_build/src/github.com/viant/toolbox/storage/test/target