PATH=/opt/SUNWspro/bin:/usr/local/bin:/opt/csw/bin:/usr/ccs/bin:/usr/bin:/usr/sbin Start 2015-09-30T02:31:24 ActivePerl-1402 CPAN-2.00 Reading '/export/home/fly1432/var/cpan/Metadata' Database was generated on Wed, 30 Sep 2015 05:53:39 GMT Running make for P/PE/PERLANCAR/Perinci-CmdLine-Lite-1.34.tar.gz Checksum for /export/home/fly1432/var/cpan/sources/authors/id/P/PE/PERLANCAR/Perinci-CmdLine-Lite-1.34.tar.gz ok Perinci-CmdLine-Lite-1.34/ Perinci-CmdLine-Lite-1.34/README Perinci-CmdLine-Lite-1.34/lib/ Perinci-CmdLine-Lite-1.34/lib/Perinci/ Perinci-CmdLine-Lite-1.34/lib/Perinci/CmdLine/ Perinci-CmdLine-Lite-1.34/lib/Perinci/CmdLine/Lite.pm Perinci-CmdLine-Lite-1.34/lib/Perinci/CmdLine/Base.pm Perinci-CmdLine-Lite-1.34/lib/Perinci/CmdLine/Util/ Perinci-CmdLine-Lite-1.34/lib/Perinci/CmdLine/Util/Config.pm Perinci-CmdLine-Lite-1.34/Makefile.PL Perinci-CmdLine-Lite-1.34/share/ Perinci-CmdLine-Lite-1.34/share/templates/ Perinci-CmdLine-Lite-1.34/share/templates/description.txt Perinci-CmdLine-Lite-1.34/share/templates/synopsis.txt Perinci-CmdLine-Lite-1.34/Changes Perinci-CmdLine-Lite-1.34/dist.ini Perinci-CmdLine-Lite-1.34/LICENSE Perinci-CmdLine-Lite-1.34/t/ Perinci-CmdLine-Lite-1.34/t/00-compile.t Perinci-CmdLine-Lite-1.34/t/suite.t Perinci-CmdLine-Lite-1.34/t/release-pod-coverage.t Perinci-CmdLine-Lite-1.34/t/release-pod-syntax.t Perinci-CmdLine-Lite-1.34/t/release-rinci.t Perinci-CmdLine-Lite-1.34/weaver.ini Perinci-CmdLine-Lite-1.34/MANIFEST Perinci-CmdLine-Lite-1.34/META.json Perinci-CmdLine-Lite-1.34/META.yml Perinci-CmdLine-Lite-1.34/devscripts/ Perinci-CmdLine-Lite-1.34/devscripts/bench-startup CPAN.pm: Building P/PE/PERLANCAR/Perinci-CmdLine-Lite-1.34.tar.gz >>> /export/home/fly1432/bin/perl Makefile.PL Warning: prerequisite Data::Sah::Util::Type 0 not found. Warning: prerequisite Progress::Any::Output::TermProgressBarColor 0.17 not found. We have 0.10. Checking if your kit is complete... Looks good Generating a Unix-style Makefile Writing Makefile for Perinci::CmdLine::Lite Writing MYMETA.yml and MYMETA.json ---- Unsatisfied dependencies detected during ---- ---- PERLANCAR/Perinci-CmdLine-Lite-1.34.tar.gz ---- Data::Sah::Util::Type [requires] Progress::Any::Output::TermProgressBarColor [requires] Running make test Delayed until after prerequisites Running test for module 'Data::Sah::Util::Type' Running make for P/PE/PERLANCAR/Data-Sah-Util-Type-0.42.tar.gz Checksum for /export/home/fly1432/var/cpan/sources/authors/id/P/PE/PERLANCAR/Data-Sah-Util-Type-0.42.tar.gz ok Data-Sah-Util-Type-0.42/ Data-Sah-Util-Type-0.42/Changes Data-Sah-Util-Type-0.42/LICENSE Data-Sah-Util-Type-0.42/MANIFEST Data-Sah-Util-Type-0.42/lib/ Data-Sah-Util-Type-0.42/lib/Data/ Data-Sah-Util-Type-0.42/lib/Data/Sah/ Data-Sah-Util-Type-0.42/lib/Data/Sah/Util/ Data-Sah-Util-Type-0.42/lib/Data/Sah/Util/Type.pm Data-Sah-Util-Type-0.42/README Data-Sah-Util-Type-0.42/META.json Data-Sah-Util-Type-0.42/Makefile.PL Data-Sah-Util-Type-0.42/dist.ini Data-Sah-Util-Type-0.42/t/ Data-Sah-Util-Type-0.42/t/release-rinci.t Data-Sah-Util-Type-0.42/t/release-pod-coverage.t Data-Sah-Util-Type-0.42/t/00-compile.t Data-Sah-Util-Type-0.42/t/util-type.t Data-Sah-Util-Type-0.42/t/release-pod-syntax.t Data-Sah-Util-Type-0.42/weaver.ini Data-Sah-Util-Type-0.42/META.yml CPAN.pm: Building P/PE/PERLANCAR/Data-Sah-Util-Type-0.42.tar.gz >>> /export/home/fly1432/bin/perl Makefile.PL Checking if your kit is complete... Looks good Generating a Unix-style Makefile Writing Makefile for Data::Sah::Util::Type Writing MYMETA.yml and MYMETA.json >>> make cp lib/Data/Sah/Util/Type.pm blib/lib/Data/Sah/Util/Type.pm Manifying 1 pod document PERLANCAR/Data-Sah-Util-Type-0.42.tar.gz make -- OK Running make test >>> make test TEST_VERBOSE=1 PERL_DL_NONLAZY=1 "/export/home/fly1432/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(1, 'blib/lib', 'blib/arch')" t/*.t t/00-compile.t ............ 1..1 ok 1 - Data/Sah/Util/Type.pm loaded ok ok t/release-pod-coverage.t .. skipped: these tests are for release candidate testing t/release-pod-syntax.t .... skipped: these tests are for release candidate testing t/release-rinci.t ......... skipped: these tests are for release candidate testing t/util-type.t ............. # Subtest: is_simple ok 1 - all without of ok 2 - all with of 1 ok 3 - all with of 2 ok 4 - all with of 3 ok 5 - all with !of ok 6 - all with of.op ok 7 - any without of ok 8 - any with of 1 ok 9 - any with of 2 ok 10 - any with of 3 ok 11 - any with !of ok 12 - any with of.op ok 13 - array ok 14 - bool ok 15 - int ok 16 - cistr ok 17 - code ok 18 - float ok 19 - hash ok 20 - int ok 21 - num ok 22 - obj ok 23 - re ok 24 - str ok 25 - undef 1..25 ok 1 - is_simple # Subtest: is_collection ok 1 - all without of ok 2 - all with of 1 ok 3 - all with of 2 ok 4 - all with of 3 ok 5 - all with !of ok 6 - all with of.op ok 7 - any without of ok 8 - any with of 1 ok 9 - any with of 2 ok 10 - any with of 3 ok 11 - any with !of ok 12 - any with of.op ok 13 - array ok 14 - bool ok 15 - int ok 16 - cistr ok 17 - code ok 18 - float ok 19 - hash ok 20 - int ok 21 - num ok 22 - obj ok 23 - re ok 24 - str ok 25 - undef 1..25 ok 2 - is_collection # Subtest: is_numeric ok 1 - undef ok 2 - num ok 3 - int ok 4 - float ok 5 - str ok 6 - array ok 7 - hash ok 8 - code ok 9 - obj 1..9 ok 3 - is_numeric # Subtest: is_ref ok 1 - undef ok 2 - int ok 3 - array ok 4 - hash ok 5 - code ok 6 - obj 1..6 ok 4 - is_ref 1..4 ok All tests successful. Files=5, Tests=5, 1 wallclock secs ( 0.11 usr 0.03 sys + 0.61 cusr 0.12 csys = 0.87 CPU) Result: PASS PERLANCAR/Data-Sah-Util-Type-0.42.tar.gz make test TEST_VERBOSE=1 -- OK PPD for Data-Sah-Util-Type-0.42 already made Running test for module 'Progress::Any::Output::TermProgressBarColor' Running make for P/PE/PERLANCAR/Progress-Any-Output-TermProgressBarColor-0.21.tar.gz Prepending /export/home/fly1432/var/cpan/build/Data-Sah-Util-Type-0.42-ehs4dl/blib/arch /export/home/fly1432/var/cpan/build/Data-Sah-Util-Type-0.42-ehs4dl/blib/lib to PERL5LIB for 'get' Checksum for /export/home/fly1432/var/cpan/sources/authors/id/P/PE/PERLANCAR/Progress-Any-Output-TermProgressBarColor-0.21.tar.gz ok Progress-Any-Output-TermProgressBarColor-0.21/ Progress-Any-Output-TermProgressBarColor-0.21/Changes Progress-Any-Output-TermProgressBarColor-0.21/LICENSE Progress-Any-Output-TermProgressBarColor-0.21/MANIFEST Progress-Any-Output-TermProgressBarColor-0.21/lib/ Progress-Any-Output-TermProgressBarColor-0.21/lib/Progress/ Progress-Any-Output-TermProgressBarColor-0.21/lib/Progress/Any/ Progress-Any-Output-TermProgressBarColor-0.21/lib/Progress/Any/Output/ Progress-Any-Output-TermProgressBarColor-0.21/lib/Progress/Any/Output/TermProgressBarColor.pm Progress-Any-Output-TermProgressBarColor-0.21/README Progress-Any-Output-TermProgressBarColor-0.21/META.json Progress-Any-Output-TermProgressBarColor-0.21/Makefile.PL Progress-Any-Output-TermProgressBarColor-0.21/dist.ini Progress-Any-Output-TermProgressBarColor-0.21/t/ Progress-Any-Output-TermProgressBarColor-0.21/t/release-rinci.t Progress-Any-Output-TermProgressBarColor-0.21/t/release-pod-coverage.t Progress-Any-Output-TermProgressBarColor-0.21/t/00-compile.t Progress-Any-Output-TermProgressBarColor-0.21/t/01-basic.t Progress-Any-Output-TermProgressBarColor-0.21/t/release-pod-syntax.t Progress-Any-Output-TermProgressBarColor-0.21/weaver.ini Progress-Any-Output-TermProgressBarColor-0.21/META.yml Prepending /export/home/fly1432/var/cpan/build/Data-Sah-Util-Type-0.42-ehs4dl/blib/arch /export/home/fly1432/var/cpan/build/Data-Sah-Util-Type-0.42-ehs4dl/blib/lib to PERL5LIB for 'make' CPAN.pm: Building P/PE/PERLANCAR/Progress-Any-Output-TermProgressBarColor-0.21.tar.gz >>> /export/home/fly1432/bin/perl Makefile.PL Checking if your kit is complete... Looks good Generating a Unix-style Makefile Writing Makefile for Progress::Any::Output::TermProgressBarColor Writing MYMETA.yml and MYMETA.json >>> make cp lib/Progress/Any/Output/TermProgressBarColor.pm blib/lib/Progress/Any/Output/TermProgressBarColor.pm Manifying 1 pod document PERLANCAR/Progress-Any-Output-TermProgressBarColor-0.21.tar.gz make -- OK Prepending /export/home/fly1432/var/cpan/build/Data-Sah-Util-Type-0.42-ehs4dl/blib/arch /export/home/fly1432/var/cpan/build/Data-Sah-Util-Type-0.42-ehs4dl/blib/lib to PERL5LIB for 'test' Running make test >>> make test TEST_VERBOSE=1 PERL_DL_NONLAZY=1 "/export/home/fly1432/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(1, 'blib/lib', 'blib/arch')" t/*.t t/00-compile.t ............ 1..1 ok 1 - Progress/Any/Output/TermProgressBarColor.pm loaded ok ok # Failed test at t/01-basic.t line 18. # ' 10% []1s left ' # doesn't match '(?^:foo)' # Looks like you failed 1 test of 2. # Failed test 'default' # at t/01-basic.t line 20. # Failed test at t/01-basic.t line 28. # 'Use of uninitialized value $cd in numeric ge (>=) at /export/home/fly1432/var/megalib/Color/ANSI/Util.pm line 281. # Use of uninitialized value $cd in numeric ge (>=) at /export/home/fly1432/var/megalib/Color/ANSI/Util.pm line 283. # Use of uninitialized value $cd in numeric ge (>=) at /export/home/fly1432/var/megalib/Color/ANSI/Util.pm line 281. # Use of uninitialized value $cd in numeric ge (>=) at /export/home/fly1432/var/megalib/Color/ANSI/Util.pm line 283. #  20% []1s left ' # doesn't match '(?^:foo)' # Looks like you failed 1 test of 2. # Failed test 'fh option' # at t/01-basic.t line 30. # Failed test at t/01-basic.t line 41. # ' 30% []1s left ' # doesn't match '(?^:foo)' # Looks like you failed 1 test of 2. # Failed test 'default (wide)' # at t/01-basic.t line 43. # Looks like you failed 3 tests of 3. t/01-basic.t .............. # Subtest: default not ok 1 ok 2 1..2 not ok 1 - default # Subtest: fh option not ok 1 ok 2 1..2 not ok 2 - fh option # Subtest: default (wide) not ok 1 ok 2 1..2 not ok 3 - default (wide) 1..3 Dubious, test returned 3 (wstat 768, 0x300) Failed 3/3 subtests t/release-pod-coverage.t .. skipped: these tests are for release candidate testing t/release-pod-syntax.t .... skipped: these tests are for release candidate testing t/release-rinci.t ......... skipped: these tests are for release candidate testing Test Summary Report ------------------- t/01-basic.t (Wstat: 768 Tests: 3 Failed: 3) Failed tests: 1-3 Non-zero exit status: 3 Files=5, Tests=4, 2 wallclock secs ( 0.10 usr 0.03 sys + 0.90 cusr 0.17 csys = 1.20 CPU) Result: FAIL Failed 1/5 test programs. 3/4 subtests failed. make: *** [test_dynamic] Error 255 PERLANCAR/Progress-Any-Output-TermProgressBarColor-0.21.tar.gz make test TEST_VERBOSE=1 -- NOT OK //hint// to see the cpan-testers results for installing this module, try: reports PERLANCAR/Progress-Any-Output-TermProgressBarColor-0.21.tar.gz Running make for P/PE/PERLANCAR/Perinci-CmdLine-Lite-1.34.tar.gz Prepending /export/home/fly1432/var/cpan/build/Data-Sah-Util-Type-0.42-ehs4dl/blib/arch /export/home/fly1432/var/cpan/build/Data-Sah-Util-Type-0.42-ehs4dl/blib/lib to PERL5LIB for 'get' Has already been unwrapped into directory /export/home/fly1432/var/cpan/build/Perinci-CmdLine-Lite-1.34-IZ4tX1 Prepending /export/home/fly1432/var/cpan/build/Data-Sah-Util-Type-0.42-ehs4dl/blib/arch /export/home/fly1432/var/cpan/build/Data-Sah-Util-Type-0.42-ehs4dl/blib/lib to PERL5LIB for 'make' CPAN.pm: Building P/PE/PERLANCAR/Perinci-CmdLine-Lite-1.34.tar.gz Warning: Prerequisite 'Progress::Any::Output::TermProgressBarColor => 0.17' for 'PERLANCAR/Perinci-CmdLine-Lite-1.34.tar.gz' failed when processing 'PERLANCAR/Progress-Any-Output-TermProgressBarColor-0.21.tar.gz' with 'make_test => NO'. Continuing, but chances to succeed are limited. >>> make cp share/templates/description.txt blib/lib/auto/share/dist/Perinci-CmdLine-Lite/templates/description.txt cp share/templates/synopsis.txt blib/lib/auto/share/dist/Perinci-CmdLine-Lite/templates/synopsis.txt cp lib/Perinci/CmdLine/Base.pm blib/lib/Perinci/CmdLine/Base.pm cp lib/Perinci/CmdLine/Util/Config.pm blib/lib/Perinci/CmdLine/Util/Config.pm cp lib/Perinci/CmdLine/Lite.pm blib/lib/Perinci/CmdLine/Lite.pm Manifying 3 pod documents PERLANCAR/Perinci-CmdLine-Lite-1.34.tar.gz make -- OK Prepending /export/home/fly1432/var/cpan/build/Data-Sah-Util-Type-0.42-ehs4dl/blib/arch /export/home/fly1432/var/cpan/build/Data-Sah-Util-Type-0.42-ehs4dl/blib/lib to PERL5LIB for 'test' Running make test >>> make test TEST_VERBOSE=1 Skip blib/lib/auto/share/dist/Perinci-CmdLine-Lite/templates/description.txt (unchanged) Skip blib/lib/auto/share/dist/Perinci-CmdLine-Lite/templates/synopsis.txt (unchanged) PERL_DL_NONLAZY=1 "/export/home/fly1432/bin/perl" "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(1, 'blib/lib', 'blib/arch')" t/*.t t/00-compile.t ............ 1..3 ok 1 - Perinci/CmdLine/Base.pm loaded ok ok 2 - Perinci/CmdLine/Lite.pm loaded ok ok 3 - Perinci/CmdLine/Util/Config.pm loaded ok ok t/release-pod-coverage.t .. skipped: these tests are for release candidate testing t/release-pod-syntax.t .... skipped: these tests are for release candidate testing t/release-rinci.t ......... skipped: these tests are for release candidate testing # Failed test 'exit_code' # at /export/home/fly1432/var/megalib/Test/Perinci/CmdLine.pm line 182. # got: '200' # expected: '0' # Script's stdout: # Script's stderr: <> # Failed test 'stdout_like' # at /export/home/fly1432/var/megalib/Test/Perinci/CmdLine.pm line 192. # 'cliJW0n0lpb: ERROR 500: Can't load module Perinci::Examples: "gen_modified_sub" is not exported by the Perinci::Sub::Util module # Can't continue after import errors at /export/home/fly1432/var/megalib/Perinci/Examples.pm line 13. # BEGIN failed--compilation aborted at /export/home/fly1432/var/megalib/Perinci/Examples.pm line 13. # Compilation failed in require at /export/home/fly1432/var/megalib/Perinci/Access/Lite.pm line 54. # ' # doesn't match '(?^:wet)' # Looks like you failed 2 tests of 2. # Failed test 'dry-run (via env, 0)' # at /export/home/fly1432/var/megalib/Test/Perinci/CmdLine.pm line 225. # Failed test 'exit_code' # at /export/home/fly1432/var/megalib/Test/Perinci/CmdLine.pm line 182. # got: '200' # expected: '0' # Script's stdout: # Script's stderr: <> # Failed test 'stdout_like' # at /export/home/fly1432/var/megalib/Test/Perinci/CmdLine.pm line 192. # 'cli0WcLn5em: ERROR 500: Can't load module Perinci::Examples: "gen_modified_sub" is not exported by the Perinci::Sub::Util module # Can't continue after import errors at /export/home/fly1432/var/megalib/Perinci/Examples.pm line 13. # BEGIN failed--compilation aborted at /export/home/fly1432/var/megalib/Perinci/Examples.pm line 13. # Compilation failed in require at /export/home/fly1432/var/megalib/Perinci/Access/Lite.pm line 54. # ' # doesn't match '(?^:dry)' # Looks like you failed 2 tests of 2. # Failed test 'dry-run (via env, 1)' # at /export/home/fly1432/var/megalib/Test/Perinci/CmdLine.pm line 225. # Failed test 'exit_code' # at /export/home/fly1432/var/megalib/Test/Perinci/CmdLine.pm line 182. # got: '200' # expected: '0' # Script's stdout: # Script's stderr: <> # Failed test 'stdout_like' # at /export/home/fly1432/var/megalib/Test/Perinci/CmdLine.pm line 192. # 'cliYQyEzn2o: ERROR 500: Can't load module Perinci::Examples: "gen_modified_sub" is not exported by the Perinci::Sub::Util module # Can't continue after import errors at /export/home/fly1432/var/megalib/Perinci/Examples.pm line 13. # BEGIN failed--compilation aborted at /export/home/fly1432/var/megalib/Perinci/Examples.pm line 13. # Compilation failed in require at /export/home/fly1432/var/megalib/Perinci/Access/Lite.pm line 54. # ' # doesn't match '(?^:dry)' # Looks like you failed 2 tests of 2. # Failed test 'dry-run (via cmdline opt)' # at /export/home/fly1432/var/megalib/Test/Perinci/CmdLine.pm line 225. # Looks like you failed 3 tests of 4. # Failed test 'dry-run' # at /export/home/fly1432/var/megalib/Test/Perinci/CmdLine.pm line 292. # Failed test 'exit_code' # at /export/home/fly1432/var/megalib/Test/Perinci/CmdLine.pm line 182. # got: '255' # expected: '0' # Script's stdout: <> # Script's stderr: <"gen_modified_sub" is not exported by the Perinci::Sub::Util module # Can't continue after import errors at /export/home/fly1432/var/megalib/Perinci/Sub/Complete.pm line 13. # BEGIN failed--compilation aborted at /export/home/fly1432/var/megalib/Perinci/Sub/Complete.pm line 13. # Compilation failed in require at /data1/fly1432-var/cpan/build/Perinci-CmdLine-Lite-1.34-IZ4tX1/blib/lib/Perinci/CmdLine/Base.pm line 528. # > # Failed test 'answer' # at /export/home/fly1432/var/megalib/Test/Perinci/CmdLine.pm line 256. # Structures begin differing at: # $got->[0] = Does not exist # $expected->[0] = '--number' # [] # Looks like you failed 2 tests of 2. # Failed test 'self-completion works' # at /export/home/fly1432/var/megalib/Test/Perinci/CmdLine.pm line 225. # Failed test 'exit_code' # at /export/home/fly1432/var/megalib/Test/Perinci/CmdLine.pm line 182. # got: '255' # expected: '0' # Script's stdout: <> # Script's stderr: <"gen_modified_sub" is not exported by the Perinci::Sub::Util module # Can't continue after import errors at /export/home/fly1432/var/megalib/Perinci/Sub/Complete.pm line 13. # BEGIN failed--compilation aborted at /export/home/fly1432/var/megalib/Perinci/Sub/Complete.pm line 13. # Compilation failed in require at /data1/fly1432-var/cpan/build/Perinci-CmdLine-Lite-1.34-IZ4tX1/blib/lib/Perinci/CmdLine/Base.pm line 528. # > # Failed test 'answer' # at /export/home/fly1432/var/megalib/Test/Perinci/CmdLine.pm line 256. # Structures begin differing at: # $got->[0] = Does not exist # $expected->[0] = 'sc1' # [] # Looks like you failed 2 tests of 2. # Failed test 'completion of subcommand name' # at /export/home/fly1432/var/megalib/Test/Perinci/CmdLine.pm line 225. # Failed test 'exit_code' # at /export/home/fly1432/var/megalib/Test/Perinci/CmdLine.pm line 182. # got: '255' # expected: '0' # Script's stdout: <> # Script's stderr: <"gen_modified_sub" is not exported by the Perinci::Sub::Util module # Can't continue after import errors at /export/home/fly1432/var/megalib/Perinci/Sub/Complete.pm line 13. # BEGIN failed--compilation aborted at /export/home/fly1432/var/megalib/Perinci/Sub/Complete.pm line 13. # Compilation failed in require at /data1/fly1432-var/cpan/build/Perinci-CmdLine-Lite-1.34-IZ4tX1/blib/lib/Perinci/CmdLine/Base.pm line 528. # > # Failed test 'answer' # at /export/home/fly1432/var/megalib/Test/Perinci/CmdLine.pm line 256. # Structures begin differing at: # $got->[0] = Does not exist # $expected->[0] = '--number' # [] # Looks like you failed 2 tests of 2. # Failed test 'completion of subcommand option' # at /export/home/fly1432/var/megalib/Test/Perinci/CmdLine.pm line 225. # Looks like you failed 3 tests of 4. # Failed test 'completion' # at /export/home/fly1432/var/megalib/Test/Perinci/CmdLine.pm line 292. # Failed test 'exit_code' # at /export/home/fly1432/var/megalib/Test/Perinci/CmdLine.pm line 182. # got: '200' # expected: '0' # Script's stdout: # Script's stderr: <> # Failed test 'stdout_like' # at /export/home/fly1432/var/megalib/Test/Perinci/CmdLine.pm line 192. # 'sum-nums: ERROR 500: Can't load module Perinci::Examples: "gen_modified_sub" is not exported by the Perinci::Sub::Util module # Can't continue after import errors at /export/home/fly1432/var/megalib/Perinci/Examples.pm line 13. # BEGIN failed--compilation aborted at /export/home/fly1432/var/megalib/Perinci/Examples.pm line 13. # Compilation failed in require at /export/home/fly1432/var/megalib/Perinci/Access/Lite.pm line 54. # ' # doesn't match '(?^s:^6$)' # Looks like you failed 2 tests of 2. # Failed test 'env read' # at /export/home/fly1432/var/megalib/Test/Perinci/CmdLine.pm line 225. # Failed test 'exit_code' # at /export/home/fly1432/var/megalib/Test/Perinci/CmdLine.pm line 182. # got: '200' # expected: '0' # Script's stdout: # Script's stderr: <> # Failed test 'stdout_like' # at /export/home/fly1432/var/megalib/Test/Perinci/CmdLine.pm line 192. # 'sum-nums: ERROR 500: Can't load module Perinci::Examples: "gen_modified_sub" is not exported by the Perinci::Sub::Util module # Can't continue after import errors at /export/home/fly1432/var/megalib/Perinci/Examples.pm line 13. # BEGIN failed--compilation aborted at /export/home/fly1432/var/megalib/Perinci/Examples.pm line 13. # Compilation failed in require at /export/home/fly1432/var/megalib/Perinci/Access/Lite.pm line 54. # ' # doesn't match '(?^s:^3$)' # Looks like you failed 2 tests of 2. # Failed test 'turned off via --no-env' # at /export/home/fly1432/var/megalib/Test/Perinci/CmdLine.pm line 225. # Failed test 'exit_code' # at /export/home/fly1432/var/megalib/Test/Perinci/CmdLine.pm line 182. # got: '200' # expected: '0' # Script's stdout: # Script's stderr: <> # Failed test 'stdout_like' # at /export/home/fly1432/var/megalib/Test/Perinci/CmdLine.pm line 192. # 'sum-nums: ERROR 500: Can't load module Perinci::Examples: "gen_modified_sub" is not exported by the Perinci::Sub::Util module # Can't continue after import errors at /export/home/fly1432/var/megalib/Perinci/Examples.pm line 13. # BEGIN failed--compilation aborted at /export/home/fly1432/var/megalib/Perinci/Examples.pm line 13. # Compilation failed in require at /export/home/fly1432/var/megalib/Perinci/Access/Lite.pm line 54. # ' # doesn't match '(?^s:^18$)' # Looks like you failed 2 tests of 2. # Failed test 'attr:env_name' # at /export/home/fly1432/var/megalib/Test/Perinci/CmdLine.pm line 225. # Looks like you failed 3 tests of 4. # Failed test 'env' # at /export/home/fly1432/var/megalib/Test/Perinci/CmdLine.pm line 292. # Failed test 'exit_code' # at /export/home/fly1432/var/megalib/Test/Perinci/CmdLine.pm line 182. # got: '200' # expected: '0' # Script's stdout: # Script's stderr: <> # Failed test 'stdout_like' # at /export/home/fly1432/var/megalib/Test/Perinci/CmdLine.pm line 192. # 'prog: ERROR 500: Can't load module Perinci::Examples: "gen_modified_sub" is not exported by the Perinci::Sub::Util module # Can't continue after import errors at /export/home/fly1432/var/megalib/Perinci/Examples.pm line 13. # BEGIN failed--compilation aborted at /export/home/fly1432/var/megalib/Perinci/Examples.pm line 13. # Compilation failed in require at /export/home/fly1432/var/megalib/Perinci/Access/Lite.pm line 54. # ' # doesn't match '(?^:^a=101\nb=201\nc=\nd=\ne=$)' # Looks like you failed 2 tests of 2. # Failed test 'attr:config_dirs' # at /export/home/fly1432/var/megalib/Test/Perinci/CmdLine.pm line 225. # Failed test 'exit_code' # at /export/home/fly1432/var/megalib/Test/Perinci/CmdLine.pm line 182. # got: '200' # expected: '0' # Script's stdout: # Script's stderr: <> # Failed test 'stdout_like' # at /export/home/fly1432/var/megalib/Test/Perinci/CmdLine.pm line 192. # 'prog: ERROR 500: Can't load module Perinci::Examples: "gen_modified_sub" is not exported by the Perinci::Sub::Util module # Can't continue after import errors at /export/home/fly1432/var/megalib/Perinci/Examples.pm line 13. # BEGIN failed--compilation aborted at /export/home/fly1432/var/megalib/Perinci/Examples.pm line 13. # Compilation failed in require at /export/home/fly1432/var/megalib/Perinci/Access/Lite.pm line 54. # ' # doesn't match '(?^:^a=104\nb=\nc=\nd=\ne=$)' # Looks like you failed 2 tests of 2. # Failed test 'attr:config_filename' # at /export/home/fly1432/var/megalib/Test/Perinci/CmdLine.pm line 225. # Failed test 'exit_code' # at /export/home/fly1432/var/megalib/Test/Perinci/CmdLine.pm line 182. # got: '200' # expected: '0' # Script's stdout: # Script's stderr: <> # Failed test 'stdout_like' # at /export/home/fly1432/var/megalib/Test/Perinci/CmdLine.pm line 192. # 'prog: ERROR 500: Can't load module Perinci::Examples: "gen_modified_sub" is not exported by the Perinci::Sub::Util module # Can't continue after import errors at /export/home/fly1432/var/megalib/Perinci/Examples.pm line 13. # BEGIN failed--compilation aborted at /export/home/fly1432/var/megalib/Perinci/Examples.pm line 13. # Compilation failed in require at /export/home/fly1432/var/megalib/Perinci/Access/Lite.pm line 54. # ' # doesn't match '(?^:^a=\nb=\nc=\nd=\ne=$)' # Looks like you failed 2 tests of 2. # Failed test 'common option: --no-config' # at /export/home/fly1432/var/megalib/Test/Perinci/CmdLine.pm line 225. # Failed test 'exit_code' # at /export/home/fly1432/var/megalib/Test/Perinci/CmdLine.pm line 182. # got: '200' # expected: '0' # Script's stdout: # Script's stderr: <> # Failed test 'stdout_like' # at /export/home/fly1432/var/megalib/Test/Perinci/CmdLine.pm line 192. # 'prog: ERROR 500: Can't load module Perinci::Examples: "gen_modified_sub" is not exported by the Perinci::Sub::Util module # Can't continue after import errors at /export/home/fly1432/var/megalib/Perinci/Examples.pm line 13. # BEGIN failed--compilation aborted at /export/home/fly1432/var/megalib/Perinci/Examples.pm line 13. # Compilation failed in require at /export/home/fly1432/var/megalib/Perinci/Access/Lite.pm line 54. # ' # doesn't match '(?^:^a=101\nb=201\nc=\nd=\ne=$)' # Looks like you failed 2 tests of 2. # Failed test 'common option: --config-path' # at /export/home/fly1432/var/megalib/Test/Perinci/CmdLine.pm line 225. # Failed test 'exit_code' # at /export/home/fly1432/var/megalib/Test/Perinci/CmdLine.pm line 182. # got: '200' # expected: '0' # Script's stdout: # Script's stderr: <> # Failed test 'stdout_like' # at /export/home/fly1432/var/megalib/Test/Perinci/CmdLine.pm line 192. # 'prog: ERROR 500: Can't load module Perinci::Examples: "gen_modified_sub" is not exported by the Perinci::Sub::Util module # Can't continue after import errors at /export/home/fly1432/var/megalib/Perinci/Examples.pm line 13. # BEGIN failed--compilation aborted at /export/home/fly1432/var/megalib/Perinci/Examples.pm line 13. # Compilation failed in require at /export/home/fly1432/var/megalib/Perinci/Access/Lite.pm line 54. # ' # doesn't match '(?^:a=111\nb=201\nc=\nd=201\ne=$)' # Looks like you failed 2 tests of 2. # Failed test 'common option: --config-profile' # at /export/home/fly1432/var/megalib/Test/Perinci/CmdLine.pm line 225. # Failed test 'exit_code' # at /export/home/fly1432/var/megalib/Test/Perinci/CmdLine.pm line 182. # got: '200' # expected: '112' # Script's stdout: # Script's stderr: <> # Looks like you failed 1 test of 1. # Failed test 'unknown config profile -> error' # at /export/home/fly1432/var/megalib/Test/Perinci/CmdLine.pm line 225. # Failed test 'exit_code' # at /export/home/fly1432/var/megalib/Test/Perinci/CmdLine.pm line 182. # got: '200' # expected: '0' # Script's stdout: # Script's stderr: <> # Failed test 'stdout_like' # at /export/home/fly1432/var/megalib/Test/Perinci/CmdLine.pm line 192. # 'foo: ERROR 500: Can't load module Perinci::Examples: "gen_modified_sub" is not exported by the Perinci::Sub::Util module # Can't continue after import errors at /export/home/fly1432/var/megalib/Perinci/Examples.pm line 13. # BEGIN failed--compilation aborted at /export/home/fly1432/var/megalib/Perinci/Examples.pm line 13. # Compilation failed in require at /export/home/fly1432/var/megalib/Perinci/Access/Lite.pm line 54. # ' # doesn't match '(?^:^a=\nb=\nc=\nd=\ne=$)' # Looks like you failed 2 tests of 2. # Failed test 'unknown config profile but does not read config -> ok' # at /export/home/fly1432/var/megalib/Test/Perinci/CmdLine.pm line 225. # Failed test 'exit_code' # at /export/home/fly1432/var/megalib/Test/Perinci/CmdLine.pm line 182. # got: '200' # expected: '0' # Script's stdout: # Script's stderr: <> # Failed test 'stdout_like' # at /export/home/fly1432/var/megalib/Test/Perinci/CmdLine.pm line 192. # 'prog: ERROR 500: Can't load module Perinci::Examples: "gen_modified_sub" is not exported by the Perinci::Sub::Util module # Can't continue after import errors at /export/home/fly1432/var/megalib/Perinci/Examples.pm line 13. # BEGIN failed--compilation aborted at /export/home/fly1432/var/megalib/Perinci/Examples.pm line 13. # Compilation failed in require at /export/home/fly1432/var/megalib/Perinci/Access/Lite.pm line 54. # ' # doesn't match '(?^:^a=102\nb=201\nc=201\nd=\ne=$)' # Looks like you failed 2 tests of 2. # Failed test 'subcommand' # at /export/home/fly1432/var/megalib/Test/Perinci/CmdLine.pm line 225. # Failed test 'exit_code' # at /export/home/fly1432/var/megalib/Test/Perinci/CmdLine.pm line 182. # got: '200' # expected: '0' # Script's stdout: # Script's stderr: <> # Failed test 'stdout_like' # at /export/home/fly1432/var/megalib/Test/Perinci/CmdLine.pm line 192. # 'prog: ERROR 500: Can't load module Perinci::Examples: "gen_modified_sub" is not exported by the Perinci::Sub::Util module # Can't continue after import errors at /export/home/fly1432/var/megalib/Perinci/Examples.pm line 13. # BEGIN failed--compilation aborted at /export/home/fly1432/var/megalib/Perinci/Examples.pm line 13. # Compilation failed in require at /export/home/fly1432/var/megalib/Perinci/Access/Lite.pm line 54. # ' # doesn't match '(?^:^a=121\nb=201\nc=201\nd=201\ne=$)' # Looks like you failed 2 tests of 2. # Failed test 'subcommand + --config-profile' # at /export/home/fly1432/var/megalib/Test/Perinci/CmdLine.pm line 225. # Failed test 'exit_code' # at /export/home/fly1432/var/megalib/Test/Perinci/CmdLine.pm line 182. # got: '200' # expected: '0' # Script's stdout: # Script's stderr: <> # Failed test 'stdout_like' # at /export/home/fly1432/var/megalib/Test/Perinci/CmdLine.pm line 192. # 'sum: ERROR 500: Can't load module Perinci::Examples: "gen_modified_sub" is not exported by the Perinci::Sub::Util module # Can't continue after import errors at /export/home/fly1432/var/megalib/Perinci/Examples.pm line 13. # BEGIN failed--compilation aborted at /export/home/fly1432/var/megalib/Perinci/Examples.pm line 13. # Compilation failed in require at /export/home/fly1432/var/megalib/Perinci/Access/Lite.pm line 54. # ' # doesn't match '(?^:^0$)' # Looks like you failed 2 tests of 2. # Failed test 'array-ify if argument is array' # at /export/home/fly1432/var/megalib/Test/Perinci/CmdLine.pm line 225. # Failed test 'exit_code' # at /export/home/fly1432/var/megalib/Test/Perinci/CmdLine.pm line 182. # got: '200' # expected: '0' # Script's stdout: # Script's stderr: <> # Failed test 'stdout_like' # at /export/home/fly1432/var/megalib/Test/Perinci/CmdLine.pm line 192. # 'prog3: ERROR 500: Can't load module Perinci::Examples: "gen_modified_sub" is not exported by the Perinci::Sub::Util module # Can't continue after import errors at /export/home/fly1432/var/megalib/Perinci/Examples.pm line 13. # BEGIN failed--compilation aborted at /export/home/fly1432/var/megalib/Perinci/Examples.pm line 13. # Compilation failed in require at /export/home/fly1432/var/megalib/Perinci/Access/Lite.pm line 54. # ' # doesn't match '(?^:^"a=101\\nb=\\nc=\\nd=\\ne=")' # Looks like you failed 2 tests of 2. # Failed test 'can also set common option' # at /export/home/fly1432/var/megalib/Test/Perinci/CmdLine.pm line 225. # Looks like you failed 11 tests of 12. # Failed test 'config file' # at /export/home/fly1432/var/megalib/Test/Perinci/CmdLine.pm line 292. # there are failing tests, not deleting tempdir /tmp/PDrz77XBhr # Looks like you failed 4 tests of 17. t/suite.t ................. # Subtest: help action ok 1 - dummy # Subtest: --help # Generated CLI script at /tmp/PDrz77XBhr/clium6dPd80 # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/PDrz77XBhr/clium6dPd80', # 'overwrite' => 1, # 'read_config' => 0, # 'read_env' => 0, # 'url' => '/Perinci/Examples/Tiny/noop' # } # argv: [ # '--help' # ] # Script's stdout: # Script's stderr: <> ok 1 - exit_code ok 2 - stdout_like 1..2 ok 2 - --help # Subtest: extra args is okay # Generated CLI script at /tmp/PDrz77XBhr/cliJbTyQclm # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/PDrz77XBhr/cliJbTyQclm', # 'overwrite' => 1, # 'read_config' => 0, # 'read_env' => 0, # 'url' => '/Perinci/Examples/Tiny/noop' # } # argv: [ # '--help', # '1', # '2', # '3' # ] # Script's stdout: # Script's stderr: <> ok 1 - exit_code ok 2 - stdout_like 1..2 ok 3 - extra args is okay # Subtest: help for cli with subcommands # Generated CLI script at /tmp/PDrz77XBhr/cliRjzaPlGl # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/PDrz77XBhr/cliRjzaPlGl', # 'overwrite' => 1, # 'read_config' => 0, # 'read_env' => 0, # 'subcommands' => [ # 'sc1:/Perinci/Examples/Tiny/noop' # ], # 'url' => '/Perinci/Examples/Tiny/' # } # argv: [ # '--help' # ] # Script's stdout: # Script's stderr: <> ok 1 - exit_code ok 2 - stdout_like 1..2 ok 4 - help for cli with subcommands # Subtest: help on a subcommand # Generated CLI script at /tmp/PDrz77XBhr/cliBF8aKGly # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/PDrz77XBhr/cliBF8aKGly', # 'overwrite' => 1, # 'read_config' => 0, # 'read_env' => 0, # 'subcommands' => [ # 'sc1:/Perinci/Examples/Tiny/noop' # ], # 'url' => '/Perinci/Examples/Tiny/' # } # argv: [ # 'sc1', # '--help' # ] # Script's stdout: # Script's stderr: <> ok 1 - exit_code ok 2 - stdout_like ok 3 - stdout_unlike 1..3 ok 5 - help on a subcommand 1..5 ok 1 - help action # Subtest: version action ok 1 - dummy # Subtest: --version # Generated CLI script at /tmp/PDrz77XBhr/clijlMgqHzP # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/PDrz77XBhr/clijlMgqHzP', # 'overwrite' => 1, # 'read_config' => 0, # 'read_env' => 0, # 'url' => '/Perinci/Examples/Tiny/noop' # } # argv: [ # '--version' # ] # Script's stdout: # Script's stderr: <> ok 1 - exit_code ok 2 - stdout_like 1..2 ok 2 - --version 1..2 ok 2 - version action # Subtest: subcommands action ok 1 - dummy # Subtest: --subcommands # Generated CLI script at /tmp/PDrz77XBhr/clikmxQGcNF # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/PDrz77XBhr/clikmxQGcNF', # 'overwrite' => 1, # 'read_config' => 0, # 'read_env' => 0, # 'subcommands' => [ # 'noop:/Perinci/Examples/Tiny/noop', # 'odd_even:/Perinci/Examples/Tiny/odd_even' # ], # 'url' => '/Perinci/Examples/Tiny/' # } # argv: [ # '--subcommands' # ] # Script's stdout: # Script's stderr: <> ok 1 - exit_code ok 2 - stdout_like 1..2 ok 2 - --subcommands # Subtest: unknown subcommand = error # Generated CLI script at /tmp/PDrz77XBhr/cliLgfXoYsJ # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/PDrz77XBhr/cliLgfXoYsJ', # 'overwrite' => 1, # 'read_config' => 0, # 'read_env' => 0, # 'subcommands' => [ # 'noop:/Perinci/Examples/Tiny/noop', # 'odd_even:/Perinci/Examples/Tiny/odd_even' # ], # 'url' => '/Perinci/Examples/Tiny/' # } # argv: [ # 'foo' # ] # Script's stdout: # Script's stderr: <> ok 1 - exit_code 1..1 ok 3 - unknown subcommand = error # Subtest: default_subcommand # Generated CLI script at /tmp/PDrz77XBhr/clid1f713xS # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'default_subcommand' => 'noop', # 'output_file' => '/tmp/PDrz77XBhr/clid1f713xS', # 'overwrite' => 1, # 'read_config' => 0, # 'read_env' => 0, # 'subcommands' => [ # 'noop:/Perinci/Examples/Tiny/noop', # 'odd_even:/Perinci/Examples/Tiny/odd_even' # ], # 'url' => '/Perinci/Examples/Tiny/' # } # argv: [] # Script's stdout: <> # Script's stderr: <> ok 1 - exit_code ok 2 - stdout_like 1..2 ok 4 - default_subcommand # Subtest: default_subcommand 2 # Generated CLI script at /tmp/PDrz77XBhr/cliKm3z7hT0 # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'default_subcommand' => 'odd_even', # 'output_file' => '/tmp/PDrz77XBhr/cliKm3z7hT0', # 'overwrite' => 1, # 'read_config' => 0, # 'read_env' => 0, # 'subcommands' => [ # 'noop:/Perinci/Examples/Tiny/noop', # 'odd_even:/Perinci/Examples/Tiny/odd_even' # ], # 'url' => '/Perinci/Examples/Tiny/' # } # argv: [] # Script's stdout: # Script's stderr: <> ok 1 - exit_code 1..1 ok 5 - default_subcommand 2 1..5 ok 3 - subcommands action # Subtest: call action ok 1 - dummy # Subtest: embedded function+meta works # Generated CLI script at /tmp/PDrz77XBhr/cliHo8uOSqq # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'code_before_instantiate_cmdline' => ' # our %SPEC; # $SPEC{square} = {v=>1.1, args=>{num=>{schema=>\'num*\', req=>1, pos=>0}}}; # sub square { my %args=@_; [200, "OK", $args{num}**2] } # ', # 'output_file' => '/tmp/PDrz77XBhr/cliHo8uOSqq', # 'overwrite' => 1, # 'read_config' => 0, # 'read_env' => 0, # 'url' => '/main/square' # } # argv: [ # '12' # ] # Script's stdout: <144 # > # Script's stderr: <> ok 1 - exit_code ok 2 - stdout_like 1..2 ok 2 - embedded function+meta works # Subtest: extra args not allowed # Generated CLI script at /tmp/PDrz77XBhr/cliDnb2shbV # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/PDrz77XBhr/cliDnb2shbV', # 'overwrite' => 1, # 'read_config' => 0, # 'read_env' => 0, # 'url' => '/Perinci/Examples/Tiny/noop' # } # argv: [ # '1' # ] # Script's stdout: # Script's stderr: <> ok 1 - exit_code 1..1 ok 3 - extra args not allowed # Subtest: missing required args -> error # Generated CLI script at /tmp/PDrz77XBhr/cliGzQR38xx # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/PDrz77XBhr/cliGzQR38xx', # 'overwrite' => 1, # 'read_config' => 0, # 'read_env' => 0, # 'url' => '/Perinci/Examples/Tiny/odd_even' # } # argv: [] # Script's stdout: # Script's stderr: <> ok 1 - exit_code 1..1 ok 4 - missing required args -> error # Subtest: common option: --format # Generated CLI script at /tmp/PDrz77XBhr/clirjiqADv1 # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/PDrz77XBhr/clirjiqADv1', # 'overwrite' => 1, # 'read_config' => 0, # 'read_env' => 0, # 'url' => '/Perinci/Examples/Tiny/Args/as_is' # } # argv: [ # '--arg', # 'abc', # '--format', # 'json' # ] # Script's stdout: <[200,"OK","abc",{}] # > # Script's stderr: <> ok 1 - exit_code ok 2 - stdout_like 1..2 ok 5 - common option: --format # Subtest: common option: --json # Generated CLI script at /tmp/PDrz77XBhr/cli4xd9O0gE # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/PDrz77XBhr/cli4xd9O0gE', # 'overwrite' => 1, # 'read_config' => 0, # 'read_env' => 0, # 'url' => '/Perinci/Examples/Tiny/Args/as_is' # } # argv: [ # '--arg', # 'abc', # '--json' # ] # Script's stdout: <[200,"OK","abc",{}] # > # Script's stderr: <> ok 1 - exit_code ok 2 - stdout_like 1..2 ok 6 - common option: --json # Subtest: common option: --naked-res # Generated CLI script at /tmp/PDrz77XBhr/cliuxubph3q # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/PDrz77XBhr/cliuxubph3q', # 'overwrite' => 1, # 'read_config' => 0, # 'read_env' => 0, # 'url' => '/Perinci/Examples/Tiny/Args/as_is' # } # argv: [ # '--arg', # 'abc', # '--json', # '--naked-res' # ] # Script's stdout: <"abc" # > # Script's stderr: <> ok 1 - exit_code ok 2 - stdout_like 1..2 ok 7 - common option: --naked-res # Subtest: common option: --no-naked-res # Generated CLI script at /tmp/PDrz77XBhr/clijADhsFko # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/PDrz77XBhr/clijADhsFko', # 'overwrite' => 1, # 'read_config' => 0, # 'read_env' => 0, # 'url' => '/Perinci/Examples/Tiny/Args/as_is' # } # argv: [ # '--arg', # 'abc', # '--json', # '--no-naked-res' # ] # Script's stdout: <[200,"OK","abc",{}] # > # Script's stderr: <> ok 1 - exit_code ok 2 - stdout_like 1..2 ok 8 - common option: --no-naked-res # Subtest: common option: --cmd # Generated CLI script at /tmp/PDrz77XBhr/cliZu9BNXsW # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'default_subcommand' => 'noop', # 'output_file' => '/tmp/PDrz77XBhr/cliZu9BNXsW', # 'overwrite' => 1, # 'read_config' => 0, # 'read_env' => 0, # 'subcommands' => [ # 'noop:/Perinci/Examples/Tiny/noop', # 'odd_even:/Perinci/Examples/Tiny/odd_even' # ], # 'url' => '/Perinci/Examples/Tiny/' # } # argv: [ # '--cmd', # 'odd_even', # '5' # ] # Script's stdout: # Script's stderr: <> ok 1 - exit_code ok 2 - stdout_like 1..2 ok 9 - common option: --cmd # Subtest: json argument # Generated CLI script at /tmp/PDrz77XBhr/clihe1Vfc4O # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/PDrz77XBhr/clihe1Vfc4O', # 'overwrite' => 1, # 'read_config' => 0, # 'read_env' => 0, # 'url' => '/Perinci/Examples/Tiny/Args/as_is' # } # argv: [ # '--arg-json', # '["a","b"]', # '--json' # ] # Script's stdout: <[200,"OK",["a","b"],{}] # > # Script's stderr: <> ok 1 - exit_code ok 2 - stdout_like 1..2 ok 10 - json argument 1..10 ok 4 - call action # Subtest: cmdline_src (error cases) ok 1 - dummy # Subtest: unknown value # Generated CLI script at /tmp/PDrz77XBhr/cliy5jJkG2y # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/PDrz77XBhr/cliy5jJkG2y', # 'overwrite' => 1, # 'read_config' => 0, # 'read_env' => 0, # 'url' => '/Perinci/Examples/CmdLineSrc/cmdline_src_unknown' # } # argv: [] # Script's stdout: # Script's stderr: <> ok 1 - exit_code 1..1 ok 2 - unknown value # Subtest: arg type not str/array # Generated CLI script at /tmp/PDrz77XBhr/clin06eQB7F # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/PDrz77XBhr/clin06eQB7F', # 'overwrite' => 1, # 'read_config' => 0, # 'read_env' => 0, # 'url' => '/Perinci/Examples/CmdLineSrc/cmdline_src_invalid_arg_type' # } # argv: [] # Script's stdout: # Script's stderr: <> ok 1 - exit_code 1..1 ok 3 - arg type not str/array # Subtest: multiple stdin # Generated CLI script at /tmp/PDrz77XBhr/cli5X7Ny5is # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/PDrz77XBhr/cli5X7Ny5is', # 'overwrite' => 1, # 'read_config' => 0, # 'read_env' => 0, # 'url' => '/Perinci/Examples/CmdLineSrc/cmdline_src_multi_stdin' # } # argv: [ # 'a', # 'b' # ] # Script's stdout: # Script's stderr: <> ok 1 - exit_code 1..1 ok 4 - multiple stdin 1..4 ok 5 - cmdline_src (error cases) # Subtest: cmdline_src (file) ok 1 - dummy # Subtest: file 1 # Generated CLI script at /tmp/PDrz77XBhr/cliq_vFvLmY # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/PDrz77XBhr/cliq_vFvLmY', # 'overwrite' => 1, # 'read_config' => 0, # 'read_env' => 0, # 'url' => '/Perinci/Examples/CmdLineSrc/cmdline_src_file' # } # argv: [ # '--a1', # '/tmp/PDrz77XBhr/infile1' # ] # Script's stdout: # Script's stderr: <> ok 1 - exit_code ok 2 - stdout_like 1..2 ok 2 - file 1 # Subtest: file 1 (special hint arguments passed) # Generated CLI script at /tmp/PDrz77XBhr/cliJK9AL9Db # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/PDrz77XBhr/cliJK9AL9Db', # 'overwrite' => 1, # 'read_config' => 0, # 'read_env' => 0, # 'url' => '/Perinci/Examples/CmdLineSrc/cmdline_src_file' # } # argv: [ # '--json', # '--a1', # '/tmp/PDrz77XBhr/infile1' # ] # Script's stdout: <[200,"OK","a1=foo\na2=[]",{"func.args":{"-cmdline_src_a1":"file","-cmdline_srcfilenames_a1":["/tmp/PDrz77XBhr/infile1"],"a1":"foo"}}] # > # Script's stderr: <> ok 1 - exit_code ok 2 - stdout_like ok 3 - stdout_like 1..3 ok 3 - file 1 (special hint arguments passed) # Subtest: file 2 # Generated CLI script at /tmp/PDrz77XBhr/clinRYxJGZb # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/PDrz77XBhr/clinRYxJGZb', # 'overwrite' => 1, # 'read_config' => 0, # 'read_env' => 0, # 'url' => '/Perinci/Examples/CmdLineSrc/cmdline_src_file' # } # argv: [ # '--a1', # '/tmp/PDrz77XBhr/infile1', # '--a2', # '/tmp/PDrz77XBhr/infile2' # ] # Script's stdout: # Script's stderr: <> ok 1 - exit_code ok 2 - stdout_like 1..2 ok 4 - file 2 # Subtest: file 2 (special hint arguments passed) # Generated CLI script at /tmp/PDrz77XBhr/cli4juGgP3R # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/PDrz77XBhr/cli4juGgP3R', # 'overwrite' => 1, # 'read_config' => 0, # 'read_env' => 0, # 'url' => '/Perinci/Examples/CmdLineSrc/cmdline_src_file' # } # argv: [ # '--json', # '--a1', # '/tmp/PDrz77XBhr/infile1', # '--a2', # '/tmp/PDrz77XBhr/infile2' # ] # Script's stdout: <[200,"OK","a1=foo\na2=[bar\n,baz]",{"func.args":{"-cmdline_src_a1":"file","-cmdline_src_a2":"file","-cmdline_srcfilenames_a1":["/tmp/PDrz77XBhr/infile1"],"-cmdline_srcfilenames_a2":["/tmp/PDrz77XBhr/infile2"],"a1":"foo","a2":["bar\n","baz"]}}] # > # Script's stderr: <> ok 1 - exit_code ok 2 - stdout_like ok 3 - stdout_like ok 4 - stdout_like ok 5 - stdout_like 1..5 ok 5 - file 2 (special hint arguments passed) # Subtest: file not found # Generated CLI script at /tmp/PDrz77XBhr/cli1dtwg4fj # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/PDrz77XBhr/cli1dtwg4fj', # 'overwrite' => 1, # 'read_config' => 0, # 'read_env' => 0, # 'url' => '/Perinci/Examples/CmdLineSrc/cmdline_src_file' # } # argv: [ # '--a1', # '/tmp/PDrz77XBhr/infile1/x' # ] # Script's stdout: # Script's stderr: <> ok 1 - exit_code 1..1 ok 6 - file not found # Subtest: file, missing required arg # Generated CLI script at /tmp/PDrz77XBhr/clifrpkIB_0 # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/PDrz77XBhr/clifrpkIB_0', # 'overwrite' => 1, # 'read_config' => 0, # 'read_env' => 0, # 'url' => '/Perinci/Examples/CmdLineSrc/cmdline_src_file' # } # argv: [ # '--a2', # '/tmp/PDrz77XBhr/infile2' # ] # Script's stdout: # Script's stderr: <> ok 1 - exit_code 1..1 ok 7 - file, missing required arg 1..7 ok 6 - cmdline_src (file) # Subtest: cmdline_src (stdin) ok 1 - dummy # Subtest: stdin str # Generated CLI script at /tmp/PDrz77XBhr/cliHHIs3N9z # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/PDrz77XBhr/cliHHIs3N9z', # 'overwrite' => 1, # 'read_config' => 0, # 'read_env' => 0, # 'url' => '/Perinci/Examples/CmdLineSrc/cmdline_src_stdin_str' # } # argv: [] # Script's stdout: # Script's stderr: <> ok 1 - exit_code ok 2 - stdout_like 1..2 ok 2 - stdin str # Subtest: stdin str (special hint arguments passed) # Generated CLI script at /tmp/PDrz77XBhr/clixKwaJBvr # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/PDrz77XBhr/clixKwaJBvr', # 'overwrite' => 1, # 'read_config' => 0, # 'read_env' => 0, # 'url' => '/Perinci/Examples/CmdLineSrc/cmdline_src_stdin_str' # } # argv: [ # '--json' # ] # Script's stdout: <[200,"OK","a1=bar\nbaz",{"func.args":{"-cmdline_src_a1":"stdin","a1":"bar\nbaz"}}] # > # Script's stderr: <> ok 1 - exit_code ok 2 - stdout_like 1..2 ok 3 - stdin str (special hint arguments passed) # Subtest: stdin array # Generated CLI script at /tmp/PDrz77XBhr/clikOpWvMOl # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/PDrz77XBhr/clikOpWvMOl', # 'overwrite' => 1, # 'read_config' => 0, # 'read_env' => 0, # 'url' => '/Perinci/Examples/CmdLineSrc/cmdline_src_stdin_array' # } # argv: [] # Script's stdout: # Script's stderr: <> ok 1 - exit_code ok 2 - stdout_like 1..2 ok 4 - stdin array # Subtest: stdin + arg set to "-" # Generated CLI script at /tmp/PDrz77XBhr/cli0uLiLFyA # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/PDrz77XBhr/cli0uLiLFyA', # 'overwrite' => 1, # 'read_config' => 0, # 'read_env' => 0, # 'url' => '/Perinci/Examples/CmdLineSrc/cmdline_src_stdin_str' # } # argv: [ # '--a1', # '-' # ] # Script's stdout: # Script's stderr: <> ok 1 - exit_code ok 2 - stdout_like 1..2 ok 5 - stdin + arg set to "-" # Subtest: stdin + arg set to non "-" # Generated CLI script at /tmp/PDrz77XBhr/cliVM8y0pb0 # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/PDrz77XBhr/cliVM8y0pb0', # 'overwrite' => 1, # 'read_config' => 0, # 'read_env' => 0, # 'url' => '/Perinci/Examples/CmdLineSrc/cmdline_src_stdin_str' # } # argv: [ # '--a1', # 'x' # ] # Script's stdout: # Script's stderr: <> ok 1 - exit_code 1..1 ok 6 - stdin + arg set to non "-" 1..6 ok 7 - cmdline_src (stdin) # Subtest: cmdline_src (stdin_line) ok 1 - dummy # Subtest: stdin_line + from stdin # Generated CLI script at /tmp/PDrz77XBhr/cliwEEgHuhQ # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/PDrz77XBhr/cliwEEgHuhQ', # 'overwrite' => 1, # 'read_config' => 0, # 'read_env' => 0, # 'url' => '/Perinci/Examples/CmdLineSrc/cmdline_src_stdin_line' # } # argv: [ # '--a2', # 'bar' # ] # Script's stdout: # Script's stderr: <> ok 1 - exit_code ok 2 - stdout_like 1..2 ok 2 - stdin_line + from stdin # Subtest: stdin_line + from stdin (special hint arguments passed) # Generated CLI script at /tmp/PDrz77XBhr/cli1VlinUjl # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/PDrz77XBhr/cli1VlinUjl', # 'overwrite' => 1, # 'read_config' => 0, # 'read_env' => 0, # 'url' => '/Perinci/Examples/CmdLineSrc/cmdline_src_stdin_line' # } # argv: [ # '--json', # '--a2', # 'bar' # ] # Script's stdout: # Script's stderr: <> ok 1 - exit_code ok 2 - stdout_like 1..2 ok 3 - stdin_line + from stdin (special hint arguments passed) # Subtest: stdin_line + from cmdline # Generated CLI script at /tmp/PDrz77XBhr/cliqOHbA8Mf # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/PDrz77XBhr/cliqOHbA8Mf', # 'overwrite' => 1, # 'read_config' => 0, # 'read_env' => 0, # 'url' => '/Perinci/Examples/CmdLineSrc/cmdline_src_stdin_line' # } # argv: [ # '--a2', # 'bar', # '--a1', # 'qux' # ] # Script's stdout: # Script's stderr: <> ok 1 - exit_code ok 2 - stdout_like 1..2 ok 4 - stdin_line + from cmdline # Subtest: multi stdin_line # Generated CLI script at /tmp/PDrz77XBhr/cliCnI9IQU1 # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/PDrz77XBhr/cliCnI9IQU1', # 'overwrite' => 1, # 'read_config' => 0, # 'read_env' => 0, # 'url' => '/Perinci/Examples/CmdLineSrc/cmdline_src_multi_stdin_line' # } # argv: [ # '--a3', # 'baz' # ] # Script's stdout: # Script's stderr: <> ok 1 - exit_code ok 2 - stdout_like 1..2 ok 5 - multi stdin_line 1..5 ok 8 - cmdline_src (stdin_line) # Subtest: cmdline_src (stdin_or_file) ok 1 - dummy # Subtest: stdin_or_file file # Generated CLI script at /tmp/PDrz77XBhr/cli3VvX9Ko_ # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/PDrz77XBhr/cli3VvX9Ko_', # 'overwrite' => 1, # 'read_config' => 0, # 'read_env' => 0, # 'url' => '/Perinci/Examples/CmdLineSrc/cmdline_src_stdin_or_file_str' # } # argv: [ # '/tmp/PDrz77XBhr/infile1' # ] # Script's stdout: # Script's stderr: <> ok 1 - exit_code ok 2 - stdout_like 1..2 ok 2 - stdin_or_file file # Subtest: stdin_or_file file (extra argument) # Generated CLI script at /tmp/PDrz77XBhr/cli3Zcxas4H # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/PDrz77XBhr/cli3Zcxas4H', # 'overwrite' => 1, # 'read_config' => 0, # 'read_env' => 0, # 'url' => '/Perinci/Examples/CmdLineSrc/cmdline_src_stdin_or_file_str' # } # argv: [ # '/tmp/PDrz77XBhr/infile1', # '/tmp/PDrz77XBhr/infile1' # ] # Script's stdout: # Script's stderr: <> ok 1 - exit_code ok 2 - stdout_like 1..2 ok 3 - stdin_or_file file (extra argument) # Subtest: stdin_or_file file (special hint arguments passed) # Generated CLI script at /tmp/PDrz77XBhr/clicnxW2LTx # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/PDrz77XBhr/clicnxW2LTx', # 'overwrite' => 1, # 'read_config' => 0, # 'read_env' => 0, # 'url' => '/Perinci/Examples/CmdLineSrc/cmdline_src_stdin_or_file_str' # } # argv: [ # '--json', # '/tmp/PDrz77XBhr/infile1' # ] # Script's stdout: <[200,"OK","a1=foo",{"func.args":{"-cmdline_src_a1":"stdin_or_file","-cmdline_srcfilenames_a1":["/tmp/PDrz77XBhr/infile1"],"a1":"foo"}}] # > # Script's stderr: <> ok 1 - exit_code ok 2 - stdout_like ok 3 - stdout_like 1..3 ok 4 - stdin_or_file file (special hint arguments passed) # Subtest: stdin_or_files file not found # Generated CLI script at /tmp/PDrz77XBhr/cli9N_hWYiH # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/PDrz77XBhr/cli9N_hWYiH', # 'overwrite' => 1, # 'read_config' => 0, # 'read_env' => 0, # 'url' => '/Perinci/Examples/CmdLineSrc/cmdline_src_stdin_or_file_str' # } # argv: [ # '/tmp/PDrz77XBhr/infile1/x' # ] # Script's stdout: # Script's stderr: <> ok 1 - exit_code 1..1 ok 5 - stdin_or_files file not found # Subtest: stdin_or_file stdin str # Generated CLI script at /tmp/PDrz77XBhr/cliV0c67lDx # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/PDrz77XBhr/cliV0c67lDx', # 'overwrite' => 1, # 'read_config' => 0, # 'read_env' => 0, # 'url' => '/Perinci/Examples/CmdLineSrc/cmdline_src_stdin_or_file_str' # } # argv: [] # Script's stdout: # Script's stderr: <> ok 1 - exit_code ok 2 - stdout_like 1..2 ok 6 - stdin_or_file stdin str # Subtest: stdin_or_file stdin str # Generated CLI script at /tmp/PDrz77XBhr/cliE4AXXhVf # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/PDrz77XBhr/cliE4AXXhVf', # 'overwrite' => 1, # 'read_config' => 0, # 'read_env' => 0, # 'url' => '/Perinci/Examples/CmdLineSrc/cmdline_src_stdin_or_file_array' # } # argv: [] # Script's stdout: # Script's stderr: <> ok 1 - exit_code ok 2 - stdout_like 1..2 ok 7 - stdin_or_file stdin str 1..7 ok 9 - cmdline_src (stdin_or_file) # Subtest: cmdline_src (stdin_or_files) ok 1 - dummy # Subtest: stdin_or_files file # Generated CLI script at /tmp/PDrz77XBhr/clincwyz9rT # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/PDrz77XBhr/clincwyz9rT', # 'overwrite' => 1, # 'read_config' => 0, # 'read_env' => 0, # 'url' => '/Perinci/Examples/CmdLineSrc/cmdline_src_stdin_or_files_array' # } # argv: [ # '/tmp/PDrz77XBhr/infile1', # '/tmp/PDrz77XBhr/infile2' # ] # Script's stdout: # Script's stderr: <> ok 1 - exit_code ok 2 - stdout_like 1..2 ok 2 - stdin_or_files file # Subtest: stdin_or_files file (special hint arguments passed) # Generated CLI script at /tmp/PDrz77XBhr/cli3t9lMWoi # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/PDrz77XBhr/cli3t9lMWoi', # 'overwrite' => 1, # 'read_config' => 0, # 'read_env' => 0, # 'url' => '/Perinci/Examples/CmdLineSrc/cmdline_src_stdin_or_files_str' # } # argv: [ # '--json', # '/tmp/PDrz77XBhr/infile1' # ] # Script's stdout: <[200,"OK","a1=foo",{"func.args":{"-cmdline_src_a1":"stdin_or_files","-cmdline_srcfilenames_a1":["/tmp/PDrz77XBhr/infile1"],"a1":"foo"}}] # > # Script's stderr: <> ok 1 - exit_code ok 2 - stdout_like ok 3 - stdout_like 1..3 ok 3 - stdin_or_files file (special hint arguments passed) # Subtest: stdin_or_files file not found # Generated CLI script at /tmp/PDrz77XBhr/cli7svycneQ # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/PDrz77XBhr/cli7svycneQ', # 'overwrite' => 1, # 'read_config' => 0, # 'read_env' => 0, # 'url' => '/Perinci/Examples/CmdLineSrc/cmdline_src_stdin_or_files_str' # } # argv: [ # '/tmp/PDrz77XBhr/infile1/x' # ] # Script's stdout: # Script's stderr: <> ok 1 - exit_code 1..1 ok 4 - stdin_or_files file not found # Subtest: stdin_or_files stdin str # Generated CLI script at /tmp/PDrz77XBhr/clifVrd69AG # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/PDrz77XBhr/clifVrd69AG', # 'overwrite' => 1, # 'read_config' => 0, # 'read_env' => 0, # 'url' => '/Perinci/Examples/CmdLineSrc/cmdline_src_stdin_or_files_str' # } # argv: [] # Script's stdout: # Script's stderr: <> ok 1 - exit_code ok 2 - stdout_like 1..2 ok 5 - stdin_or_files stdin str # Subtest: stdin_or_files stdin str # Generated CLI script at /tmp/PDrz77XBhr/cli22_g9_GQ # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/PDrz77XBhr/cli22_g9_GQ', # 'overwrite' => 1, # 'read_config' => 0, # 'read_env' => 0, # 'url' => '/Perinci/Examples/CmdLineSrc/cmdline_src_stdin_or_files_array' # } # argv: [] # Script's stdout: # Script's stderr: <> ok 1 - exit_code ok 2 - stdout_like 1..2 ok 6 - stdin_or_files stdin str 1..6 ok 10 - cmdline_src (stdin_or_files) # Subtest: dry-run ok 1 - dummy # Subtest: dry-run (via env, 0) # Generated CLI script at /tmp/PDrz77XBhr/cliJW0n0lpb # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/PDrz77XBhr/cliJW0n0lpb', # 'overwrite' => 1, # 'read_config' => 0, # 'read_env' => 0, # 'url' => '/Perinci/Examples/test_dry_run' # } # argv: [] # Script's stdout: # Script's stderr: <> not ok 1 - exit_code not ok 2 - stdout_like 1..2 not ok 2 - dry-run (via env, 0) # Subtest: dry-run (via env, 1) # Generated CLI script at /tmp/PDrz77XBhr/cli0WcLn5em # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/PDrz77XBhr/cli0WcLn5em', # 'overwrite' => 1, # 'read_config' => 0, # 'read_env' => 0, # 'url' => '/Perinci/Examples/test_dry_run' # } # argv: [] # Script's stdout: # Script's stderr: <> not ok 1 - exit_code not ok 2 - stdout_like 1..2 not ok 3 - dry-run (via env, 1) # Subtest: dry-run (via cmdline opt) # Generated CLI script at /tmp/PDrz77XBhr/cliYQyEzn2o # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/PDrz77XBhr/cliYQyEzn2o', # 'overwrite' => 1, # 'read_config' => 0, # 'read_env' => 0, # 'url' => '/Perinci/Examples/test_dry_run' # } # argv: [ # '--dry-run' # ] # Script's stdout: # Script's stderr: <> not ok 1 - exit_code not ok 2 - stdout_like 1..2 not ok 4 - dry-run (via cmdline opt) 1..4 not ok 11 - dry-run # Subtest: tx ok 1 - dummy # Subtest: dry_run (using tx) (w/o) 1..0 # SKIP Has one of the exclude_tag: tx ok 2 # skip Has one of the exclude_tag: tx # Subtest: dry_run (using tx) (w/) 1..0 # SKIP Has one of the exclude_tag: tx ok 3 # skip Has one of the exclude_tag: tx 1..3 ok 12 - tx # Subtest: streaming ok 1 - dummy # Subtest: stream input (simple types) # Generated CLI script at /tmp/PDrz77XBhr/cliCAuhDMsq # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/PDrz77XBhr/cliCAuhDMsq', # 'overwrite' => 1, # 'read_config' => 0, # 'read_env' => 0, # 'url' => '/Perinci/Examples/Stream/wc' # } # argv: [ # '/tmp/PDrz77XBhr/infile1' # ] # Script's stdout: # Script's stderr: <> ok 1 - exit_code ok 2 - stdout_like 1..2 ok 2 - stream input (simple types) # Subtest: stream input (json stream) # Generated CLI script at /tmp/PDrz77XBhr/clitAaLWOsr # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/PDrz77XBhr/clitAaLWOsr', # 'overwrite' => 1, # 'read_config' => 0, # 'read_env' => 0, # 'url' => '/Perinci/Examples/Stream/wc_keys' # } # argv: [ # '/tmp/PDrz77XBhr/infile2' # ] # Script's stdout: # Script's stderr: <> ok 1 - exit_code ok 2 - stdout_like 1..2 ok 3 - stream input (json stream) # Subtest: stream input (json stream, error in record) # Generated CLI script at /tmp/PDrz77XBhr/cliMI7LuZGM # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/PDrz77XBhr/cliMI7LuZGM', # 'overwrite' => 1, # 'read_config' => 0, # 'read_env' => 0, # 'url' => '/Perinci/Examples/Stream/wc_keys' # } # argv: [ # '/tmp/PDrz77XBhr/infile3' # ] # Script's stdout: line 2. # > # Script's stderr: <> ok 1 - exit_code 1..1 ok 4 - stream input (json stream, error in record) # Subtest: stream output (simple types) # Generated CLI script at /tmp/PDrz77XBhr/cliPBdxdO5a # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/PDrz77XBhr/cliPBdxdO5a', # 'overwrite' => 1, # 'read_config' => 0, # 'read_env' => 0, # 'url' => '/Perinci/Examples/Stream/square_input' # } # argv: [ # '/tmp/PDrz77XBhr/infile4' # ] # Script's stdout: <1 # 9 # 25 # > # Script's stderr: <> ok 1 - exit_code ok 2 - stdout_like 1..2 ok 5 - stream output (simple types) # Subtest: stream output (json stream) # Generated CLI script at /tmp/PDrz77XBhr/cliQaFDOjym # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/PDrz77XBhr/cliQaFDOjym', # 'overwrite' => 1, # 'read_config' => 0, # 'read_env' => 0, # 'url' => '/Perinci/Examples/Stream/hash_stream' # } # argv: [ # '-n', # '3' # ] # Script's stdout: <{"num":1} # {"num":2} # {"num":3} # > # Script's stderr: <> ok 1 - exit_code ok 2 - stdout_like 1..2 ok 6 - stream output (json stream) 1..6 ok 13 - streaming # Subtest: result metadata ok 1 - dummy # Subtest: cmdline.exit_code # Generated CLI script at /tmp/PDrz77XBhr/cli_8du0cKB # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/PDrz77XBhr/cli_8du0cKB', # 'overwrite' => 1, # 'read_config' => 0, # 'read_env' => 0, # 'url' => '/Perinci/Examples/CmdLineResMeta/exit_code' # } # argv: [] # Script's stdout: <> # Script's stderr: <> ok 1 - exit_code 1..1 ok 2 - cmdline.exit_code # Subtest: cmdline.result # Generated CLI script at /tmp/PDrz77XBhr/cliYtZbxfmS # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/PDrz77XBhr/cliYtZbxfmS', # 'overwrite' => 1, # 'read_config' => 0, # 'read_env' => 0, # 'url' => '/Perinci/Examples/CmdLineResMeta/result' # } # argv: [] # Script's stdout: # Script's stderr: <> ok 1 - exit_code ok 2 - stdout_like 1..2 ok 3 - cmdline.result # Subtest: cmdline.default_format # Generated CLI script at /tmp/PDrz77XBhr/cli5P80V2vs # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/PDrz77XBhr/cli5P80V2vs', # 'overwrite' => 1, # 'read_config' => 0, # 'read_env' => 0, # 'url' => '/Perinci/Examples/CmdLineResMeta/default_format' # } # argv: [] # Script's stdout: <[200,"OK",null,{"cmdline.default_format":"json"}] # > # Script's stderr: <> ok 1 - exit_code ok 2 - stdout_like 1..2 ok 4 - cmdline.default_format # Subtest: cmdline.default_format (overriden by cmdline opt) # Generated CLI script at /tmp/PDrz77XBhr/clitSYpJ1Df # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/PDrz77XBhr/clitSYpJ1Df', # 'overwrite' => 1, # 'read_config' => 0, # 'read_env' => 0, # 'url' => '/Perinci/Examples/CmdLineResMeta/default_format' # } # argv: [ # '--format', # 'text' # ] # Script's stdout: <> # Script's stderr: <> ok 1 - exit_code ok 2 - stdout_like 1..2 ok 5 - cmdline.default_format (overriden by cmdline opt) # Subtest: cmdline.skip_format # Generated CLI script at /tmp/PDrz77XBhr/clixJI8fTgt # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/PDrz77XBhr/clixJI8fTgt', # 'overwrite' => 1, # 'read_config' => 0, # 'read_env' => 0, # 'url' => '/Perinci/Examples/CmdLineResMeta/skip_format' # } # argv: [] # Script's stdout: # Script's stderr: <> ok 1 - exit_code ok 2 - stdout_like 1..2 ok 6 - cmdline.skip_format 1..6 ok 14 - result metadata # Subtest: completion ok 1 - dummy # Subtest: self-completion works # Generated CLI script at /tmp/PDrz77XBhr/cli9KGE0wqR # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/PDrz77XBhr/cli9KGE0wqR', # 'overwrite' => 1, # 'read_config' => 0, # 'read_env' => 0, # 'url' => '/Perinci/Examples/Tiny/odd_even' # } # argv: [] # Script's stdout: <> # Script's stderr: <"gen_modified_sub" is not exported by the Perinci::Sub::Util module # Can't continue after import errors at /export/home/fly1432/var/megalib/Perinci/Sub/Complete.pm line 13. # BEGIN failed--compilation aborted at /export/home/fly1432/var/megalib/Perinci/Sub/Complete.pm line 13. # Compilation failed in require at /data1/fly1432-var/cpan/build/Perinci-CmdLine-Lite-1.34-IZ4tX1/blib/lib/Perinci/CmdLine/Base.pm line 528. # > not ok 1 - exit_code not ok 2 - answer 1..2 not ok 2 - self-completion works # Subtest: completion of subcommand name # Generated CLI script at /tmp/PDrz77XBhr/cliUN4qlcg5 # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/PDrz77XBhr/cliUN4qlcg5', # 'overwrite' => 1, # 'read_config' => 0, # 'read_env' => 0, # 'subcommands' => [ # 'sc1:/Perinci/Examples/Tiny/noop', # 'sc2:/Perinci/Examples/Tiny/odd_even' # ], # 'url' => '/Perinci/Examples/Tiny/' # } # argv: [] # Script's stdout: <> # Script's stderr: <"gen_modified_sub" is not exported by the Perinci::Sub::Util module # Can't continue after import errors at /export/home/fly1432/var/megalib/Perinci/Sub/Complete.pm line 13. # BEGIN failed--compilation aborted at /export/home/fly1432/var/megalib/Perinci/Sub/Complete.pm line 13. # Compilation failed in require at /data1/fly1432-var/cpan/build/Perinci-CmdLine-Lite-1.34-IZ4tX1/blib/lib/Perinci/CmdLine/Base.pm line 528. # > not ok 1 - exit_code not ok 2 - answer 1..2 not ok 3 - completion of subcommand name # Subtest: completion of subcommand option # Generated CLI script at /tmp/PDrz77XBhr/cliljIUHSTf # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/PDrz77XBhr/cliljIUHSTf', # 'overwrite' => 1, # 'read_config' => 0, # 'read_env' => 0, # 'subcommands' => [ # 'sc1:/Perinci/Examples/Tiny/noop', # 'sc2:/Perinci/Examples/Tiny/odd_even' # ], # 'url' => '/Perinci/Examples/Tiny/' # } # argv: [] # Script's stdout: <> # Script's stderr: <"gen_modified_sub" is not exported by the Perinci::Sub::Util module # Can't continue after import errors at /export/home/fly1432/var/megalib/Perinci/Sub/Complete.pm line 13. # BEGIN failed--compilation aborted at /export/home/fly1432/var/megalib/Perinci/Sub/Complete.pm line 13. # Compilation failed in require at /data1/fly1432-var/cpan/build/Perinci-CmdLine-Lite-1.34-IZ4tX1/blib/lib/Perinci/CmdLine/Base.pm line 528. # > not ok 1 - exit_code not ok 2 - answer 1..2 not ok 4 - completion of subcommand option 1..4 not ok 15 - completion # Subtest: env ok 1 - dummy # Subtest: env read # Generated CLI script at /tmp/PDrz77XBhr/cliX3Y2hSyX # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/PDrz77XBhr/cliX3Y2hSyX', # 'overwrite' => 1, # 'read_config' => 0, # 'read_env' => 1, # 'script_name' => 'sum-nums', # 'url' => '/Perinci/Examples/sum' # } # argv: [ # '3' # ] # Script's stdout: # Script's stderr: <> not ok 1 - exit_code not ok 2 - stdout_like 1..2 not ok 2 - env read # Subtest: turned off via --no-env # Generated CLI script at /tmp/PDrz77XBhr/cliNdczkiiJ # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/PDrz77XBhr/cliNdczkiiJ', # 'overwrite' => 1, # 'read_config' => 0, # 'read_env' => 1, # 'script_name' => 'sum-nums', # 'url' => '/Perinci/Examples/sum' # } # argv: [ # '--no-env', # '3' # ] # Script's stdout: # Script's stderr: <> not ok 1 - exit_code not ok 2 - stdout_like 1..2 not ok 3 - turned off via --no-env # Subtest: attr:env_name # Generated CLI script at /tmp/PDrz77XBhr/cliI8r0mgUD # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'env_name' => 'foo_opt', # 'output_file' => '/tmp/PDrz77XBhr/cliI8r0mgUD', # 'overwrite' => 1, # 'read_config' => 0, # 'read_env' => 1, # 'script_name' => 'sum-nums', # 'url' => '/Perinci/Examples/sum' # } # argv: [ # '3' # ] # Script's stdout: # Script's stderr: <> not ok 1 - exit_code not ok 2 - stdout_like 1..2 not ok 4 - attr:env_name 1..4 not ok 16 - env # Subtest: config file ok 1 - dummy # Subtest: attr:config_dirs # Generated CLI script at /tmp/PDrz77XBhr/cliqAvyzWzL # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'config_dirs' => [ # '/tmp/PDrz77XBhr' # ], # 'output_file' => '/tmp/PDrz77XBhr/cliqAvyzWzL', # 'overwrite' => 1, # 'read_config' => 1, # 'read_env' => 0, # 'script_name' => 'prog', # 'url' => '/Perinci/Examples/noop2' # } # argv: [] # Script's stdout: # Script's stderr: <> not ok 1 - exit_code not ok 2 - stdout_like 1..2 not ok 2 - attr:config_dirs # Subtest: attr:config_filename # Generated CLI script at /tmp/PDrz77XBhr/clifOMY5RxK # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'config_dirs' => [ # '/tmp/PDrz77XBhr' # ], # 'config_filename' => 'prog2.conf', # 'output_file' => '/tmp/PDrz77XBhr/clifOMY5RxK', # 'overwrite' => 1, # 'read_config' => 1, # 'read_env' => 0, # 'script_name' => 'prog', # 'url' => '/Perinci/Examples/noop2' # } # argv: [] # Script's stdout: # Script's stderr: <> not ok 1 - exit_code not ok 2 - stdout_like 1..2 not ok 3 - attr:config_filename # Subtest: common option: --no-config # Generated CLI script at /tmp/PDrz77XBhr/cligEQuvC0o # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'config_dirs' => [ # '/tmp/PDrz77XBhr' # ], # 'output_file' => '/tmp/PDrz77XBhr/cligEQuvC0o', # 'overwrite' => 1, # 'read_config' => 1, # 'read_env' => 0, # 'script_name' => 'prog', # 'url' => '/Perinci/Examples/noop2' # } # argv: [ # '--no-config' # ] # Script's stdout: # Script's stderr: <> not ok 1 - exit_code not ok 2 - stdout_like 1..2 not ok 4 - common option: --no-config # Subtest: common option: --config-path # Generated CLI script at /tmp/PDrz77XBhr/cliFK5a1c65 # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/PDrz77XBhr/cliFK5a1c65', # 'overwrite' => 1, # 'read_config' => 1, # 'read_env' => 0, # 'script_name' => 'prog', # 'url' => '/Perinci/Examples/noop2' # } # argv: [ # '--config-path', # '/tmp/PDrz77XBhr/prog.conf' # ] # Script's stdout: # Script's stderr: <> not ok 1 - exit_code not ok 2 - stdout_like 1..2 not ok 5 - common option: --config-path # Subtest: common option: --config-profile # Generated CLI script at /tmp/PDrz77XBhr/cliMU7szSJH # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'config_dirs' => [ # '/tmp/PDrz77XBhr' # ], # 'output_file' => '/tmp/PDrz77XBhr/cliMU7szSJH', # 'overwrite' => 1, # 'read_config' => 1, # 'read_env' => 0, # 'script_name' => 'prog', # 'url' => '/Perinci/Examples/noop2' # } # argv: [ # '--config-profile=profile1' # ] # Script's stdout: # Script's stderr: <> not ok 1 - exit_code not ok 2 - stdout_like 1..2 not ok 6 - common option: --config-profile # Subtest: unknown config profile -> error # Generated CLI script at /tmp/PDrz77XBhr/clihwpECSo_ # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'config_dirs' => [ # '/tmp/PDrz77XBhr' # ], # 'output_file' => '/tmp/PDrz77XBhr/clihwpECSo_', # 'overwrite' => 1, # 'read_config' => 1, # 'read_env' => 0, # 'script_name' => 'prog', # 'url' => '/Perinci/Examples/noop2' # } # argv: [ # '--config-profile=foo' # ] # Script's stdout: # Script's stderr: <> not ok 1 - exit_code 1..1 not ok 7 - unknown config profile -> error # Subtest: unknown config profile but does not read config -> ok # Generated CLI script at /tmp/PDrz77XBhr/cliJst9jeQU # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'config_dirs' => [ # '/tmp/PDrz77XBhr' # ], # 'output_file' => '/tmp/PDrz77XBhr/cliJst9jeQU', # 'overwrite' => 1, # 'read_config' => 1, # 'read_env' => 0, # 'script_name' => 'foo', # 'url' => '/Perinci/Examples/noop2' # } # argv: [ # '--config-profile=bar' # ] # Script's stdout: # Script's stderr: <> not ok 1 - exit_code not ok 2 - stdout_like 1..2 not ok 8 - unknown config profile but does not read config -> ok # Subtest: subcommand # Generated CLI script at /tmp/PDrz77XBhr/cliQy42s_7e # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'config_dirs' => [ # '/tmp/PDrz77XBhr' # ], # 'output_file' => '/tmp/PDrz77XBhr/cliQy42s_7e', # 'overwrite' => 1, # 'read_config' => 1, # 'read_env' => 0, # 'script_name' => 'prog', # 'subcommands' => [ # 'subcommand1:/Perinci/Examples/noop2' # ], # 'url' => '/Perinci/Examples/' # } # argv: [ # 'subcommand1' # ] # Script's stdout: # Script's stderr: <> not ok 1 - exit_code not ok 2 - stdout_like 1..2 not ok 9 - subcommand # Subtest: subcommand + --config-profile # Generated CLI script at /tmp/PDrz77XBhr/cliU17Dw3Yx # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'config_dirs' => [ # '/tmp/PDrz77XBhr' # ], # 'output_file' => '/tmp/PDrz77XBhr/cliU17Dw3Yx', # 'overwrite' => 1, # 'read_config' => 1, # 'read_env' => 0, # 'script_name' => 'prog', # 'subcommands' => [ # 'subcommand1:/Perinci/Examples/noop2' # ], # 'url' => '/Perinci/Examples/' # } # argv: [ # '--config-profile=profile1', # 'subcommand1' # ] # Script's stdout: # Script's stderr: <> not ok 1 - exit_code not ok 2 - stdout_like 1..2 not ok 10 - subcommand + --config-profile # Subtest: array-ify if argument is array # Generated CLI script at /tmp/PDrz77XBhr/clinGv7PufY # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'config_dirs' => [ # '/tmp/PDrz77XBhr' # ], # 'output_file' => '/tmp/PDrz77XBhr/clinGv7PufY', # 'overwrite' => 1, # 'read_config' => 1, # 'read_env' => 0, # 'script_name' => 'sum', # 'url' => '/Perinci/Examples/sum' # } # argv: [] # Script's stdout: # Script's stderr: <> not ok 1 - exit_code not ok 2 - stdout_like 1..2 not ok 11 - array-ify if argument is array # Subtest: can also set common option # Generated CLI script at /tmp/PDrz77XBhr/cliHJhADk6g # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'config_dirs' => [ # '/tmp/PDrz77XBhr' # ], # 'output_file' => '/tmp/PDrz77XBhr/cliHJhADk6g', # 'overwrite' => 1, # 'read_config' => 1, # 'read_env' => 0, # 'script_name' => 'prog3', # 'url' => '/Perinci/Examples/noop2' # } # argv: [] # Script's stdout: # Script's stderr: <> not ok 1 - exit_code not ok 2 - stdout_like 1..2 not ok 12 - can also set common option 1..12 not ok 17 - config file 1..17 Dubious, test returned 4 (wstat 1024, 0x400) Failed 4/17 subtests Test Summary Report ------------------- t/suite.t (Wstat: 1024 Tests: 17 Failed: 4) Failed tests: 11, 15-17 Non-zero exit status: 4 Files=5, Tests=20, 35 wallclock secs ( 0.39 usr 0.07 sys + 29.31 cusr 4.46 csys = 34.23 CPU) Result: FAIL Failed 1/5 test programs. 4/20 subtests failed. make: *** [test_dynamic] Error 4 PERLANCAR/Perinci-CmdLine-Lite-1.34.tar.gz make test TEST_VERBOSE=1 -- NOT OK //hint// to see the cpan-testers results for installing this module, try: reports PERLANCAR/Perinci-CmdLine-Lite-1.34.tar.gz Finished 2015-09-30T02:32:26