Debian Codegraph @

debian/rules

raw
1 #!/usr/bin/make -f
2
3 export DH_GOLANG_INSTALL_EXTRA := sim/gli.lirs.gz
4 export DH_GOLANG_EXCLUDES := contrib
5 export DH_GOLANG_EXCLUDES_ALL := 1
6
7 %:
8 dh $@ --builddirectory=_build --buildsystem=golang
9
10 ifneq (,$(filter $(DEB_TARGET_ARCH), i386 ppc64el riscv64 s390x))
11 override_dh_auto_test:
12 ifneq (,$(filter $(DEB_TARGET_ARCH), i386))
13 # i386: panic: test timed out after 25m0s -- should be quick, infloop?
14 dh_auto_test $(DH_BUILD_OPT) -- --skip=TestAllocate
15 endif
16 ifneq (,$(filter $(DEB_TARGET_ARCH), ppc64el riscv64 s390x))
17 # --- FAIL: TestTreePersistent (0.08s)
18 # panic: mremap size mismatch: requested: 2097160 got: 1048576
19 # while trying to truncate file: /tmp/1937159950/tree.buf to size: 2097160 [recovered]
20 # panic: mremap size mismatch: requested: 2097160 got: 1048576
21 # while trying to truncate file: /tmp/1937159950/tree.buf to size: 2097160
22 # === RUN TestBuffer
23 # panic: mremap size mismatch: requested: 2048 got: 512
24 # while trying to truncate file: /tmp/buffer3029515162 to size: 2048 [recovered]
25 # panic: mremap size mismatch: requested: 2048 got: 512
26 # while trying to truncate file: /tmp/buffer3029515162 to size: 2048
27 dh_auto_test $(DH_BUILD_OPT) -- --skip='TestTreePersistent|TestBuffer'
28 endif
29 -dh_auto_test $(DH_BUILD_OPT) -- --timeout=20m
30 endif