I am building a Debian squeeze package using
git-buildpackage. In the build there are tests that run. I would like to be able to detect in these tests whether they are being run in the context of a package build. This way I can skip any tests that require external network access.
What is a good way to detect that a test is being run in the context of a Debian package build?