1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
|
#!/usr/bin/make -f
# Completely exclude testdata files from the binary package as they are
# otherwise stripped by some debhelper plugin. This stripping step messes
# up zip files' inner metadat, which in turn make the tests fail in
# autopkgtest.
# Configure them manually instead.
export DH_GOLANG_EXCLUDES := testdata
export DH_GOLANG_EXCLUDES_ALL := 1
%:
dh $@ --builddirectory=_build --buildsystem=golang
override_dh_auto_install:
dh_auto_install -- --no-binaries
execute_after_dh_auto_configure:
cp -r testdata _build/src/github.com/codeclysm/extract/testdata
|