Hi,
Whilst working on the Reproducible Builds effort [0], we noticed that
pgpainless could not be built reproducibly.
This is because it ships different contents in the binary package
depending on whether nocheck is run.
A patch is attached, but this changes the package to always build and
then ship the .jar files associated with the tests, regardless of
whether nocheck was specified or not. I suspect this might be the way
you want to go so that you can run the autopkgtests without needing
the original source tree.
[0] https://reproducible-builds.org/
Regards,