PATH=/usr/bin:/bin:/home/fly1400/cpanfly-5.14/var/megalib/bin Start 2016-02-15T12:14:37 ActivePerl-1400 CPAN-2.10 Reading '/home/fly1400/cpanfly-5.14/var/cpan/Metadata' Database was generated on Mon, 15 Feb 2016 06:54:03 GMT Checksum for /home/fly1400/cpanfly-5.14/var/cpan/sources/authors/id/P/PE/PERLANCAR/App-depak-0.51.tar.gz ok App-depak-0.51/ App-depak-0.51/bin/ App-depak-0.51/bin/depak App-depak-0.51/META.json App-depak-0.51/LICENSE App-depak-0.51/Changes App-depak-0.51/META.yml App-depak-0.51/Makefile.PL App-depak-0.51/t/ App-depak-0.51/t/release-pod-syntax.t App-depak-0.51/t/release-pod-coverage.t App-depak-0.51/t/release-rinci.t App-depak-0.51/t/00-compile.t App-depak-0.51/README App-depak-0.51/dist.ini App-depak-0.51/lib/ App-depak-0.51/lib/Perinci/ App-depak-0.51/lib/Perinci/CmdLine/ App-depak-0.51/lib/Perinci/CmdLine/depak.pm App-depak-0.51/lib/App/ App-depak-0.51/lib/App/depak.pm App-depak-0.51/MANIFEST App-depak-0.51/weaver.ini Configuring P/PE/PERLANCAR/App-depak-0.51.tar.gz with Makefile.PL >>> /home/fly1400/ap1400/bin/perl-static Makefile.PL Warning: prerequisite App::lcpan 0.18 not found. Warning: prerequisite App::tracepm 0.17 not found. Warning: prerequisite Perinci::CmdLine::Lite 0.49 not found. We have 0.02. Checking if your kit is complete... Looks good Have /home/fly1400/cpanfly-5.14/var/megalib Want /home/fly1400/ap1400/lib Your perl and your Config.pm seem to have different ideas about the architecture they are running on. Perl thinks: [megalib] Config says: [x86_64-linux-thread-multi] This may or may not cause problems. Please check your installation of perl if you have problems building this extension. Generating a Unix-style Makefile Writing Makefile for App::depak Modifying Makefile to generate shell completion on install PERLANCAR/App-depak-0.51.tar.gz /home/fly1400/ap1400/bin/perl-static Makefile.PL -- OK Running make for P/PE/PERLANCAR/App-depak-0.51.tar.gz ---- Unsatisfied dependencies detected during ---- ---- PERLANCAR/App-depak-0.51.tar.gz ---- Perinci::CmdLine::Lite [requires] App::tracepm [requires] App::lcpan [requires] Running test for module 'Perinci::CmdLine::Lite' Checksum for /home/fly1400/cpanfly-5.14/var/cpan/sources/authors/id/P/PE/PERLANCAR/Perinci-CmdLine-Lite-1.50.tar.gz ok Perinci-CmdLine-Lite-1.50/ Perinci-CmdLine-Lite-1.50/README Perinci-CmdLine-Lite-1.50/lib/ Perinci-CmdLine-Lite-1.50/lib/Perinci/ Perinci-CmdLine-Lite-1.50/lib/Perinci/CmdLine/ Perinci-CmdLine-Lite-1.50/lib/Perinci/CmdLine/Lite.pm Perinci-CmdLine-Lite-1.50/lib/Perinci/CmdLine/Base.pm Perinci-CmdLine-Lite-1.50/lib/Perinci/CmdLine/Util/ Perinci-CmdLine-Lite-1.50/lib/Perinci/CmdLine/Util/Config.pm Perinci-CmdLine-Lite-1.50/Makefile.PL Perinci-CmdLine-Lite-1.50/share/ Perinci-CmdLine-Lite-1.50/share/templates/ Perinci-CmdLine-Lite-1.50/share/templates/description.txt Perinci-CmdLine-Lite-1.50/share/templates/synopsis.txt Perinci-CmdLine-Lite-1.50/Changes Perinci-CmdLine-Lite-1.50/dist.ini Perinci-CmdLine-Lite-1.50/LICENSE Perinci-CmdLine-Lite-1.50/t/ Perinci-CmdLine-Lite-1.50/t/00-compile.t Perinci-CmdLine-Lite-1.50/t/suite.t Perinci-CmdLine-Lite-1.50/t/release-rinci.t Perinci-CmdLine-Lite-1.50/t/author-pod-syntax.t Perinci-CmdLine-Lite-1.50/t/author-pod-coverage.t Perinci-CmdLine-Lite-1.50/weaver.ini Perinci-CmdLine-Lite-1.50/MANIFEST Perinci-CmdLine-Lite-1.50/META.json Perinci-CmdLine-Lite-1.50/META.yml Perinci-CmdLine-Lite-1.50/devscripts/ Perinci-CmdLine-Lite-1.50/devscripts/bench-startup Configuring P/PE/PERLANCAR/Perinci-CmdLine-Lite-1.50.tar.gz with Makefile.PL >>> /home/fly1400/ap1400/bin/perl-static Makefile.PL Warning: prerequisite Progress::Any::Output::TermProgressBarColor 0.17 not found. We have 0.10. Checking if your kit is complete... Looks good Have /home/fly1400/cpanfly-5.14/var/megalib Want /home/fly1400/ap1400/lib Your perl and your Config.pm seem to have different ideas about the architecture they are running on. Perl thinks: [megalib] Config says: [x86_64-linux-thread-multi] This may or may not cause problems. Please check your installation of perl if you have problems building this extension. Generating a Unix-style Makefile Writing Makefile for Perinci::CmdLine::Lite PERLANCAR/Perinci-CmdLine-Lite-1.50.tar.gz /home/fly1400/ap1400/bin/perl-static Makefile.PL -- OK Running make for P/PE/PERLANCAR/Perinci-CmdLine-Lite-1.50.tar.gz ---- Unsatisfied dependencies detected during ---- ---- PERLANCAR/Perinci-CmdLine-Lite-1.50.tar.gz ---- Progress::Any::Output::TermProgressBarColor [requires] Running test for module 'Progress::Any::Output::TermProgressBarColor' Checksum for /home/fly1400/cpanfly-5.14/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 Configuring P/PE/PERLANCAR/Progress-Any-Output-TermProgressBarColor-0.21.tar.gz with Makefile.PL >>> /home/fly1400/ap1400/bin/perl-static Makefile.PL Checking if your kit is complete... Looks good Have /home/fly1400/cpanfly-5.14/var/megalib Want /home/fly1400/ap1400/lib Your perl and your Config.pm seem to have different ideas about the architecture they are running on. Perl thinks: [megalib] Config says: [x86_64-linux-thread-multi] This may or may not cause problems. Please check your installation of perl if you have problems building this extension. Generating a Unix-style Makefile Writing Makefile for Progress::Any::Output::TermProgressBarColor PERLANCAR/Progress-Any-Output-TermProgressBarColor-0.21.tar.gz /home/fly1400/ap1400/bin/perl-static Makefile.PL -- OK Running make for P/PE/PERLANCAR/Progress-Any-Output-TermProgressBarColor-0.21.tar.gz >>> 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 Running make test >>> make test TEST_VERBOSE=1 PERL_DL_NONLAZY=1 "/home/fly1400/ap1400/bin/perl-static" "-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 /home/fly1400/cpanfly-5.14/var/megalib/Color/ANSI/Util.pm line 281. # Use of uninitialized value $cd in numeric ge (>=) at /home/fly1400/cpanfly-5.14/var/megalib/Color/ANSI/Util.pm line 283. # Use of uninitialized value $cd in numeric ge (>=) at /home/fly1400/cpanfly-5.14/var/megalib/Color/ANSI/Util.pm line 281. # Use of uninitialized value $cd in numeric ge (>=) at /home/fly1400/cpanfly-5.14/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, 0 wallclock secs ( 0.04 usr 0.01 sys + 0.27 cusr 0.03 csys = 0.35 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 PERLANCAR/Perinci-CmdLine-Lite-1.50.tar.gz Has already been unwrapped into directory /home/fly1400/cpanfly-5.14/var/cpan/build/Perinci-CmdLine-Lite-1.50-gDWXbg PERLANCAR/Perinci-CmdLine-Lite-1.50.tar.gz Has already been prepared Running make for P/PE/PERLANCAR/Perinci-CmdLine-Lite-1.50.tar.gz Warning: Prerequisite 'Progress::Any::Output::TermProgressBarColor => 0.17' for 'PERLANCAR/Perinci-CmdLine-Lite-1.50.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.50.tar.gz make -- OK 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 "/home/fly1400/ap1400/bin/perl-static" "-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/author-pod-coverage.t .. skipped: these tests are for testing by the author t/author-pod-syntax.t .... skipped: these tests are for testing by the author t/release-rinci.t ........ skipped: these tests are for release candidate testing # Failed test 'exit_code' # at /home/fly1400/cpanfly-5.14/var/megalib/Test/Perinci/CmdLine.pm line 179. # got: '200' # expected: '0' # Script's stdout: # Script's stderr: <> # Failed test 'stdout_like' # at /home/fly1400/cpanfly-5.14/var/megalib/Test/Perinci/CmdLine.pm line 192. # 'cli3Znd4_ru: 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 /home/fly1400/cpanfly-5.14/var/megalib/Perinci/Examples.pm line 13. # BEGIN failed--compilation aborted at /home/fly1400/cpanfly-5.14/var/megalib/Perinci/Examples.pm line 13. # Compilation failed in require at /home/fly1400/cpanfly-5.14/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 /home/fly1400/cpanfly-5.14/var/megalib/Test/Perinci/CmdLine.pm line 225. # Failed test 'exit_code' # at /home/fly1400/cpanfly-5.14/var/megalib/Test/Perinci/CmdLine.pm line 179. # got: '200' # expected: '0' # Script's stdout: # Script's stderr: <> # Failed test 'stdout_like' # at /home/fly1400/cpanfly-5.14/var/megalib/Test/Perinci/CmdLine.pm line 192. # 'clisOv8ob40: 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 /home/fly1400/cpanfly-5.14/var/megalib/Perinci/Examples.pm line 13. # BEGIN failed--compilation aborted at /home/fly1400/cpanfly-5.14/var/megalib/Perinci/Examples.pm line 13. # Compilation failed in require at /home/fly1400/cpanfly-5.14/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 /home/fly1400/cpanfly-5.14/var/megalib/Test/Perinci/CmdLine.pm line 225. # Failed test 'exit_code' # at /home/fly1400/cpanfly-5.14/var/megalib/Test/Perinci/CmdLine.pm line 179. # got: '200' # expected: '0' # Script's stdout: # Script's stderr: <> # Failed test 'stdout_like' # at /home/fly1400/cpanfly-5.14/var/megalib/Test/Perinci/CmdLine.pm line 192. # 'cli0iN54aWz: 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 /home/fly1400/cpanfly-5.14/var/megalib/Perinci/Examples.pm line 13. # BEGIN failed--compilation aborted at /home/fly1400/cpanfly-5.14/var/megalib/Perinci/Examples.pm line 13. # Compilation failed in require at /home/fly1400/cpanfly-5.14/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 /home/fly1400/cpanfly-5.14/var/megalib/Test/Perinci/CmdLine.pm line 225. # Looks like you failed 3 tests of 4. # Failed test 'dry-run' # at /home/fly1400/cpanfly-5.14/var/megalib/Test/Perinci/CmdLine.pm line 292. # Failed test 'exit_code' # at /home/fly1400/cpanfly-5.14/var/megalib/Test/Perinci/CmdLine.pm line 179. # 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 /home/fly1400/cpanfly-5.14/var/megalib/Perinci/Sub/Complete.pm line 13. # BEGIN failed--compilation aborted at /home/fly1400/cpanfly-5.14/var/megalib/Perinci/Sub/Complete.pm line 13. # Compilation failed in require at /data/fly1400/cpan/build/Perinci-CmdLine-Lite-1.50-gDWXbg/blib/lib/Perinci/CmdLine/Base.pm line 543. # > # Failed test 'answer' # at /home/fly1400/cpanfly-5.14/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 /home/fly1400/cpanfly-5.14/var/megalib/Test/Perinci/CmdLine.pm line 225. # Failed test 'exit_code' # at /home/fly1400/cpanfly-5.14/var/megalib/Test/Perinci/CmdLine.pm line 179. # 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 /home/fly1400/cpanfly-5.14/var/megalib/Perinci/Sub/Complete.pm line 13. # BEGIN failed--compilation aborted at /home/fly1400/cpanfly-5.14/var/megalib/Perinci/Sub/Complete.pm line 13. # Compilation failed in require at /data/fly1400/cpan/build/Perinci-CmdLine-Lite-1.50-gDWXbg/blib/lib/Perinci/CmdLine/Base.pm line 543. # > # Failed test 'answer' # at /home/fly1400/cpanfly-5.14/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 /home/fly1400/cpanfly-5.14/var/megalib/Test/Perinci/CmdLine.pm line 225. # Failed test 'exit_code' # at /home/fly1400/cpanfly-5.14/var/megalib/Test/Perinci/CmdLine.pm line 179. # 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 /home/fly1400/cpanfly-5.14/var/megalib/Perinci/Sub/Complete.pm line 13. # BEGIN failed--compilation aborted at /home/fly1400/cpanfly-5.14/var/megalib/Perinci/Sub/Complete.pm line 13. # Compilation failed in require at /data/fly1400/cpan/build/Perinci-CmdLine-Lite-1.50-gDWXbg/blib/lib/Perinci/CmdLine/Base.pm line 543. # > # Failed test 'answer' # at /home/fly1400/cpanfly-5.14/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 /home/fly1400/cpanfly-5.14/var/megalib/Test/Perinci/CmdLine.pm line 225. # Looks like you failed 3 tests of 4. # Failed test 'completion' # at /home/fly1400/cpanfly-5.14/var/megalib/Test/Perinci/CmdLine.pm line 292. # Failed test 'exit_code' # at /home/fly1400/cpanfly-5.14/var/megalib/Test/Perinci/CmdLine.pm line 179. # got: '200' # expected: '0' # Script's stdout: # Script's stderr: <> # Failed test 'stdout_like' # at /home/fly1400/cpanfly-5.14/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 /home/fly1400/cpanfly-5.14/var/megalib/Perinci/Examples.pm line 13. # BEGIN failed--compilation aborted at /home/fly1400/cpanfly-5.14/var/megalib/Perinci/Examples.pm line 13. # Compilation failed in require at /home/fly1400/cpanfly-5.14/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 /home/fly1400/cpanfly-5.14/var/megalib/Test/Perinci/CmdLine.pm line 225. # Failed test 'exit_code' # at /home/fly1400/cpanfly-5.14/var/megalib/Test/Perinci/CmdLine.pm line 179. # got: '200' # expected: '0' # Script's stdout: # Script's stderr: <> # Failed test 'stdout_like' # at /home/fly1400/cpanfly-5.14/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 /home/fly1400/cpanfly-5.14/var/megalib/Perinci/Examples.pm line 13. # BEGIN failed--compilation aborted at /home/fly1400/cpanfly-5.14/var/megalib/Perinci/Examples.pm line 13. # Compilation failed in require at /home/fly1400/cpanfly-5.14/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 /home/fly1400/cpanfly-5.14/var/megalib/Test/Perinci/CmdLine.pm line 225. # Failed test 'exit_code' # at /home/fly1400/cpanfly-5.14/var/megalib/Test/Perinci/CmdLine.pm line 179. # got: '200' # expected: '0' # Script's stdout: # Script's stderr: <> # Failed test 'stdout_like' # at /home/fly1400/cpanfly-5.14/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 /home/fly1400/cpanfly-5.14/var/megalib/Perinci/Examples.pm line 13. # BEGIN failed--compilation aborted at /home/fly1400/cpanfly-5.14/var/megalib/Perinci/Examples.pm line 13. # Compilation failed in require at /home/fly1400/cpanfly-5.14/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 /home/fly1400/cpanfly-5.14/var/megalib/Test/Perinci/CmdLine.pm line 225. # Looks like you failed 3 tests of 4. # Failed test 'env' # at /home/fly1400/cpanfly-5.14/var/megalib/Test/Perinci/CmdLine.pm line 292. # Failed test 'exit_code' # at /home/fly1400/cpanfly-5.14/var/megalib/Test/Perinci/CmdLine.pm line 179. # got: '200' # expected: '0' # Script's stdout: # Script's stderr: <> # Failed test 'stdout_like' # at /home/fly1400/cpanfly-5.14/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 /home/fly1400/cpanfly-5.14/var/megalib/Perinci/Examples.pm line 13. # BEGIN failed--compilation aborted at /home/fly1400/cpanfly-5.14/var/megalib/Perinci/Examples.pm line 13. # Compilation failed in require at /home/fly1400/cpanfly-5.14/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 /home/fly1400/cpanfly-5.14/var/megalib/Test/Perinci/CmdLine.pm line 225. # Failed test 'exit_code' # at /home/fly1400/cpanfly-5.14/var/megalib/Test/Perinci/CmdLine.pm line 179. # got: '200' # expected: '0' # Script's stdout: # Script's stderr: <> # Failed test 'stdout_like' # at /home/fly1400/cpanfly-5.14/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 /home/fly1400/cpanfly-5.14/var/megalib/Perinci/Examples.pm line 13. # BEGIN failed--compilation aborted at /home/fly1400/cpanfly-5.14/var/megalib/Perinci/Examples.pm line 13. # Compilation failed in require at /home/fly1400/cpanfly-5.14/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 /home/fly1400/cpanfly-5.14/var/megalib/Test/Perinci/CmdLine.pm line 225. # Failed test 'exit_code' # at /home/fly1400/cpanfly-5.14/var/megalib/Test/Perinci/CmdLine.pm line 179. # got: '200' # expected: '0' # Script's stdout: # Script's stderr: <> # Failed test 'stdout_like' # at /home/fly1400/cpanfly-5.14/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 /home/fly1400/cpanfly-5.14/var/megalib/Perinci/Examples.pm line 13. # BEGIN failed--compilation aborted at /home/fly1400/cpanfly-5.14/var/megalib/Perinci/Examples.pm line 13. # Compilation failed in require at /home/fly1400/cpanfly-5.14/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 /home/fly1400/cpanfly-5.14/var/megalib/Test/Perinci/CmdLine.pm line 225. # Failed test 'exit_code' # at /home/fly1400/cpanfly-5.14/var/megalib/Test/Perinci/CmdLine.pm line 179. # got: '200' # expected: '0' # Script's stdout: # Script's stderr: <> # Failed test 'stdout_like' # at /home/fly1400/cpanfly-5.14/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 /home/fly1400/cpanfly-5.14/var/megalib/Perinci/Examples.pm line 13. # BEGIN failed--compilation aborted at /home/fly1400/cpanfly-5.14/var/megalib/Perinci/Examples.pm line 13. # Compilation failed in require at /home/fly1400/cpanfly-5.14/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 /home/fly1400/cpanfly-5.14/var/megalib/Test/Perinci/CmdLine.pm line 225. # Failed test 'exit_code' # at /home/fly1400/cpanfly-5.14/var/megalib/Test/Perinci/CmdLine.pm line 179. # got: '200' # expected: '0' # Script's stdout: # Script's stderr: <> # Failed test 'stdout_like' # at /home/fly1400/cpanfly-5.14/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 /home/fly1400/cpanfly-5.14/var/megalib/Perinci/Examples.pm line 13. # BEGIN failed--compilation aborted at /home/fly1400/cpanfly-5.14/var/megalib/Perinci/Examples.pm line 13. # Compilation failed in require at /home/fly1400/cpanfly-5.14/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 /home/fly1400/cpanfly-5.14/var/megalib/Test/Perinci/CmdLine.pm line 225. # Failed test 'exit_code' # at /home/fly1400/cpanfly-5.14/var/megalib/Test/Perinci/CmdLine.pm line 179. # 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 /home/fly1400/cpanfly-5.14/var/megalib/Test/Perinci/CmdLine.pm line 225. # Failed test 'exit_code' # at /home/fly1400/cpanfly-5.14/var/megalib/Test/Perinci/CmdLine.pm line 179. # got: '200' # expected: '0' # Script's stdout: # Script's stderr: <> # Failed test 'stdout_like' # at /home/fly1400/cpanfly-5.14/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 /home/fly1400/cpanfly-5.14/var/megalib/Perinci/Examples.pm line 13. # BEGIN failed--compilation aborted at /home/fly1400/cpanfly-5.14/var/megalib/Perinci/Examples.pm line 13. # Compilation failed in require at /home/fly1400/cpanfly-5.14/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 /home/fly1400/cpanfly-5.14/var/megalib/Test/Perinci/CmdLine.pm line 225. # Failed test 'exit_code' # at /home/fly1400/cpanfly-5.14/var/megalib/Test/Perinci/CmdLine.pm line 179. # got: '200' # expected: '0' # Script's stdout: # Script's stderr: <> # Failed test 'stdout_like' # at /home/fly1400/cpanfly-5.14/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 /home/fly1400/cpanfly-5.14/var/megalib/Perinci/Examples.pm line 13. # BEGIN failed--compilation aborted at /home/fly1400/cpanfly-5.14/var/megalib/Perinci/Examples.pm line 13. # Compilation failed in require at /home/fly1400/cpanfly-5.14/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 /home/fly1400/cpanfly-5.14/var/megalib/Test/Perinci/CmdLine.pm line 225. # Failed test 'exit_code' # at /home/fly1400/cpanfly-5.14/var/megalib/Test/Perinci/CmdLine.pm line 179. # got: '200' # expected: '0' # Script's stdout: # Script's stderr: <> # Failed test 'stdout_like' # at /home/fly1400/cpanfly-5.14/var/megalib/Test/Perinci/CmdLine.pm line 192. # 'prog-old: 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 /home/fly1400/cpanfly-5.14/var/megalib/Perinci/Examples.pm line 13. # BEGIN failed--compilation aborted at /home/fly1400/cpanfly-5.14/var/megalib/Perinci/Examples.pm line 13. # Compilation failed in require at /home/fly1400/cpanfly-5.14/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 (old syntax)' # at /home/fly1400/cpanfly-5.14/var/megalib/Test/Perinci/CmdLine.pm line 225. # Failed test 'exit_code' # at /home/fly1400/cpanfly-5.14/var/megalib/Test/Perinci/CmdLine.pm line 179. # got: '200' # expected: '0' # Script's stdout: # Script's stderr: <> # Failed test 'stdout_like' # at /home/fly1400/cpanfly-5.14/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 /home/fly1400/cpanfly-5.14/var/megalib/Perinci/Examples.pm line 13. # BEGIN failed--compilation aborted at /home/fly1400/cpanfly-5.14/var/megalib/Perinci/Examples.pm line 13. # Compilation failed in require at /home/fly1400/cpanfly-5.14/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 /home/fly1400/cpanfly-5.14/var/megalib/Test/Perinci/CmdLine.pm line 225. # Failed test 'exit_code' # at /home/fly1400/cpanfly-5.14/var/megalib/Test/Perinci/CmdLine.pm line 179. # got: '200' # expected: '0' # Script's stdout: # Script's stderr: <> # Failed test 'stdout_like' # at /home/fly1400/cpanfly-5.14/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 /home/fly1400/cpanfly-5.14/var/megalib/Perinci/Examples.pm line 13. # BEGIN failed--compilation aborted at /home/fly1400/cpanfly-5.14/var/megalib/Perinci/Examples.pm line 13. # Compilation failed in require at /home/fly1400/cpanfly-5.14/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 /home/fly1400/cpanfly-5.14/var/megalib/Test/Perinci/CmdLine.pm line 225. # Failed test 'exit_code' # at /home/fly1400/cpanfly-5.14/var/megalib/Test/Perinci/CmdLine.pm line 179. # got: '200' # expected: '0' # Script's stdout: # Script's stderr: <> # Failed test 'stdout_like' # at /home/fly1400/cpanfly-5.14/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 /home/fly1400/cpanfly-5.14/var/megalib/Perinci/Examples.pm line 13. # BEGIN failed--compilation aborted at /home/fly1400/cpanfly-5.14/var/megalib/Perinci/Examples.pm line 13. # Compilation failed in require at /home/fly1400/cpanfly-5.14/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 /home/fly1400/cpanfly-5.14/var/megalib/Test/Perinci/CmdLine.pm line 225. # Looks like you failed 12 tests of 13. # Failed test 'config file' # at /home/fly1400/cpanfly-5.14/var/megalib/Test/Perinci/CmdLine.pm line 292. # there are failing tests, not deleting tempdir /tmp/7EAE3dx0G2 # Looks like you failed 4 tests of 17. t/suite.t ................ # Subtest: help action ok 1 - dummy # Subtest: --help # Generated CLI script at /tmp/7EAE3dx0G2/cliXNTok8N0 # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/7EAE3dx0G2/cliXNTok8N0', # '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/7EAE3dx0G2/cliqnkbLGjh # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/7EAE3dx0G2/cliqnkbLGjh', # '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/7EAE3dx0G2/clirHGhCg3A # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/7EAE3dx0G2/clirHGhCg3A', # '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/7EAE3dx0G2/cliJ8HfYSsr # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/7EAE3dx0G2/cliJ8HfYSsr', # '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/7EAE3dx0G2/cli7czuI8yP # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/7EAE3dx0G2/cli7czuI8yP', # '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/7EAE3dx0G2/cli6xYcEyxq # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/7EAE3dx0G2/cli6xYcEyxq', # '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/7EAE3dx0G2/cliP7z1a9G7 # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/7EAE3dx0G2/cliP7z1a9G7', # '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/7EAE3dx0G2/clileBHcUvW # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'default_subcommand' => 'noop', # 'output_file' => '/tmp/7EAE3dx0G2/clileBHcUvW', # '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/7EAE3dx0G2/cliGxYuNmPS # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'default_subcommand' => 'odd_even', # 'output_file' => '/tmp/7EAE3dx0G2/cliGxYuNmPS', # '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/7EAE3dx0G2/clis0XTG7VD # 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/7EAE3dx0G2/clis0XTG7VD', # '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/7EAE3dx0G2/cli_NkEyA2T # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/7EAE3dx0G2/cli_NkEyA2T', # '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/7EAE3dx0G2/cliqTBCPo1x # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/7EAE3dx0G2/cliqTBCPo1x', # '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/7EAE3dx0G2/climv6vXly2 # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/7EAE3dx0G2/climv6vXly2', # '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",{"stream":0}] # > # 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/7EAE3dx0G2/cliATBdO4uc # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/7EAE3dx0G2/cliATBdO4uc', # '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",{"stream":0}] # > # 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/7EAE3dx0G2/cli6w3UixwI # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/7EAE3dx0G2/cli6w3UixwI', # '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/7EAE3dx0G2/clidD04K19I # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/7EAE3dx0G2/clidD04K19I', # '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",{"stream":0}] # > # 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/7EAE3dx0G2/cliZ2mJpjGR # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'default_subcommand' => 'noop', # 'output_file' => '/tmp/7EAE3dx0G2/cliZ2mJpjGR', # '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/7EAE3dx0G2/cliajyoUISd # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/7EAE3dx0G2/cliajyoUISd', # '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"],{"stream":0}] # > # Script's stderr: <> ok 1 - exit_code ok 2 - stdout_like 1..2 ok 10 - json argument # Subtest: can handle function which returns naked result # Generated CLI script at /tmp/7EAE3dx0G2/cli1GY9BQxF # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/7EAE3dx0G2/cli1GY9BQxF', # 'overwrite' => 1, # 'read_config' => 0, # 'read_env' => 0, # 'url' => '/Perinci/Examples/Tiny/hello_naked' # } # argv: [] # Script's stdout: # Script's stderr: <> ok 1 - exit_code ok 2 - stdout_like 1..2 ok 11 - can handle function which returns naked result 1..11 ok 4 - call action # Subtest: cmdline_src (error cases) ok 1 - dummy # Subtest: unknown value # Generated CLI script at /tmp/7EAE3dx0G2/cliSUhmNGHI # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/7EAE3dx0G2/cliSUhmNGHI', # '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/7EAE3dx0G2/cli5OzXJfsy # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/7EAE3dx0G2/cli5OzXJfsy', # '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/7EAE3dx0G2/cliuXeEwZ8r # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/7EAE3dx0G2/cliuXeEwZ8r', # '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/7EAE3dx0G2/cliFgv2XEzn # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/7EAE3dx0G2/cliFgv2XEzn', # 'overwrite' => 1, # 'read_config' => 0, # 'read_env' => 0, # 'url' => '/Perinci/Examples/CmdLineSrc/cmdline_src_file' # } # argv: [ # '--a1', # '/tmp/7EAE3dx0G2/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/7EAE3dx0G2/cliK8woKxEP # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/7EAE3dx0G2/cliK8woKxEP', # 'overwrite' => 1, # 'read_config' => 0, # 'read_env' => 0, # 'url' => '/Perinci/Examples/CmdLineSrc/cmdline_src_file' # } # argv: [ # '--json', # '--a1', # '/tmp/7EAE3dx0G2/infile1' # ] # Script's stdout: <["200","OK","a1=foo\na2=[]",{"func.args":{"-cmdline_src_a1":"file","-cmdline_srcfilenames_a1":["/tmp/7EAE3dx0G2/infile1"],"a1":"foo"},"stream":0}] # > # 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/7EAE3dx0G2/clixdd6kMjV # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/7EAE3dx0G2/clixdd6kMjV', # 'overwrite' => 1, # 'read_config' => 0, # 'read_env' => 0, # 'url' => '/Perinci/Examples/CmdLineSrc/cmdline_src_file' # } # argv: [ # '--a1', # '/tmp/7EAE3dx0G2/infile1', # '--a2', # '/tmp/7EAE3dx0G2/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/7EAE3dx0G2/cliqDz3y79A # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/7EAE3dx0G2/cliqDz3y79A', # 'overwrite' => 1, # 'read_config' => 0, # 'read_env' => 0, # 'url' => '/Perinci/Examples/CmdLineSrc/cmdline_src_file' # } # argv: [ # '--json', # '--a1', # '/tmp/7EAE3dx0G2/infile1', # '--a2', # '/tmp/7EAE3dx0G2/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/7EAE3dx0G2/infile1"],"-cmdline_srcfilenames_a2":["/tmp/7EAE3dx0G2/infile2"],"a1":"foo","a2":["bar\n","baz"]},"stream":0}] # > # 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/7EAE3dx0G2/cli2_ZGwlyT # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/7EAE3dx0G2/cli2_ZGwlyT', # 'overwrite' => 1, # 'read_config' => 0, # 'read_env' => 0, # 'url' => '/Perinci/Examples/CmdLineSrc/cmdline_src_file' # } # argv: [ # '--a1', # '/tmp/7EAE3dx0G2/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/7EAE3dx0G2/clibMhp2dQT # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/7EAE3dx0G2/clibMhp2dQT', # 'overwrite' => 1, # 'read_config' => 0, # 'read_env' => 0, # 'url' => '/Perinci/Examples/CmdLineSrc/cmdline_src_file' # } # argv: [ # '--a2', # '/tmp/7EAE3dx0G2/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/7EAE3dx0G2/clihiz5zGIo # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/7EAE3dx0G2/clihiz5zGIo', # '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/7EAE3dx0G2/cliKrASTVc1 # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/7EAE3dx0G2/cliKrASTVc1', # '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"},"stream":0}] # > # 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/7EAE3dx0G2/clixMxcozXK # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/7EAE3dx0G2/clixMxcozXK', # '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/7EAE3dx0G2/cliQ9_QHsAT # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/7EAE3dx0G2/cliQ9_QHsAT', # '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/7EAE3dx0G2/cliiExkgLZx # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/7EAE3dx0G2/cliiExkgLZx', # '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/7EAE3dx0G2/clioul1Zdxe # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/7EAE3dx0G2/clioul1Zdxe', # '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/7EAE3dx0G2/cliKIeQbS3P # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/7EAE3dx0G2/cliKIeQbS3P', # '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/7EAE3dx0G2/cliaH9AmRhk # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/7EAE3dx0G2/cliaH9AmRhk', # '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/7EAE3dx0G2/cliLgkgjRcM # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/7EAE3dx0G2/cliLgkgjRcM', # '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/7EAE3dx0G2/cli83Dbh6FR # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/7EAE3dx0G2/cli83Dbh6FR', # 'overwrite' => 1, # 'read_config' => 0, # 'read_env' => 0, # 'url' => '/Perinci/Examples/CmdLineSrc/cmdline_src_stdin_or_file_str' # } # argv: [ # '/tmp/7EAE3dx0G2/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/7EAE3dx0G2/cliU757U6NS # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/7EAE3dx0G2/cliU757U6NS', # 'overwrite' => 1, # 'read_config' => 0, # 'read_env' => 0, # 'url' => '/Perinci/Examples/CmdLineSrc/cmdline_src_stdin_or_file_str' # } # argv: [ # '/tmp/7EAE3dx0G2/infile1', # '/tmp/7EAE3dx0G2/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/7EAE3dx0G2/cli3xaelEg_ # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/7EAE3dx0G2/cli3xaelEg_', # 'overwrite' => 1, # 'read_config' => 0, # 'read_env' => 0, # 'url' => '/Perinci/Examples/CmdLineSrc/cmdline_src_stdin_or_file_str' # } # argv: [ # '--json', # '/tmp/7EAE3dx0G2/infile1' # ] # Script's stdout: <["200","OK","a1=foo",{"func.args":{"-cmdline_src_a1":"stdin_or_file","-cmdline_srcfilenames_a1":["/tmp/7EAE3dx0G2/infile1"],"a1":"foo"},"stream":0}] # > # 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/7EAE3dx0G2/cliHtAzpYFx # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/7EAE3dx0G2/cliHtAzpYFx', # 'overwrite' => 1, # 'read_config' => 0, # 'read_env' => 0, # 'url' => '/Perinci/Examples/CmdLineSrc/cmdline_src_stdin_or_file_str' # } # argv: [ # '/tmp/7EAE3dx0G2/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/7EAE3dx0G2/cliOL4fKyUA # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/7EAE3dx0G2/cliOL4fKyUA', # '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/7EAE3dx0G2/clitc5DZ9xj # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/7EAE3dx0G2/clitc5DZ9xj', # '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/7EAE3dx0G2/cliprkvmlas # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/7EAE3dx0G2/cliprkvmlas', # 'overwrite' => 1, # 'read_config' => 0, # 'read_env' => 0, # 'url' => '/Perinci/Examples/CmdLineSrc/cmdline_src_stdin_or_files_array' # } # argv: [ # '/tmp/7EAE3dx0G2/infile1', # '/tmp/7EAE3dx0G2/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/7EAE3dx0G2/cliue76za8z # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/7EAE3dx0G2/cliue76za8z', # 'overwrite' => 1, # 'read_config' => 0, # 'read_env' => 0, # 'url' => '/Perinci/Examples/CmdLineSrc/cmdline_src_stdin_or_files_str' # } # argv: [ # '--json', # '/tmp/7EAE3dx0G2/infile1' # ] # Script's stdout: <["200","OK","a1=foo",{"func.args":{"-cmdline_src_a1":"stdin_or_files","-cmdline_srcfilenames_a1":["/tmp/7EAE3dx0G2/infile1"],"a1":"foo"},"stream":0}] # > # 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/7EAE3dx0G2/cliZfX4HviD # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/7EAE3dx0G2/cliZfX4HviD', # 'overwrite' => 1, # 'read_config' => 0, # 'read_env' => 0, # 'url' => '/Perinci/Examples/CmdLineSrc/cmdline_src_stdin_or_files_str' # } # argv: [ # '/tmp/7EAE3dx0G2/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/7EAE3dx0G2/cliLvv85uar # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/7EAE3dx0G2/cliLvv85uar', # '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/7EAE3dx0G2/clijmGxwDT3 # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/7EAE3dx0G2/clijmGxwDT3', # '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/7EAE3dx0G2/cli3Znd4_ru # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/7EAE3dx0G2/cli3Znd4_ru', # '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/7EAE3dx0G2/clisOv8ob40 # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/7EAE3dx0G2/clisOv8ob40', # '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/7EAE3dx0G2/cli0iN54aWz # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/7EAE3dx0G2/cli0iN54aWz', # '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 type, chomp on # Generated CLI script at /tmp/7EAE3dx0G2/cliEs0SMAf5 # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/7EAE3dx0G2/cliEs0SMAf5', # 'overwrite' => 1, # 'read_config' => 0, # 'read_env' => 0, # 'url' => '/Perinci/Examples/Stream/count_lines' # } # argv: [ # '/tmp/7EAE3dx0G2/infile-str' # ] # Script's stdout: # Script's stderr: <> ok 1 - exit_code ok 2 - stdout_like 1..2 ok 2 - stream input, simple type, chomp on # Subtest: stream input, simple type, chomp off # Generated CLI script at /tmp/7EAE3dx0G2/clijwAp_mj1 # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/7EAE3dx0G2/clijwAp_mj1', # 'overwrite' => 1, # 'read_config' => 0, # 'read_env' => 0, # 'url' => '/Perinci/Examples/Stream/wc' # } # argv: [ # '/tmp/7EAE3dx0G2/infile-str' # ] # Script's stdout: # Script's stderr: <> ok 1 - exit_code ok 2 - stdout_like 1..2 ok 3 - stream input, simple type, chomp off # Subtest: stream input, json stream # Generated CLI script at /tmp/7EAE3dx0G2/clitQPTxYj7 # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/7EAE3dx0G2/clitQPTxYj7', # 'overwrite' => 1, # 'read_config' => 0, # 'read_env' => 0, # 'url' => '/Perinci/Examples/Stream/wc_keys' # } # argv: [ # '/tmp/7EAE3dx0G2/infile-hash-json' # ] # Script's stdout: # Script's stderr: <> ok 1 - exit_code ok 2 - stdout_like 1..2 ok 4 - stream input, json stream # Subtest: stream input, simple type, word validation 1..0 # SKIP Has one of the exclude_tag: validate-streaming-input ok 5 # skip Has one of the exclude_tag: validate-streaming-input # Subtest: stream input, simple types, word validation, error 1..0 # SKIP Has one of the exclude_tag: validate-streaming-input ok 6 # skip Has one of the exclude_tag: validate-streaming-input # Subtest: stream input, simple types, word validation, error 1..0 # SKIP Has one of the exclude_tag: validate-streaming-input ok 7 # skip Has one of the exclude_tag: validate-streaming-input # Subtest: stream input, json stream, error 1..0 # SKIP Has one of the exclude_tag: validate-streaming-input ok 8 # skip Has one of the exclude_tag: validate-streaming-input # Subtest: stream result, simple types, word validation 1..0 # SKIP Has one of the exclude_tag: validate-streaming-result ok 9 # skip Has one of the exclude_tag: validate-streaming-result # Subtest: stream result, simple types, word validation, error 1..0 # SKIP Has one of the exclude_tag: validate-streaming-result ok 10 # skip Has one of the exclude_tag: validate-streaming-result # Subtest: stream result, json stream # Generated CLI script at /tmp/7EAE3dx0G2/cliMkBC43Lr # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/7EAE3dx0G2/cliMkBC43Lr', # 'overwrite' => 1, # 'read_config' => 0, # 'read_env' => 0, # 'url' => '/Perinci/Examples/Stream/produce_hashes' # } # 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 11 - stream result, json stream # Subtest: stream input+result, simple type, float validation # Generated CLI script at /tmp/7EAE3dx0G2/cliREriLqnm # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/7EAE3dx0G2/cliREriLqnm', # 'overwrite' => 1, # 'read_config' => 0, # 'read_env' => 0, # 'url' => '/Perinci/Examples/Stream/square_nums' # } # argv: [ # '/tmp/7EAE3dx0G2/infile-int' # ] # Script's stdout: <1 # 9 # 25 # > # Script's stderr: <> ok 1 - exit_code ok 2 - stdout_like 1..2 ok 12 - stream input+result, simple type, float validation # Subtest: stream input+result, simple type, float validation, error 1..0 # SKIP Has one of the exclude_tag: validate-streaming-input ok 13 # skip Has one of the exclude_tag: validate-streaming-input 1..13 ok 13 - streaming # Subtest: result metadata ok 1 - dummy # Subtest: cmdline.exit_code # Generated CLI script at /tmp/7EAE3dx0G2/cliEr6yF5I4 # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/7EAE3dx0G2/cliEr6yF5I4', # '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/7EAE3dx0G2/cliiXVvvAej # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/7EAE3dx0G2/cliiXVvvAej', # '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/7EAE3dx0G2/cli8yQYGZ6F # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/7EAE3dx0G2/cli8yQYGZ6F', # '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","stream":0}] # > # 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/7EAE3dx0G2/cliyGFoQxmA # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/7EAE3dx0G2/cliyGFoQxmA', # '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/7EAE3dx0G2/cliFXeUVQha # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/7EAE3dx0G2/cliFXeUVQha', # '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/7EAE3dx0G2/clidp_7kMSr # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/7EAE3dx0G2/clidp_7kMSr', # '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 /home/fly1400/cpanfly-5.14/var/megalib/Perinci/Sub/Complete.pm line 13. # BEGIN failed--compilation aborted at /home/fly1400/cpanfly-5.14/var/megalib/Perinci/Sub/Complete.pm line 13. # Compilation failed in require at /data/fly1400/cpan/build/Perinci-CmdLine-Lite-1.50-gDWXbg/blib/lib/Perinci/CmdLine/Base.pm line 543. # > 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/7EAE3dx0G2/cli7nRFgX9H # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/7EAE3dx0G2/cli7nRFgX9H', # '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 /home/fly1400/cpanfly-5.14/var/megalib/Perinci/Sub/Complete.pm line 13. # BEGIN failed--compilation aborted at /home/fly1400/cpanfly-5.14/var/megalib/Perinci/Sub/Complete.pm line 13. # Compilation failed in require at /data/fly1400/cpan/build/Perinci-CmdLine-Lite-1.50-gDWXbg/blib/lib/Perinci/CmdLine/Base.pm line 543. # > 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/7EAE3dx0G2/cliyMZlBHAF # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/7EAE3dx0G2/cliyMZlBHAF', # '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 /home/fly1400/cpanfly-5.14/var/megalib/Perinci/Sub/Complete.pm line 13. # BEGIN failed--compilation aborted at /home/fly1400/cpanfly-5.14/var/megalib/Perinci/Sub/Complete.pm line 13. # Compilation failed in require at /data/fly1400/cpan/build/Perinci-CmdLine-Lite-1.50-gDWXbg/blib/lib/Perinci/CmdLine/Base.pm line 543. # > 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/7EAE3dx0G2/cliEkA6qbjN # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/7EAE3dx0G2/cliEkA6qbjN', # '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/7EAE3dx0G2/clingERoEtf # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/7EAE3dx0G2/clingERoEtf', # '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/7EAE3dx0G2/clis4enhAM7 # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'env_name' => 'foo_opt', # 'output_file' => '/tmp/7EAE3dx0G2/clis4enhAM7', # '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/7EAE3dx0G2/cliIJHCDdQ9 # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'config_dirs' => [ # '/tmp/7EAE3dx0G2' # ], # 'output_file' => '/tmp/7EAE3dx0G2/cliIJHCDdQ9', # '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/7EAE3dx0G2/cliuGXPJvhX # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'config_dirs' => [ # '/tmp/7EAE3dx0G2' # ], # 'config_filename' => 'prog2.conf', # 'output_file' => '/tmp/7EAE3dx0G2/cliuGXPJvhX', # '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/7EAE3dx0G2/cliYpuUiTMk # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'config_dirs' => [ # '/tmp/7EAE3dx0G2' # ], # 'output_file' => '/tmp/7EAE3dx0G2/cliYpuUiTMk', # '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/7EAE3dx0G2/cliY9uCq65U # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'output_file' => '/tmp/7EAE3dx0G2/cliY9uCq65U', # 'overwrite' => 1, # 'read_config' => 1, # 'read_env' => 0, # 'script_name' => 'prog', # 'url' => '/Perinci/Examples/noop2' # } # argv: [ # '--config-path', # '/tmp/7EAE3dx0G2/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/7EAE3dx0G2/cliR39waaVP # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'config_dirs' => [ # '/tmp/7EAE3dx0G2' # ], # 'output_file' => '/tmp/7EAE3dx0G2/cliR39waaVP', # '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/7EAE3dx0G2/clizo6kcGAf # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'config_dirs' => [ # '/tmp/7EAE3dx0G2' # ], # 'output_file' => '/tmp/7EAE3dx0G2/clizo6kcGAf', # '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/7EAE3dx0G2/clikuCp5cQU # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'config_dirs' => [ # '/tmp/7EAE3dx0G2' # ], # 'output_file' => '/tmp/7EAE3dx0G2/clikuCp5cQU', # '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/7EAE3dx0G2/cliJeeSn8Gl # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'config_dirs' => [ # '/tmp/7EAE3dx0G2' # ], # 'output_file' => '/tmp/7EAE3dx0G2/cliJeeSn8Gl', # '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 (old syntax) # Generated CLI script at /tmp/7EAE3dx0G2/clis8vvRgSl # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'config_dirs' => [ # '/tmp/7EAE3dx0G2' # ], # 'output_file' => '/tmp/7EAE3dx0G2/clis8vvRgSl', # 'overwrite' => 1, # 'read_config' => 1, # 'read_env' => 0, # 'script_name' => 'prog-old', # '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 (old syntax) # Subtest: subcommand + --config-profile # Generated CLI script at /tmp/7EAE3dx0G2/cli5ptPOjBj # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'config_dirs' => [ # '/tmp/7EAE3dx0G2' # ], # 'output_file' => '/tmp/7EAE3dx0G2/cli5ptPOjBj', # '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 11 - subcommand + --config-profile # Subtest: array-ify if argument is array # Generated CLI script at /tmp/7EAE3dx0G2/cliYybJfB1J # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'config_dirs' => [ # '/tmp/7EAE3dx0G2' # ], # 'output_file' => '/tmp/7EAE3dx0G2/cliYybJfB1J', # '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 12 - array-ify if argument is array # Subtest: can also set common option # Generated CLI script at /tmp/7EAE3dx0G2/cli1ThtUhVe # gen_pericmd_script args: { # 'cmdline' => 'Perinci::CmdLine::Lite', # 'config_dirs' => [ # '/tmp/7EAE3dx0G2' # ], # 'output_file' => '/tmp/7EAE3dx0G2/cli1ThtUhVe', # '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 13 - can also set common option 1..13 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, 11 wallclock secs ( 0.13 usr 0.11 sys + 9.42 cusr 1.41 csys = 11.07 CPU) Result: FAIL Failed 1/5 test programs. 4/20 subtests failed. make: *** [test_dynamic] Error 4 PERLANCAR/Perinci-CmdLine-Lite-1.50.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.50.tar.gz Running test for module 'App::tracepm' Checksum for /home/fly1400/cpanfly-5.14/var/cpan/sources/authors/id/P/PE/PERLANCAR/App-tracepm-0.19.tar.gz ok App-tracepm-0.19/ App-tracepm-0.19/bin/ App-tracepm-0.19/bin/tracepm App-tracepm-0.19/META.json App-tracepm-0.19/LICENSE App-tracepm-0.19/Changes App-tracepm-0.19/META.yml App-tracepm-0.19/Makefile.PL App-tracepm-0.19/t/ App-tracepm-0.19/t/release-pod-syntax.t App-tracepm-0.19/t/release-pod-coverage.t App-tracepm-0.19/t/release-rinci.t App-tracepm-0.19/t/00-compile.t App-tracepm-0.19/README App-tracepm-0.19/dist.ini App-tracepm-0.19/lib/ App-tracepm-0.19/lib/App/ App-tracepm-0.19/lib/App/tracepm/ App-tracepm-0.19/lib/App/tracepm/Tracer.pm App-tracepm-0.19/lib/App/tracepm.pm App-tracepm-0.19/MANIFEST App-tracepm-0.19/weaver.ini Configuring P/PE/PERLANCAR/App-tracepm-0.19.tar.gz with Makefile.PL >>> /home/fly1400/ap1400/bin/perl-static Makefile.PL Warning: prerequisite Perl::PrereqScanner::Lite 0 not found. Checking if your kit is complete... Looks good Have /home/fly1400/cpanfly-5.14/var/megalib Want /home/fly1400/ap1400/lib Your perl and your Config.pm seem to have different ideas about the architecture they are running on. Perl thinks: [megalib] Config says: [x86_64-linux-thread-multi] This may or may not cause problems. Please check your installation of perl if you have problems building this extension. Generating a Unix-style Makefile Writing Makefile for App::tracepm Modifying Makefile to generate shell completion on install PERLANCAR/App-tracepm-0.19.tar.gz /home/fly1400/ap1400/bin/perl-static Makefile.PL -- OK Running make for P/PE/PERLANCAR/App-tracepm-0.19.tar.gz ---- Unsatisfied dependencies detected during ---- ---- PERLANCAR/App-tracepm-0.19.tar.gz ---- Perl::PrereqScanner::Lite [requires] Running test for module 'Perl::PrereqScanner::Lite' Checksum for /home/fly1400/cpanfly-5.14/var/cpan/sources/authors/id/M/MO/MOZNION/Perl-PrereqScanner-Lite-0.26.tar.gz ok Perl-PrereqScanner-Lite-0.26/Build.PL Perl-PrereqScanner-Lite-0.26/Changes Perl-PrereqScanner-Lite-0.26/LICENSE Perl-PrereqScanner-Lite-0.26/META.json Perl-PrereqScanner-Lite-0.26/README.md Perl-PrereqScanner-Lite-0.26/author/benchmark.pl Perl-PrereqScanner-Lite-0.26/author/benchmark_between_branches.pl Perl-PrereqScanner-Lite-0.26/author/benchmark_with_moose.pl Perl-PrereqScanner-Lite-0.26/cpanfile Perl-PrereqScanner-Lite-0.26/eg/scan_file.pl Perl-PrereqScanner-Lite-0.26/eg/scan_module.pl Perl-PrereqScanner-Lite-0.26/eg/scan_string.pl Perl-PrereqScanner-Lite-0.26/eg/scan_tokens.pl Perl-PrereqScanner-Lite-0.26/lib/Perl/PrereqScanner/Lite.pm Perl-PrereqScanner-Lite-0.26/lib/Perl/PrereqScanner/Lite/Constants.pm Perl-PrereqScanner-Lite-0.26/lib/Perl/PrereqScanner/Lite/Scanner/Moose.pm Perl-PrereqScanner-Lite-0.26/lib/Perl/PrereqScanner/Lite/Scanner/Version.pm Perl-PrereqScanner-Lite-0.26/minil.toml Perl-PrereqScanner-Lite-0.26/t/00_compile.t Perl-PrereqScanner-Lite-0.26/t/01_scan_file.t Perl-PrereqScanner-Lite-0.26/t/02_scan_string.t Perl-PrereqScanner-Lite-0.26/t/03_scan_tokens.t Perl-PrereqScanner-Lite-0.26/t/04_scan_module.t Perl-PrereqScanner-Lite-0.26/t/10_moose_extends.t Perl-PrereqScanner-Lite-0.26/t/11_version_method.t Perl-PrereqScanner-Lite-0.26/t/12_parameterized_roles.t Perl-PrereqScanner-Lite-0.26/t/20_left_paran_is_behind_at_module_name.t Perl-PrereqScanner-Lite-0.26/t/30_v_string.t Perl-PrereqScanner-Lite-0.26/t/40_extra_scanners.t Perl-PrereqScanner-Lite-0.26/t/Util.pm Perl-PrereqScanner-Lite-0.26/t/resources/basic.pl Perl-PrereqScanner-Lite-0.26/t/resources/left_paren_is_behind_at_module_name/basic.pl Perl-PrereqScanner-Lite-0.26/t/resources/left_paren_is_behind_at_module_name/with_version.pl Perl-PrereqScanner-Lite-0.26/t/resources/moose.pl Perl-PrereqScanner-Lite-0.26/t/resources/moose_parameterized_roles.pl Perl-PrereqScanner-Lite-0.26/t/resources/v_string.pl Perl-PrereqScanner-Lite-0.26/t/resources/version.pl Perl-PrereqScanner-Lite-0.26/xt/perlcritic.t Perl-PrereqScanner-Lite-0.26/xt/perlcriticrc Perl-PrereqScanner-Lite-0.26/META.yml /bin/tar: Read 3072 bytes from - Perl-PrereqScanner-Lite-0.26/MANIFEST Configuring M/MO/MOZNION/Perl-PrereqScanner-Lite-0.26.tar.gz with Build.PL >>> /home/fly1400/ap1400/bin/perl-static Build.PL Could not create MYMETA files Creating new 'Build' script for 'Perl-PrereqScanner-Lite' version '0.26' cp META.json MYMETA.json cp META.yml MYMETA.yml MOZNION/Perl-PrereqScanner-Lite-0.26.tar.gz /home/fly1400/ap1400/bin/perl-static Build.PL -- OK Running Build for M/MO/MOZNION/Perl-PrereqScanner-Lite-0.26.tar.gz ---- Unsatisfied dependencies detected during ---- ---- MOZNION/Perl-PrereqScanner-Lite-0.26.tar.gz ---- Compiler::Lexer [requires] Running test for module 'Compiler::Lexer' Checksum for /home/fly1400/cpanfly-5.14/var/cpan/sources/authors/id/G/GO/GOCCY/Compiler-Lexer-0.22.tar.gz ok Compiler-Lexer-0.22/Build.PL Compiler-Lexer-0.22/Changes Compiler-Lexer-0.22/LICENSE Compiler-Lexer-0.22/META.json Compiler-Lexer-0.22/README.md Compiler-Lexer-0.22/builder/MyBuilder.pm Compiler-Lexer-0.22/cpanfile Compiler-Lexer-0.22/cpanfile.snapshot Compiler-Lexer-0.22/example/benchmark.pl Compiler-Lexer-0.22/example/sample.pl Compiler-Lexer-0.22/gen/double_charactor_operator.gperf Compiler-Lexer-0.22/gen/gen_constants.yaml Compiler-Lexer-0.22/gen/gen_decl.pl Compiler-Lexer-0.22/gen/reserved_keywords.gperf Compiler-Lexer-0.22/gen/test_generator.pl Compiler-Lexer-0.22/gen/triple_charactor_operator.gperf Compiler-Lexer-0.22/include/common.hpp Compiler-Lexer-0.22/include/gen_token.hpp Compiler-Lexer-0.22/include/keyword.hpp Compiler-Lexer-0.22/include/lexer.hpp Compiler-Lexer-0.22/include/token.hpp Compiler-Lexer-0.22/lib/Compiler/Lexer.pm Compiler-Lexer-0.22/lib/Compiler/Lexer/Constants.pm Compiler-Lexer-0.22/lib/Compiler/Lexer/Token.pm Compiler-Lexer-0.22/minil.toml Compiler-Lexer-0.22/src/Compiler-Lexer.xs Compiler-Lexer-0.22/src/compiler/lexer/Compiler_annotator.cpp Compiler-Lexer-0.22/src/compiler/lexer/Compiler_lexer.cpp Compiler-Lexer-0.22/src/compiler/lexer/Compiler_manager.cpp Compiler-Lexer-0.22/src/compiler/lexer/Compiler_scanner.cpp Compiler-Lexer-0.22/src/compiler/util/Compiler_double_charactor_operator.cpp Compiler-Lexer-0.22/src/compiler/util/Compiler_gen_token_decl.cpp Compiler-Lexer-0.22/src/compiler/util/Compiler_reserved_keyword.cpp Compiler-Lexer-0.22/src/compiler/util/Compiler_token.cpp Compiler-Lexer-0.22/src/compiler/util/Compiler_triple_charactor_operator.cpp Compiler-Lexer-0.22/src/compiler/util/Compiler_util.cpp Compiler-Lexer-0.22/src/typemap Compiler-Lexer-0.22/t/Lexer.t Compiler-Lexer-0.22/t/format.t Compiler-Lexer-0.22/t/issue_32.t Compiler-Lexer-0.22/t/issue_35.t Compiler-Lexer-0.22/t/issue_38.t Compiler-Lexer-0.22/t/issue_39.t Compiler-Lexer-0.22/t/issue_40.t Compiler-Lexer-0.22/t/issue_42.t Compiler-Lexer-0.22/t/issue_43.t Compiler-Lexer-0.22/t/issue_44.t Compiler-Lexer-0.22/t/issue_45.t Compiler-Lexer-0.22/t/issue_48.t Compiler-Lexer-0.22/t/issue_53.t Compiler-Lexer-0.22/t/issue_reports.t Compiler-Lexer-0.22/t/package.t Compiler-Lexer-0.22/t/perl6.t Compiler-Lexer-0.22/t/recursive_tokenize.t Compiler-Lexer-0.22/t/verbose.t /bin/tar: Read 8704 bytes from - Compiler-Lexer-0.22/typemap Compiler-Lexer-0.22/META.yml Compiler-Lexer-0.22/MANIFEST Configuring G/GO/GOCCY/Compiler-Lexer-0.22.tar.gz with Build.PL >>> /home/fly1400/ap1400/bin/perl-static Build.PL Could not create MYMETA files Creating new 'Build' script for 'Compiler-Lexer' version '0.22' cp META.json MYMETA.json cp META.yml MYMETA.yml GOCCY/Compiler-Lexer-0.22.tar.gz /home/fly1400/ap1400/bin/perl-static Build.PL -- OK Running Build for G/GO/GOCCY/Compiler-Lexer-0.22.tar.gz >>> ./Build Building Compiler-Lexer gcc -Isrc -I/home/fly1400/ap1400/lib/CORE -fPIC -Iinclude -Wno-missing-field-initializers -g3 -xc++ -D_FILE_OFFSET_BITS=64 -c -D_REENTRANT -D_GNU_SOURCE -DUSE_SITECUSTOMIZE -DPERL_RELOCATABLE_INCPUSH -fno-merge-constants -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -o src/compiler/lexer/Compiler_annotator.o src/compiler/lexer/Compiler_annotator.cpp gcc -Isrc -I/home/fly1400/ap1400/lib/CORE -fPIC -Iinclude -Wno-missing-field-initializers -g3 -xc++ -D_FILE_OFFSET_BITS=64 -c -D_REENTRANT -D_GNU_SOURCE -DUSE_SITECUSTOMIZE -DPERL_RELOCATABLE_INCPUSH -fno-merge-constants -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -o src/compiler/lexer/Compiler_lexer.o src/compiler/lexer/Compiler_lexer.cpp src/compiler/lexer/Compiler_lexer.cpp: In member function 'void Lexer::parseSpecificStmt(Token*)': src/compiler/lexer/Compiler_lexer.cpp:512: warning: comparison between 'enum Enum::Token::Type::Type' and 'enum Enum::Parser::Syntax::Type' gcc -Isrc -I/home/fly1400/ap1400/lib/CORE -fPIC -Iinclude -Wno-missing-field-initializers -g3 -xc++ -D_FILE_OFFSET_BITS=64 -c -D_REENTRANT -D_GNU_SOURCE -DUSE_SITECUSTOMIZE -DPERL_RELOCATABLE_INCPUSH -fno-merge-constants -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -o src/compiler/lexer/Compiler_manager.o src/compiler/lexer/Compiler_manager.cpp gcc -Isrc -I/home/fly1400/ap1400/lib/CORE -fPIC -Iinclude -Wno-missing-field-initializers -g3 -xc++ -D_FILE_OFFSET_BITS=64 -c -D_REENTRANT -D_GNU_SOURCE -DUSE_SITECUSTOMIZE -DPERL_RELOCATABLE_INCPUSH -fno-merge-constants -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -o src/compiler/lexer/Compiler_scanner.o src/compiler/lexer/Compiler_scanner.cpp gcc -Isrc -I/home/fly1400/ap1400/lib/CORE -fPIC -Iinclude -Wno-missing-field-initializers -g3 -xc++ -D_FILE_OFFSET_BITS=64 -c -D_REENTRANT -D_GNU_SOURCE -DUSE_SITECUSTOMIZE -DPERL_RELOCATABLE_INCPUSH -fno-merge-constants -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -o src/compiler/util/Compiler_double_charactor_operator.o src/compiler/util/Compiler_double_charactor_operator.cpp gcc -Isrc -I/home/fly1400/ap1400/lib/CORE -fPIC -Iinclude -Wno-missing-field-initializers -g3 -xc++ -D_FILE_OFFSET_BITS=64 -c -D_REENTRANT -D_GNU_SOURCE -DUSE_SITECUSTOMIZE -DPERL_RELOCATABLE_INCPUSH -fno-merge-constants -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -o src/compiler/util/Compiler_gen_token_decl.o src/compiler/util/Compiler_gen_token_decl.cpp gcc -Isrc -I/home/fly1400/ap1400/lib/CORE -fPIC -Iinclude -Wno-missing-field-initializers -g3 -xc++ -D_FILE_OFFSET_BITS=64 -c -D_REENTRANT -D_GNU_SOURCE -DUSE_SITECUSTOMIZE -DPERL_RELOCATABLE_INCPUSH -fno-merge-constants -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -o src/compiler/util/Compiler_reserved_keyword.o src/compiler/util/Compiler_reserved_keyword.cpp gcc -Isrc -I/home/fly1400/ap1400/lib/CORE -fPIC -Iinclude -Wno-missing-field-initializers -g3 -xc++ -D_FILE_OFFSET_BITS=64 -c -D_REENTRANT -D_GNU_SOURCE -DUSE_SITECUSTOMIZE -DPERL_RELOCATABLE_INCPUSH -fno-merge-constants -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -o src/compiler/util/Compiler_token.o src/compiler/util/Compiler_token.cpp gcc -Isrc -I/home/fly1400/ap1400/lib/CORE -fPIC -Iinclude -Wno-missing-field-initializers -g3 -xc++ -D_FILE_OFFSET_BITS=64 -c -D_REENTRANT -D_GNU_SOURCE -DUSE_SITECUSTOMIZE -DPERL_RELOCATABLE_INCPUSH -fno-merge-constants -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -o src/compiler/util/Compiler_triple_charactor_operator.o src/compiler/util/Compiler_triple_charactor_operator.cpp gcc -Isrc -I/home/fly1400/ap1400/lib/CORE -fPIC -Iinclude -Wno-missing-field-initializers -g3 -xc++ -D_FILE_OFFSET_BITS=64 -c -D_REENTRANT -D_GNU_SOURCE -DUSE_SITECUSTOMIZE -DPERL_RELOCATABLE_INCPUSH -fno-merge-constants -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -o src/compiler/util/Compiler_util.o src/compiler/util/Compiler_util.cpp gcc -Isrc -I/home/fly1400/ap1400/lib/CORE -DVERSION="0.22" -DXS_VERSION="0.22" -fPIC -Iinclude -Wno-missing-field-initializers -g3 -xc++ -D_FILE_OFFSET_BITS=64 -c -D_REENTRANT -D_GNU_SOURCE -DUSE_SITECUSTOMIZE -DPERL_RELOCATABLE_INCPUSH -fno-merge-constants -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -o lib/Compiler/Lexer.o lib/Compiler/Lexer.c ExtUtils::Mkbootstrap::Mkbootstrap('blib/arch/auto/Compiler/Lexer/Lexer.bs') gcc -shared -O2 -o blib/arch/auto/Compiler/Lexer/Lexer.so lib/Compiler/Lexer.o src/compiler/lexer/Compiler_annotator.o src/compiler/lexer/Compiler_lexer.o src/compiler/lexer/Compiler_manager.o src/compiler/lexer/Compiler_scanner.o src/compiler/util/Compiler_double_charactor_operator.o src/compiler/util/Compiler_gen_token_decl.o src/compiler/util/Compiler_reserved_keyword.o src/compiler/util/Compiler_token.o src/compiler/util/Compiler_triple_charactor_operator.o src/compiler/util/Compiler_util.o -lstdc++ GOCCY/Compiler-Lexer-0.22.tar.gz ./Build -- OK Running Build test >>> ./Build test verbose=1 t/Lexer.t ............... 1..1 ok 1 - use Compiler::Lexer; $VAR1 = [ { 'args' => '', 'name' => 'Test::Module' } ]; ok t/format.t .............. ok 1 - use Compiler::Lexer; # Subtest: tokenize ok 1 1..1 ok 2 - tokenize # Subtest: omitted handler name ok 1 1..1 ok 3 - omitted handler name # Subtest: do not misrecognize when confusing case ok 1 1..1 ok 4 - do not misrecognize when confusing case 1..4 ok t/issue_32.t ............ ok 1 ok 2 ok 3 ok 4 ok 5 ok 6 1..6 ok t/issue_35.t ............ ok 1 1..1 ok t/issue_38.t ............ ok 1 ok 2 1..2 ok t/issue_39.t ............ ok 1 1..1 ok t/issue_40.t ............ ok 1 1..1 ok t/issue_42.t ............ ok 1 1..1 ok t/issue_43.t ............ ok 1 1..1 ok t/issue_44.t ............ ok 1 1..1 ok t/issue_45.t ............ ok 1 1..1 ok t/issue_48.t ............ ok 1 1..1 ok t/issue_53.t ............ $VAR1 = [ bless( { 'kind' => 31, 'has_warnings' => 0, 'stype' => 0, 'name' => 'RegReplace', 'data' => 's', 'type' => 155, 'line' => 1 }, 'Compiler::Lexer::Token' ), bless( { 'kind' => 24, 'has_warnings' => 0, 'stype' => 0, 'name' => 'RegDelim', 'data' => '/', 'type' => 151, 'line' => 1 }, 'Compiler::Lexer::Token' ), bless( { 'kind' => 24, 'has_warnings' => 0, 'stype' => 0, 'name' => 'RegReplaceFrom', 'data' => '', 'type' => 156, 'line' => 1 }, 'Compiler::Lexer::Token' ), bless( { 'kind' => 24, 'has_warnings' => 0, 'stype' => 0, 'name' => 'RegMiddleDelim', 'data' => '/', 'type' => 153, 'line' => 1 }, 'Compiler::Lexer::Token' ), bless( { 'kind' => 24, 'has_warnings' => 0, 'stype' => 0, 'name' => 'RegReplaceTo', 'data' => '', 'type' => 157, 'line' => 1 }, 'Compiler::Lexer::Token' ), bless( { 'kind' => 24, 'has_warnings' => 0, 'stype' => 0, 'name' => 'RegDelim', 'data' => '/', 'type' => 151, 'line' => 1 }, 'Compiler::Lexer::Token' ), bless( { 'kind' => 21, 'has_warnings' => 0, 'stype' => 0, 'name' => 'SemiColon', 'data' => ';', 'type' => 106, 'line' => 1 }, 'Compiler::Lexer::Token' ) ]; ok 1 1..1 ok t/issue_reports.t ....... ok 1 - use Compiler::Lexer; # Subtest: tokenize ok 1 1..1 ok 2 - tokenize 1..2 ok t/package.t ............. 1..1 ok 1 - use Compiler::Lexer; $VAR1 = [ bless( { 'kind' => 26, 'has_warnings' => 0, 'stype' => 0, 'name' => 'Package', 'data' => 'package', 'type' => 128, 'line' => 1 }, 'Compiler::Lexer::Token' ), bless( { 'kind' => 27, 'has_warnings' => 0, 'stype' => 0, 'name' => 'Class', 'data' => 'Foo', 'type' => 129, 'line' => 1 }, 'Compiler::Lexer::Token' ) ]; ok t/perl6.t ............... ok 1 ok 2 1..2 ok Timeout (max run time is 300s) /home/fly1400/ap1400/bin/perl-static killed by signal 15