Install test/ fixture with DH_GOLANG_INSTALL_EXTRA
instead of using override_dh_auto_test
Anthony Fok
5 years ago
0 | 0 | #!/usr/bin/make -f |
1 | 1 | |
2 | builddir := $(CURDIR)/obj-$(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) | |
3 | DH_GOPKG := github.com/yosssi/ace-proxy | |
2 | export DH_GOLANG_INSTALL_EXTRA := test/ | |
4 | 3 | |
5 | 4 | %: |
6 | 5 | dh $@ --buildsystem=golang --with=golang |
7 | ||
8 | override_dh_auto_test: | |
9 | cp -a test $(builddir)/src/$(DH_GOPKG)/ | |
10 | dh_auto_test -O--buildsystem=golang | |
11 | rm -rf $(builddir)/src/$(DH_GOPKG)/test |