Hi, This is how I do self test with my go project:
( cd test; ./test-all.sh; ) https://salsa.debian.org/go-team/packages/ffcvt/commit/330c42c96ef962e0d630c5420a92a7971480c5e0 and in test-all.sh I call `../ffcvt` as it is where `go build` put my compile binary: https://salsa.debian.org/go-team/packages/ffcvt/commit/18748cf68fc4767d2569c3125d7983c7675681d6#1a45e377bbf2e0bb6891830136c29a6b67ba4776_3_3 However, under Debian building, everything changed. I saw: make[1]: Entering directory '/sysvol/dg/ffcvt/ffcvt' dh_auto_test --verbose cd obj-x86_64-linux-gnu && go test -vet=off -v -p 2 github.com/suntong/ffcvt ? github.com/suntong/ffcvt [no test files] ( cd test; ./test-all.sh; ) ./test-all.sh: 7: ../ffcvt: not found How can I make proper changes so that it works for both manual run and Debian build? I.e. 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? Thanks!