File: rules

package info (click to toggle)
golang-github-dgraph-io-ristretto 2.3.0-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,004 kB
  • sloc: ansic: 78; asm: 37; makefile: 15
file content (30 lines) | stat: -rwxr-xr-x 1,273 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
23
24
25
26
27
28
29
30
#!/usr/bin/make -f

export DH_GOLANG_INSTALL_EXTRA := sim/gli.lirs.gz
export DH_GOLANG_EXCLUDES := contrib
export DH_GOLANG_EXCLUDES_ALL := 1

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

ifneq (,$(filter $(DEB_TARGET_ARCH), i386 ppc64el riscv64 s390x))
override_dh_auto_test:
ifneq (,$(filter $(DEB_TARGET_ARCH), i386))
# i386: panic: test timed out after 25m0s -- should be quick, infloop?
	dh_auto_test $(DH_BUILD_OPT) -- --skip=TestAllocate
endif
ifneq (,$(filter $(DEB_TARGET_ARCH), ppc64el riscv64 s390x))
# --- FAIL: TestTreePersistent (0.08s)
# panic: mremap size mismatch: requested: 2097160 got: 1048576
# 	while trying to truncate file: /tmp/1937159950/tree.buf to size: 2097160 [recovered]
# 	panic: mremap size mismatch: requested: 2097160 got: 1048576
# 	while trying to truncate file: /tmp/1937159950/tree.buf to size: 2097160
# === RUN   TestBuffer
# panic: mremap size mismatch: requested: 2048 got: 512
# 	while trying to truncate file: /tmp/buffer3029515162 to size: 2048 [recovered]
# 	panic: mremap size mismatch: requested: 2048 got: 512
# 	while trying to truncate file: /tmp/buffer3029515162 to size: 2048
	dh_auto_test $(DH_BUILD_OPT) -- --skip='TestTreePersistent|TestBuffer'
endif
	-dh_auto_test $(DH_BUILD_OPT) -- --timeout=20m
endif