PATH=/opt/SUNWspro/bin:/usr/local/bin:/opt/csw/bin:/usr/ccs/bin:/usr/bin:/usr/sbin Start 2011-12-05T21:03:48 ActivePerl-1200 CPAN-1.9402 Going to read '/export/home/fly1264/var/cpan/Metadata' Database was generated on Tue, 06 Dec 2011 03:29:55 GMT Running make for D/DM/DMUEY/Test-Mock-Cmd-0.1.tar.gz Checksum for /net/nas/data/cpan/authors/id/D/DM/DMUEY/Test-Mock-Cmd-0.1.tar.gz ok Test-Mock-Cmd-0.1/ Test-Mock-Cmd-0.1/Build.PL Test-Mock-Cmd-0.1/Changes Test-Mock-Cmd-0.1/MANIFEST Test-Mock-Cmd-0.1/META.yml Test-Mock-Cmd-0.1/Makefile.PL Test-Mock-Cmd-0.1/README Test-Mock-Cmd-0.1/lib/ Test-Mock-Cmd-0.1/t/ Test-Mock-Cmd-0.1/t/00.load.t Test-Mock-Cmd-0.1/t/01.system.t Test-Mock-Cmd-0.1/t/02.qx.t Test-Mock-Cmd-0.1/t/03.exec.t Test-Mock-Cmd-0.1/t/perlcritic.t Test-Mock-Cmd-0.1/t/pod-coverage.t Test-Mock-Cmd-0.1/t/pod.t Test-Mock-Cmd-0.1/lib/Test/ Test-Mock-Cmd-0.1/lib/Test/Mock/ Test-Mock-Cmd-0.1/lib/Test/Mock/Cmd/ Test-Mock-Cmd-0.1/lib/Test/Mock/Cmd.pm Test-Mock-Cmd-0.1/lib/Test/Mock/Cmd/TestUtils/ Test-Mock-Cmd-0.1/lib/Test/Mock/Cmd/TestUtils.pm Test-Mock-Cmd-0.1/lib/Test/Mock/Cmd/TestUtils/X.pm Test-Mock-Cmd-0.1/lib/Test/Mock/Cmd/TestUtils/Y.pm CPAN.pm: Going to build D/DM/DMUEY/Test-Mock-Cmd-0.1.tar.gz >>> /export/home/fly1264/bin/perl Makefile.PL Checking if your kit is complete... Looks good Writing Makefile for Test::Mock::Cmd Writing MYMETA.yml and MYMETA.json >>> make cp lib/Test/Mock/Cmd.pm blib/lib/Test/Mock/Cmd.pm cp lib/Test/Mock/Cmd/TestUtils/X.pm blib/lib/Test/Mock/Cmd/TestUtils/X.pm cp lib/Test/Mock/Cmd/TestUtils/Y.pm blib/lib/Test/Mock/Cmd/TestUtils/Y.pm cp lib/Test/Mock/Cmd/TestUtils.pm blib/lib/Test/Mock/Cmd/TestUtils.pm Manifying blib/man3/Test::Mock::Cmd.3 DMUEY/Test-Mock-Cmd-0.1.tar.gz make -- OK Running make test >>> make test TEST_VERBOSE=1 PERL_DL_NONLAZY=1 /export/home/fly1264/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(1, 'blib/lib', 'blib/arch')" t/*.t # Testing Test::Mock::Cmd 0.1 t/00.load.t ....... 1..9 ok 1 - use Test::Mock::Cmd; ok 2 - use Test::Mock::Cmd; foo ok 3 - croak() was called (w/ 'Test::Mock::Cmd->import() requires 1 or 3 code references as arguments') and matches '(?-xism:import\(\) requires 1 or 3 code references as arguments)' ok 4 - croak() was called (w/ 'Test::Mock::Cmd->import() requires 1 or 3 code references as arguments') and matches '(?-xism:import\(\) requires 1 or 3 code references as arguments)' ok 5 - croak() was called (w/ 'Test::Mock::Cmd->import() requires 1 or 3 code references as arguments') and matches '(?-xism:import\(\) requires 1 or 3 code references as arguments)' ok 6 - croak() was called (w/ 'Not a CODE reference') and matches '(?-xism:Not a CODE reference)' ok 7 - croak() was called (w/ 'Not a CODE reference') and matches '(?-xism:Not a CODE reference)' ok 8 - croak() was called (w/ 'Not a CODE reference') and matches '(?-xism:Not a CODE reference)' ok 9 - croak() was called (w/ 'Not a CODE reference') and matches '(?-xism:Not a CODE reference)' ok # Testing Test::Mock::Cmd 0.1 t/01.system.t ..... 1..20 ok 1 - unmocked system() in other package defined before mock, RC true (list) ok 2 - unmocked system() in other package defined before mock, list ok 3 - unmocked system() in other package defined before mock, RC true (string) ok 4 - unmocked system() in other package defined before mock, string ok 5 - unmocked system() RC true (list) ok 6 - unmocked system() list ok 7 - unmocked system() RC true (string) ok 8 - unmocked system() string ok 9 - system() mocked ok 10 - system() mocked RV ok 11 - system() in pkg loaded after mocking is mocked ok 12 - system() in an other class (loaded after mocking) mocked RV list ok 13 - system call defined before mocking not affected RC correct (list) ok 14 - orig_system() list ok 15 - system call defined before mocking not affected RC correct (string) ok 16 - orig_system() list ok 17 - orig_system() RC correct (list) ok 18 - orig_system() list ok 19 - orig_system() RC correct (string) ok 20 - orig_system() string ok # Testing Test::Mock::Cmd 0.1 t/02.qx.t ......... 1..42 ok 1 - qx scalar before mocking ok 2 - qx array before mocking ok 3 - back ticks scalar before mocking ok 4 - back ticks array before mocking ok 5 - readpipe scalar before mocking ok 6 - readpipe array before mocking ok 7 - qx class scalar before mocking ok 8 - qx class array before mocking ok 9 - back ticks class scalar before mocking ok 10 - back ticks class array before mocking ok 11 - qx class scalar before mocking ok 12 - qx class array before mocking ok 13 - /bin/echo qx scalar ok 14 - /bin/echo qx array ok 15 - qx scalar after mocking ok 16 - qx array after mocking ok 17 - /bin/echo back ticks scalar ok 18 - /bin/echo back ticks array ok 19 - back ticks scalar after mocking ok 20 - back ticks array after mocking ok 21 - /bin/echo readpipe scalar ok 22 - /bin/echo readpipe array ok 23 - readpipe scalar after mocking ok 24 - readpipe array after mocking ok 25 - /bin/echo QX ok 26 - /bin/echo QX ok 27 - qx class scalar after mocking ok 28 - qx class array after mocking ok 29 - /bin/echo BT ok 30 - /bin/echo BT ok 31 - back ticks class scalar after mocking ok 32 - back ticks class array after mocking ok 33 - /bin/echo class readpipe scalar ok 34 - /bin/echo class readpipe array ok 35 - qx class scalar after mocking ok 36 - qx class array after mocking ok 37 - qx class scalar before mocking - not affected ok 38 - qx class array before mocking- not affected ok 39 - back ticks class scalar before mocking - not affected ok 40 - back ticks class array before mocking - not affected ok 41 - qx class scalar before mocking - not affected ok 42 - qx class array before mocking - not affected ok t/03.exec.t ....... 1..1 ok 1 - These tests need written ok t/perlcritic.t .... skipped: $ENV{'do_perl_critic_tests'} must be true to run these 'development only' tests t/pod-coverage.t .. 1..1 ok 1 - Pod coverage on Test::Mock::Cmd ok t/pod.t ........... 1..4 ok 1 - POD test for blib/lib/Test/Mock/Cmd.pm ok 2 - POD test for blib/lib/Test/Mock/Cmd/TestUtils.pm (no pod) ok 3 - POD test for blib/lib/Test/Mock/Cmd/TestUtils/X.pm (no pod) ok 4 - POD test for blib/lib/Test/Mock/Cmd/TestUtils/Y.pm (no pod) ok All tests successful. Files=7, Tests=77, 7 wallclock secs ( 0.19 usr 0.07 sys + 4.72 cusr 0.71 csys = 5.69 CPU) Result: PASS DMUEY/Test-Mock-Cmd-0.1.tar.gz make test TEST_VERBOSE=1 -- OK Daniel Muey <dmuey@cpan.org> Mock system(), exec(), and qx() for testing >>> (cd /export/home/fly1264/var/cpan/build/Test-Mock-Cmd-0.1-Z8Ig0O && tar cvf - Test-Mock-Cmd-0.1.ppd blib) | gzip -c >/export/home/fly1264/var/REPO/D/DM/DMUEY/Test-Mock-Cmd-0.1.tar.gz Test-Mock-Cmd-0.1.ppd blib/ blib/lib/ blib/lib/Test/ blib/lib/Test/Mock/ blib/lib/Test/Mock/Cmd.pm blib/lib/Test/Mock/Cmd/ blib/lib/Test/Mock/Cmd/TestUtils/ blib/lib/Test/Mock/Cmd/TestUtils/X.pm blib/lib/Test/Mock/Cmd/TestUtils/Y.pm blib/lib/Test/Mock/Cmd/TestUtils.pm blib/man3/ blib/man3/Test::Mock::Cmd.3 >>> mv /export/home/fly1264/var/cpan/build/Test-Mock-Cmd-0.1-Z8Ig0O/Test-Mock-Cmd-0.1.ppd /export/home/fly1264/var/REPO/D/DM/DMUEY Finished 2011-12-05T21:04:07