File: rules

package info (click to toggle)
golang-github-containerd-stargz-snapshotter 0.12.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bookworm-backports
  • size: 3,404 kB
  • sloc: sh: 3,426; python: 532; makefile: 84; ansic: 4
file content (22 lines) | stat: -rwxr-xr-x 851 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/usr/bin/make -f

# NB: the /service modules contain a number of k8s related dependencies
# that are not (currently) packaged in debian for use by other packages.
# As of version 0.8.0, this excludes the programs containerd-stargz-grpc
# and stargz-core, which are excluded from building in the following
export DH_GOLANG_EXCLUDES := stargz-snapshotter/service cmd/containerd-stargz-grpc cmd/stargz-store ipfs

# exclude tests that reach out to internet #999440
EXTRA_TEST_EXCLUDES := nativeconverter

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

# on 32bit architectures, exclude a problematic test
ifneq ($(DEB_HOST_ARCH_BITS),32)
else
EXTRA_TEST_EXCLUDES += estargz/zstdchunked
endif

override_dh_auto_test:
	DH_GOLANG_EXCLUDES="$(DH_GOLANG_EXCLUDES) $(EXTRA_TEST_EXCLUDES)" GOMAXPROCS=4 dh_auto_test -v --max-parallel=2