From Gentoo Wiki
This test suite requires network access, both to access a CDDB server via HTTP, and to send test emails.
To comprehensively test this package:
- Install dev-perl/MailTools
- Install virtual/perl-MIME-Base64
FEATURES="-network-sandbox"to prevent traffic being culled
- Run Tests with
DIST_TEST_OVERRIDE="do network verbose"
Output looks something like:
* Compile testing CDDB 1.220 ... [ ok ] * Removing un-needed t/release-pod-coverage.t * Removing un-needed t/release-pod-syntax.t * Removing un-needed t/000-report-versions.t * Fixing Manifest * DIST_TEST_OVERRIDE is set to do network verbose make -j3 --load-average=4 test TEST_VERBOSE=1 PERL_DL_NONLAZY=1 "/usr/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(1, 'blib/lib', 'blib/arch')" t/*.t t/01_cddb.t .. 1..25 ok 1 - cddb object built okay ok 2 - got expected genres ok 3 - calculated expected id ok 4 - total time matches ok 5 - got expected track numbers ok 6 - got expected track lengths ok 7 - got expected track offsets ok 8 - got expected disc count ok 9 - got expected disc genre ok 10 - retrieved disc is expected id ok 11 - retrieved disc has expected title ok 12 - disc by toc matches disc by id ok 13 - disc is expected length ok 14 - disc id matches expectation ok 15 - disc title matches expectation ok 16 - disc offsets match ok 17 - enough track titles match expectation ok 18 - retrieved at least one disc ok 19 - retrieved disc has a genre ok 20 - retrieved disc id is proper length ok 21 - retrieved disc has a title ok 22 - retrieved discs from fuzzy offset ERROR: ld.so: object 'libsandbox.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored. /sendmail: Cannot open mailhub:25 ok 23 - submitted a test disc; check your e-mail for confirmation ok 24 - fetch-by-query retrieved expected genre ok 25 - fetch-by-query retrieved expected id ok All tests successful. Files=1, Tests=25, 9 wallclock secs ( 0.02 usr 0.01 sys + 0.18 cusr 0.06 csys = 0.27 CPU) Result: PASS
At this time there are open questions about what is happening after Test 22