On Wed, Jan 1, 2020 at 1:09 PM Felix Lechner <felix.lech...@lease-up.com> wrote: > > Hi Tong, > > On Wed, Jan 1, 2020 at 9:28 AM Tong Sun > <suntong...@users.sourceforge.net> wrote: > > > > > > ./test-all.sh: 7: ../ffcvt: not found > > In d/rules, you include 'test', which supplies test/test-all.sh, but > the missing file is ./ffcvt in your base directory. This command will > copy all your files into the BUILDDIR: > > export DH_GOLANG_INSTALL_ALL := 1 > > > No, I put it in explicitly. See > > > > https://salsa.debian.org/go-team/packages/ffcvt/commit/330c42c96ef962e0d630c5420a92a7971480c5e0#8756c63497c8dc39f7773438edf53b220c773f67_5_4 > > This commit does not copy anything from your base directory to > BUILDDIR. I do not see how it can provide any missing files.
Thanks for helping out Felix. I guess one thing I thought was that, DH_GOLANG_INSTALL_ALL will copy all existing files, i.e., the built binary will not. Anyway, I've already found them all -- ... under obj-x86_64-linux-gnu, I saw ffcvt being at bin/ffcvt and my test folder being at ./src/github.com/suntong/ffcvt/test. is there any builtin environment variable that can help me finding them easily, and the method being simple and portable enough so that I can apply to any other of my packages? How can I make proper changes so that it works for both manual run and Debian build? thx