On Sat, 22 Feb 2025 11:12:41 +0100, Andreas Tille wrote: > Concluding from "Can't locate Test/Base.pm in @INC" I need to add the > Test-Depends: libtest-base-perl. However, since we are just running > > Testsuite: autopkgtest-pkg-perl > > I wonder how to specify those extra Test-Depends. Is there any trick > to avoid an explicit debian/tests/control which I don't know yet.
Test::Base is vendored in inc/ that's why it's found at build time but not during autopkgtests. Option 1: Create debian/tests/pkg-perl/smoke-files with t/ inc/ Option 2: Add "libtest-base-perl <!nocheck>" to Build-Depends-Indep Option 2a: Add "libtest-base-perl <!nocheck>" to Build-Depends-Indep and also use it during build tests. So far the theory, in practice implementing 2a is not so easy … Oh, and option 1 also doesn't work. Hm. Interestingly, t/01_live.t is not run during the build: t/01_live.t ..... skipped: TEST_LIVE is not defined No idea why it's even tried during autopkgtests (is something setting TEST_LIVE?). Looking at t/01_live.t, I suggest to skip it during autopkgtests as well (downloading some weird tumblr page). Anyway, you'll find some commits in the repo and both buildtime tests and autopkgtests look clean now :) Cheers, gregor -- .''`. https://info.comodo.priv.at -- Debian Developer https://www.debian.org : :' : OpenPGP fingerprint D1E1 316E 93A7 60A8 104D 85FA BB3A 6801 8649 AA06 `. `' Member VIBE!AT & SPI Inc. -- Supporter Free Software Foundation Europe `-
signature.asc
Description: Digital Signature