| 1 |
#!/usr/bin/make -f |
| 2 |
|
| 3 |
# NB: the /service modules contain a number of k8s related dependencies |
| 4 |
# that are not (currently) packaged in debian for use by other packages. |
| 5 |
# As of version 0.8.0, this excludes the programs containerd-stargz-grpc |
| 6 |
# and stargz-core, which are excluded from building in the following |
| 7 |
export DH_GOLANG_EXCLUDES := stargz-snapshotter/service cmd/containerd-stargz-grpc cmd/stargz-store |
| 8 |
|
| 9 |
# exclude tests that reach out to internet #999440 |
| 10 |
EXTRA_TEST_EXCLUDES := nativeconverter |
| 11 |
|
| 12 |
%: |
| 13 |
dh $@ --builddirectory=_build --buildsystem=golang --with=golang |
| 14 |
|
| 15 |
# on 32bit architectures, exclude a problematic test |
| 16 |
ifneq ($(DEB_HOST_ARCH_BITS),32) |
| 17 |
else |
| 18 |
EXTRA_TEST_EXCLUDES += estargz/zstdchunked |
| 19 |
endif |
| 20 |
|
| 21 |
# riscv64 is too slow |
| 22 |
ifneq ($(DEB_HOST_ARCH),riscv64) |
| 23 |
else |
| 24 |
EXTRA_TEST_EXCLUDES += estargz/zstdchunked |
| 25 |
endif |
| 26 |
|
| 27 |
override_dh_auto_test: |
| 28 |
DH_GOLANG_EXCLUDES="$(DH_GOLANG_EXCLUDES) $(EXTRA_TEST_EXCLUDES)" GOMAXPROCS=4 dh_auto_test -v --max-parallel=2 -- --skip=TestOverlayView -timeout=20m |