| 1 | #!/usr/bin/make -f |
| 2 | |
| 3 | # We do not want to ship compressed files under testdata |
| 4 | export DH_GOLANG_EXCLUDES = cmd/glzip testdata |
| 5 | |
| 6 | %: |
| 7 | dh $@ --builddirectory=debian/_build --buildsystem=golang |
| 8 | |
| 9 | override_dh_auto_test: |
| 10 | # Skip tests on 32 bits arch due to FTBFS. Need help for proper fix. |
| 11 | ifeq ($(DEB_HOST_ARCH_BITS),32) |
| 12 | @echo "Skipping test suite on 32-bit architectures to avoid compile-time integer overflows." |
| 13 | else |
| 14 | # Skip tests that requires files from excluded testdata |
| 15 | dh_auto_test -- -short -skip="\ |
| 16 | TestWriter|\ |
| 17 | " |
| 18 | endif |