Closed OdyX closed 4 years ago
This is because it does cd _build
before running tests. The inifile_test.go
needs ipp-usb.conf
to perform testing. Is it possible to copy this file into the _build
directory before running tests?
I did this: https://salsa.debian.org/printing-team/ipp-usb/-/blob/debian/master/debian/rules#L11 it still doesn't work: https://salsa.debian.org/printing-team/ipp-usb/-/jobs/952389
Very hard to guess what dh_auto_test
actually does under the hood.
I've added make test
target and tagged result with the 0.9.12
label
Could you please add override_dh_auto_test
that runs dh_auto_test
without options, or simple calls make test
?
That doesn't work, because it then builds the test files outside of the dh_golang-prepared Go workpsace.
From my limited golang-related research, it seems that putting an ipp-usb.conf in a testdata
directory will fix this, I've added this as PR #13.
Debian builds ipp-usb "out-of-tree", and the inifile_test.go now fails: