PATH=/opt/SUNWspro/bin:/usr/local/bin:/opt/csw/bin:/usr/ccs/bin:/usr/bin:/usr/sbin Start 2014-05-13T08:02:54 ActivePerl-818 CPAN-2.00 Reading '/export/home/fly818/var/cpan/Metadata' Database was generated on Tue, 13 May 2014 14:06:17 GMT Running make for H/HI/HITODE/App-PRT-0.13.tar.gz Fetching with LWP: http://cpan.nas1.activestate.com/authors/id/H/HI/HITODE/App-PRT-0.13.tar.gz Fetching with LWP: http://cpan.nas1.activestate.com/authors/id/H/HI/HITODE/CHECKSUMS Checksum for /export/home/fly818/var/cpan/sources/authors/id/H/HI/HITODE/App-PRT-0.13.tar.gz ok You have Archive::Tar 1.40, but 1.50 or later is recommended. Please upgrade. App-PRT-0.13/Build.PL App-PRT-0.13/Changes App-PRT-0.13/LICENSE App-PRT-0.13/META.json App-PRT-0.13/README.md App-PRT-0.13/bin/prt App-PRT-0.13/cpanfile App-PRT-0.13/lib/App/PRT.pm App-PRT-0.13/lib/App/PRT/CLI.pm App-PRT-0.13/lib/App/PRT/Collector/AllFiles.pm App-PRT-0.13/lib/App/PRT/Collector/Files.pm App-PRT-0.13/lib/App/PRT/Collector/GitDirectory.pm App-PRT-0.13/lib/App/PRT/Command/AddMethod.pm App-PRT-0.13/lib/App/PRT/Command/AddUse.pm App-PRT-0.13/lib/App/PRT/Command/DeleteMethod.pm App-PRT-0.13/lib/App/PRT/Command/Help.pm App-PRT-0.13/lib/App/PRT/Command/MoveClassMethod.pm App-PRT-0.13/lib/App/PRT/Command/RenameClass.pm App-PRT-0.13/lib/App/PRT/Command/RenameNameSpace.pm App-PRT-0.13/lib/App/PRT/Command/ReplaceToken.pm App-PRT-0.13/lib/App/PRT/Util/DestinationFile.pm App-PRT-0.13/minil.toml App-PRT-0.13/t/App-PRT-CLI.t App-PRT-0.13/t/App-PRT-Collector-AllFiles.t App-PRT-0.13/t/App-PRT-Collector-Files.t App-PRT-0.13/t/App-PRT-Command-AddMethod.t App-PRT-0.13/t/App-PRT-Command-AddUse.t App-PRT-0.13/t/App-PRT-Command-DeleteMethod.t App-PRT-0.13/t/App-PRT-Command-Help.t App-PRT-0.13/t/App-PRT-Command-MoveClassMethod.t App-PRT-0.13/t/App-PRT-Command-RenameClass.t App-PRT-0.13/t/App-PRT-Command-RenameNameSpace.t App-PRT-0.13/t/App-PRT-Command-ReplaceToken.t App-PRT-0.13/t/App-PRT-Util-DestinationFile.t App-PRT-0.13/t/App-PRT.t App-PRT-0.13/t/App-Prt-Collector-GitDirectory.t App-PRT-0.13/t/data/contain_ignores/_build/Build.pm App-PRT-0.13/t/data/contain_ignores/app.psgi App-PRT-0.13/t/data/contain_ignores/blib/Blib.pm App-PRT-0.13/t/data/contain_ignores/cpanfile App-PRT-0.13/t/data/contain_ignores/eg/eg.pl App-PRT-0.13/t/data/contain_ignores/fatlib/Fatlib.pm App-PRT-0.13/t/data/contain_ignores/lib/Foo.pm App-PRT-0.13/t/data/contain_ignores/lib/Foo/Bar.pm App-PRT-0.13/t/data/contain_ignores/local/Local.pm App-PRT-0.13/t/data/contain_ignores/share/share.pl App-PRT-0.13/t/data/contain_ignores/t/test.t App-PRT-0.13/t/data/dinner/dinner.pl App-PRT-0.13/t/data/dinner/lib/My/Food.pm App-PRT-0.13/t/data/dinner/lib/My/Human.pm App-PRT-0.13/t/data/dinner/lib/Your/Food.pm App-PRT-0.13/t/data/dinner/t/001-my-food._t App-PRT-0.13/t/data/dinner/t/My-Food._t App-PRT-0.13/t/data/greeting/lib/Bye.pm App-PRT-0.13/t/data/greeting/lib/Greeting.pm App-PRT-0.13/t/data/greeting/lib/Hi.pm App-PRT-0.13/t/data/greeting/no_use.pl App-PRT-0.13/t/data/greeting/no_use_but_package.pl App-PRT-0.13/t/data/greeting/use_greeting.pl App-PRT-0.13/t/data/greeting/use_greeting_and_hi.pl App-PRT-0.13/t/data/hello_world/hello_world.pl App-PRT-0.13/t/data/inherit/inherit.pl App-PRT-0.13/t/data/method_call_with_whitespace/hello.pl App-PRT-0.13/t/data/method_with_comment/FoodWithComment.pm App-PRT-0.13/t/data/readme/README.md App-PRT-0.13/t/test.pm App-PRT-0.13/t/test.t App-PRT-0.13/xt/perlcritic.t App-PRT-0.13/xt/perlcriticrc App-PRT-0.13/META.yml App-PRT-0.13/MANIFEST CPAN.pm: Building H/HI/HITODE/App-PRT-0.13.tar.gz >>> /export/home/fly818/bin/perl Build.PL Created MYMETA.yml and MYMETA.json Creating new 'Build' script for 'App-PRT' version '0.13' Merging cpanfile prereqs to MYMETA.yml Merging cpanfile prereqs to MYMETA.json >>> ./Build Building App-PRT HITODE/App-PRT-0.13.tar.gz ./Build -- OK Running Build test >>> ./Build test verbose=1 sh: git: not found # Child (when command specified, git directory) exited without calling finalize() # Failed test 'when command specified, git directory' # at /export/home/fly818/var/megalib/Test/Class.pm line 281. # (in t::App::PRT::CLI->parse) # Failed test 'parse died (Cannot decide target files at lib/App/PRT/CLI.pm line 40.)' # at (eval 13) line 15. # (in t::App::PRT::CLI->parse) # Failed test 'run died (You already have a child named (when command specified, git directory) running at /export/home/fly818/var/megalib/Test/More.pm line 770.)' # at (eval 13) line 15. # (in t::App::PRT::CLI->run) # Looks like you failed 3 tests of 9. # Looks like your test exited with 256 just after 9. t/App-PRT-CLI.t ...................... ok 1 - use App::PRT::CLI; ok 2 - ucfirst ok 3 - separate by _ ok 4 - An object of class 'App::PRT::CLI' isa 'App::PRT::CLI' # Subtest: when empty input ok 1 - parse ok 2 - 'default command is help' isa 'App::PRT::Command::Help' ok 3 - parse 1..3 ok 5 - when empty input # Subtest: when command specified, not a git directory ok 1 - ReplaceToken command loaded ok 2 - parse 1..2 ok 6 - when command specified, not a git directory # Subtest: when command specified, git directory not ok 7 - when command specified, git directory not ok 8 - parse died (Cannot decide target files at lib/App/PRT/CLI.pm line 40.) not ok 9 - run died (You already have a child named (when command specified, git directory) running at /export/home/fly818/var/megalib/Test/More.pm line 770.) 1..9 Failed 3/9 subtests t/App-PRT-Collector-AllFiles.t ....... ok 1 - use App::PRT::Collector::AllFiles; ok 2 - all files are returned # Subtest: not existing directory ok 1 - collect 1..1 ok 3 - not existing directory # Subtest: directory without cpanfile ok 1 - not found 1..1 ok 4 - directory without cpanfile # Subtest: directory with cpanfile ok 1 - found from root directory ok 2 - found from sub directory 1..2 ok 5 - directory with cpanfile # Subtest: not existing directory ok 1 - find project root directory 1..1 ok 6 - not existing directory ok 7 - An object of class 'App::PRT::Collector::AllFiles' isa 'App::PRT::Collector::AllFiles' ok 8 - instantiate 1..8 ok t/App-PRT-Collector-Files.t .......... ok 1 - use App::PRT::Collector::Files; # Subtest: when files specified ok 1 - collect 1..1 ok 2 - when files specified # Subtest: when not existing file specified ok 1 - died 1..1 ok 3 - when not existing file specified ok 4 - specified files are returned ok 5 - An object of class 'App::PRT::Collector::Files' isa 'App::PRT::Collector::Files' 1..5 ok t/App-PRT-Command-AddMethod.t ........ ok 1 - use App::PRT::Command::AddMethod; # Subtest: target file ok 1 - sub one added to last 1..1 ok 2 - target file # Subtest: target file ok 1 - sub one added to last 1..1 ok 3 - target file ok 4 - AddMethod handles files ok 5 - An object of class 'App::PRT::Command::AddMethod' isa 'App::PRT::Command::AddMethod' ok 6 - register 1..6 ok t/App-PRT-Command-AddUse.t ........... ok 1 - use App::PRT::Command::AddUse; # Subtest: script with use statement, not using Hi ok 1 - File exists ok 2 - Hi was added 1..2 ok 2 - script with use statement, not using Hi # Subtest: script, already using Hi ok 1 - File exists ok 2 - Hi was not added 1..2 ok 3 - script, already using Hi # Subtest: script without any use, but with package statement ok 1 - File exists ok 2 - Hi was added after package statement 1..2 ok 4 - script without any use, but with package statement ok 5 - AddUse handles files ok 6 - An object of class 'App::PRT::Command::AddUse' isa 'App::PRT::Command::AddUse' # Subtest: package ok 1 - register 1..1 ok 7 - package # Subtest: package and arguments ok 1 - register 1..1 ok 8 - package and arguments 1..8 ok t/App-PRT-Command-DeleteMethod.t ..... ok 1 - use App::PRT::Command::DeleteMethod; # Subtest: target file ok 1 - execute ok 2 - name removed ok 3 - deleted code stored 1..3 ok 2 - target file # Subtest: another file ok 1 - execute ok 2 - nothing happen 1..2 ok 3 - another file ok 4 - comment before method was deleted ok 5 - another comment was not deleted because previous token of sub name is whitespace ok 6 - DeleteMethod handles files ok 7 - An object of class 'App::PRT::Command::DeleteMethod' isa 'App::PRT::Command::DeleteMethod' # Subtest: when class and method specified ok 1 - parse arguments ok 2 - parse arguments ok 3 - parse_arguments returns rest arguments 1..3 ok 8 - when class and method specified # Subtest: when arguments are not enough ok 1 - died 1..1 ok 9 - when arguments are not enough ok 10 - register ok 11 - register 1..11 ok t/App-PRT-Command-Help.t ............. ok 1 - use App::PRT::Command::Help; usage: prt Examples: prt replace_token foo bar *.pm replace tokens with content 'foo' with 'bar' in *.pm. prt rename_class Foo Bar lib/*.pm Rename Foo class to Bar. This command will rename lib/Foo.pm to lib/Bar.pm. ok 2 - execute ok 3 - Help doesn't handle files ok 4 - An object of class 'App::PRT::Command::Help' isa 'App::PRT::Command::Help' ok 5 - NOP 1..5 ok # Failed test 'use App::PRT::Command::MoveClassMethod;' # at t/App-PRT-Command-MoveClassMethod.t line 7. # (in t::App::PRT::Command::MoveClassMethod->_require) # Tried to use 'App::PRT::Command::MoveClassMethod'. # Error: Search pattern not terminated at lib/App/PRT/Util/DestinationFile.pm line 23. # Compilation failed in require at lib/App/PRT/Command/MoveClassMethod.pm line 10. # BEGIN failed--compilation aborted at lib/App/PRT/Command/MoveClassMethod.pm line 10. # Compilation failed in require at t/App-PRT-Command-MoveClassMethod.t line 7. # BEGIN failed--compilation aborted at t/App-PRT-Command-MoveClassMethod.t line 7. # Looks like you failed 1 test of 1. t/App-PRT-Command-MoveClassMethod.t .. not ok 1 - use App::PRT::Command::MoveClassMethod; 1..1 Dubious, test returned 1 (wstat 256, 0x100) Failed 1/1 subtests # Failed test 'use App::PRT::Command::RenameClass;' # at t/App-PRT-Command-RenameClass.t line 7. # (in t::App::PRT::Command::RenameClass->_require) # Tried to use 'App::PRT::Command::RenameClass'. # Error: Search pattern not terminated at lib/App/PRT/Util/DestinationFile.pm line 23. # Compilation failed in require at lib/App/PRT/Command/RenameClass.pm line 5. # BEGIN failed--compilation aborted at lib/App/PRT/Command/RenameClass.pm line 5. # Compilation failed in require at t/App-PRT-Command-RenameClass.t line 7. # BEGIN failed--compilation aborted at t/App-PRT-Command-RenameClass.t line 7. # Looks like you failed 1 test of 1. t/App-PRT-Command-RenameClass.t ...... not ok 1 - use App::PRT::Command::RenameClass; 1..1 Dubious, test returned 1 (wstat 256, 0x100) Failed 1/1 subtests # Failed test 'use App::PRT::Command::RenameNameSpace;' # at t/App-PRT-Command-RenameNameSpace.t line 7. # (in t::App::PRT::Command::RenameNameSpace->_require) # Tried to use 'App::PRT::Command::RenameNameSpace'. # Error: Search pattern not terminated at lib/App/PRT/Util/DestinationFile.pm line 23. # Compilation failed in require at lib/App/PRT/Command/RenameClass.pm line 5. # BEGIN failed--compilation aborted at lib/App/PRT/Command/RenameClass.pm line 5. # Compilation failed in require at lib/App/PRT/Command/RenameNameSpace.pm line 5. # BEGIN failed--compilation aborted at lib/App/PRT/Command/RenameNameSpace.pm line 5. # Compilation failed in require at t/App-PRT-Command-RenameNameSpace.t line 7. # BEGIN failed--compilation aborted at t/App-PRT-Command-RenameNameSpace.t line 7. # Looks like you failed 1 test of 1. t/App-PRT-Command-RenameNameSpace.t .. not ok 1 - use App::PRT::Command::RenameNameSpace; 1..1 Dubious, test returned 1 (wstat 256, 0x100) Failed 1/1 subtests t/App-PRT-Command-ReplaceToken.t ..... ok 1 - use App::PRT::Command::ReplaceToken; # Subtest: nothing happen when no rules are specified ok 1 - fails ok 2 - nothing changed 1..2 ok 2 - nothing happen when no rules are specified # Subtest: tokens will be replaced when a rules is specified ok 1 - success ok 2 - changed 1..2 ok 3 - tokens will be replaced when a rules is specified ok 4 - README exists ok 5 - execute replace token sequences ok 6 - new( in statement with My::Food was replaced # Subtest: only statement with My::Food was replaced ok 1 - execute with replace only statement which has token 1..1 ok 7 - only statement with My::Food was replaced # Subtest: only statement with My::Food was replaced ok 1 - target is `my ($class, $name) = @_;`, not subroutine 1..1 ok 8 - only statement with My::Food was replaced ok 9 - all hello are replaced ok 10 - ReplaceToken handles files ok 11 - An object of class 'App::PRT::Command::ReplaceToken' isa 'App::PRT::Command::ReplaceToken' # Subtest: when source and destination specified ok 1 - registered ok 2 - parse_arguments returns rest arguments 1..2 ok 12 - when source and destination specified # Subtest: when source, destination, and --in-statement specified ok 1 - registered ok 2 - parse_arguments returns rest arguments 1..2 ok 13 - when source, destination, and --in-statement specified # Subtest: when arguments are not enough ok 1 - died 1..1 ok 14 - when arguments are not enough # Subtest: single token ok 1 - register rules ok 2 - register rules ok 3 - register rules ok 4 - register rules 1..4 ok 15 - single token # Subtest: multi tokens ok 1 - register rules ok 2 - register rules ok 3 - register rules ok 4 - register rules 1..4 ok 16 - multi tokens # Subtest: replace_only_statement_which_has_token ok 1 - register rules ok 2 - register rules 1..2 ok 17 - replace_only_statement_which_has_token 1..17 ok # Failed test 'use App::PRT::Util::DestinationFile;' # at t/App-PRT-Util-DestinationFile.t line 7. # (in t::App::PRT::Util::DestinationFile->_require) # Tried to use 'App::PRT::Util::DestinationFile'. # Error: Search pattern not terminated at lib/App/PRT/Util/DestinationFile.pm line 23. # Compilation failed in require at t/App-PRT-Util-DestinationFile.t line 7. # BEGIN failed--compilation aborted at t/App-PRT-Util-DestinationFile.t line 7. # Looks like you failed 1 test of 1. t/App-PRT-Util-DestinationFile.t ..... not ok 1 - use App::PRT::Util::DestinationFile; 1..1 Dubious, test returned 1 (wstat 256, 0x100) Failed 1/1 subtests # Failed test 'use App::PRT;' # at t/App-PRT.t line 7. # (in t::App::PRT->_require) # Tried to use 'App::PRT'. # Error: Perl v5.10.1 required--this is only v5.8.8, stopped at lib/App/PRT.pm line 4. # BEGIN failed--compilation aborted at lib/App/PRT.pm line 4. # Compilation failed in require at t/App-PRT.t line 7. # BEGIN failed--compilation aborted at t/App-PRT.t line 7. # Looks like you failed 1 test of 1. t/App-PRT.t .......................... not ok 1 - use App::PRT; 1..1 Dubious, test returned 1 (wstat 256, 0x100) Failed 1/1 subtests sh: git: not found sh: git: not found # Failed test 'collect died (directory /tmp/1hVA7lhldt seems not a git repository at lib/App/PRT/Collector/GitDirectory.pm line 49.)' # at (eval 13) line 15. # (in t::App::Prt::Collector::GitDirectory->collect) sh: git: not found # Failed test 'find from root directory' # at t/App-Prt-Collector-GitDirectory.t line 17. # (in t::App::Prt::Collector::GitDirectory->find_git_root_directory) # got: undef # expected: '/tmp/R05G8QAFl3' # Failed test 'find from sub directory' # at t/App-Prt-Collector-GitDirectory.t line 19. # (in t::App::Prt::Collector::GitDirectory->find_git_root_directory) # got: undef # expected: '/tmp/R05G8QAFl3' sh: git: not found sh: git: not found # Child (can initialize with git repository) exited without calling finalize() # Failed test 'can initialize with git repository' # at /export/home/fly818/var/megalib/Test/Class.pm line 281. # (in t::App::Prt::Collector::GitDirectory->instantiate) # Failed test 'instantiate died (directory /tmp/gqZ9wRH9dr seems not a git repository at lib/App/PRT/Collector/GitDirectory.pm line 49.)' # at (eval 13) line 15. # (in t::App::Prt::Collector::GitDirectory->instantiate) # Looks like you failed 5 tests of 10. # Looks like your test exited with 256 just after 10. t/App-Prt-Collector-GitDirectory.t ... ok 1 - use App::PRT::Collector::GitDirectory; not ok 2 - collect died (directory /tmp/1hVA7lhldt seems not a git repository at lib/App/PRT/Collector/GitDirectory.pm line 49.) ok 3 - not a git directory not ok 4 - find from root directory not ok 5 - find from sub directory ok 6 - dies when not existing directory ok 7 - directory required ok 8 - existing directory required # Subtest: can initialize with git repository ok 1 - An object of class 'App::PRT::Collector::GitDirectory' isa 'App::PRT::Collector::GitDirectory' ok 2 - collector has directory not ok 9 - can initialize with git repository not ok 10 - instantiate died (directory /tmp/gqZ9wRH9dr seems not a git repository at lib/App/PRT/Collector/GitDirectory.pm line 49.) 1..10 Failed 5/10 subtests t/data/contain_ignores/t/test.t ...... ok 1 - dummy 1..1 ok sh: git: not found # Failed test '.git directory exists' # at t/test.t line 26. # (in t::TestForTest->_prepare_as_git_repository) # Looks like you failed 1 test of 3. t/test.t ............................. not ok 1 - .git directory exists # Subtest: valid input ok 1 - prepare test code ok 2 - directory exists ok 3 - hello_world.pl exists 1..3 ok 2 - valid input # Subtest: valid input ok 1 - dies when specified code is not prepared 1..1 ok 3 - valid input 1..3 Dubious, test returned 1 (wstat 256, 0x100) Failed 1/3 subtests Test Summary Report ------------------- t/App-PRT-CLI.t (Wstat: 0 Tests: 9 Failed: 3) Failed tests: 7-9 t/App-PRT-Command-MoveClassMethod.t (Wstat: 256 Tests: 1 Failed: 1) Failed test: 1 Non-zero exit status: 1 t/App-PRT-Command-RenameClass.t (Wstat: 256 Tests: 1 Failed: 1) Failed test: 1 Non-zero exit status: 1 t/App-PRT-Command-RenameNameSpace.t (Wstat: 256 Tests: 1 Failed: 1) Failed test: 1 Non-zero exit status: 1 t/App-PRT-Util-DestinationFile.t (Wstat: 256 Tests: 1 Failed: 1) Failed test: 1 Non-zero exit status: 1 t/App-PRT.t (Wstat: 256 Tests: 1 Failed: 1) Failed test: 1 Non-zero exit status: 1 t/App-Prt-Collector-GitDirectory.t (Wstat: 0 Tests: 10 Failed: 5) Failed tests: 2, 4-5, 9-10 t/test.t (Wstat: 256 Tests: 3 Failed: 1) Failed test: 1 Non-zero exit status: 1 Files=16, Tests=88, 13 wallclock secs ( 0.29 usr 0.15 sys + 9.98 cusr 1.30 csys = 11.72 CPU) Result: FAIL Failed 8/16 test programs. 14/88 subtests failed. HITODE/App-PRT-0.13.tar.gz ./Build test verbose=1 -- NOT OK //hint// to see the cpan-testers results for installing this module, try: reports HITODE/App-PRT-0.13.tar.gz Finished 2014-05-13T08:03:23