Last active
December 18, 2015 08:39
-
-
Save ysasaki/5755283 to your computer and use it in GitHub Desktop.
追記: Minilla v0.5.2で修正済み Fooのminil test実行時に、依存モジュールTest::Name::FromLine(Minilla使用)がインストール実行されるが、その際にauthor testも実行されている
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Minillaでテスト用のdistを作成 | |
vm-ubuntu /tmp% minil new Foo | |
Writing lib/Foo.pm | |
Writing Changes | |
Writing t/00_compile.t | |
Writing .travis.yml | |
Writing .gitignore | |
Writing LICENSE | |
Writing cpanfile | |
Initializing git Foo | |
[Foo] $ git init | |
Initialized empty Git repository in /tmp/Foo/.git/ | |
Detecting project name from directory name. | |
Retrieving meta data from lib/Foo.pm. | |
Name: Foo | |
Abstract: It's new $module | |
Version: 0.01 | |
fatal: bad default revision 'HEAD' | |
[Foo] $ git add . | |
Finished to create Foo | |
vm-ubuntu /tmp% cd Foo/ | |
vm-ubuntu /tmp/Foo% git add -u (git)-[master] | |
vm-ubuntu /tmp/Foo% git st (git)-[master] | |
## Initial commit on master | |
A .gitignore | |
A .travis.yml | |
A Build.PL | |
A Changes | |
A LICENSE | |
A META.json | |
A README.md | |
A cpanfile | |
A lib/Foo.pm | |
A t/00_compile.t | |
vm-ubuntu /tmp/Foo% git commit -m 'Initial commt' | |
[master (root-commit) e51271b] Initial commt | |
10 files changed, 616 insertions(+), 0 deletions(-) | |
create mode 100644 .gitignore | |
create mode 100644 .travis.yml | |
create mode 100644 Build.PL | |
create mode 100644 Changes | |
create mode 100644 LICENSE | |
create mode 100644 META.json | |
create mode 100644 README.md | |
create mode 100644 cpanfile | |
create mode 100644 lib/Foo.pm | |
create mode 100644 t/00_compile.t | |
# Fooの依存にTest::Name::FromLineを追加 | |
vm-ubuntu /tmp/Foo% vim cpanfile | |
vm-ubuntu /tmp/Foo% cat cpanfile (git)-[master] - | |
requires 'perl', '5.008001'; | |
on 'test' => sub { | |
requires 'Test::More', '0.98'; | |
requires 'Test::Name::FromLine', 0; | |
}; | |
vm-ubuntu /tmp/Foo% git add -u (git)-[master] - | |
vm-ubuntu /tmp/Foo% git commit -m 'Adds Test::Name::FromLine' (git)-[master] + | |
[master 5903916] Adds Test::Name::FromLine | |
1 files changed, 1 insertions(+), 0 deletions(-) | |
# Test::Name::FromLineのinstallが実行されるように一旦削除 | |
vm-ubuntu /tmp/Foo% cpanm -U Test::Name::FromLine | |
# Fooのテスト実行 | |
vm-ubuntu /tmp/Foo% minil test (git)-[master] | |
! Installing Test::Name::FromLine failed. See /home/ysasaki/.cpanm/build.log for details. | |
! Installing the dependencies failed: Module 'Test::Name::FromLine' is not installed | |
! Bailing out the installation for Foo-0.01. Retry with --prompt or --force. | |
! Installing Test::Name::FromLine failed. See /home/ysasaki/.cpanm/build.log for details. | |
! Installing the dependencies failed: Module 'Test::Name::FromLine' is not installed | |
! Bailing out the installation for Foo-0.01. Retry with --prompt or --force. | |
Creating working directory: /tmp/Foo/.build/Iw4nLpkz | |
cp Build.PL /tmp/Foo/.build/Iw4nLpkz/Build.PL | |
cp Changes /tmp/Foo/.build/Iw4nLpkz/Changes | |
cp LICENSE /tmp/Foo/.build/Iw4nLpkz/LICENSE | |
cp META.json /tmp/Foo/.build/Iw4nLpkz/META.json | |
cp README.md /tmp/Foo/.build/Iw4nLpkz/README.md | |
cp cpanfile /tmp/Foo/.build/Iw4nLpkz/cpanfile | |
cp lib/Foo.pm /tmp/Foo/.build/Iw4nLpkz/lib/Foo.pm | |
cp t/00_compile.t /tmp/Foo/.build/Iw4nLpkz/t/00_compile.t | |
Building /tmp/Foo/.build/Iw4nLpkz | |
Detecting project name from directory name. | |
Retrieving meta data from lib/Foo.pm. | |
Name: Foo | |
Abstract: It's new $module | |
Version: 0.01 | |
Writing MANIFEST file | |
Writing release tests: xt/minimum_version.t | |
Writing release tests: xt/cpan_meta.t | |
Writing release tests: xt/pod.t | |
Writing release tests: xt/spelling.t | |
[Iw4nLpkz] $ /home/ysasaki/perl5/perlbrew/perls/perl-5.14.2/bin/perl -I. Build.PL | |
Created MYMETA.yml and MYMETA.json | |
Creating new 'Build' script for 'Foo' version '0.01' | |
Merging cpanfile prereqs to MYMETA.yml | |
Merging cpanfile prereqs to MYMETA.json | |
[Iw4nLpkz] $ /home/ysasaki/perl5/perlbrew/perls/perl-5.14.2/bin/perl -I. Build build | |
Building Foo | |
[Iw4nLpkz] $ /home/ysasaki/perl5/perlbrew/perls/perl-5.14.2/bin/perl -I. Build build | |
Building Foo | |
! Installing Test::Name::FromLine failed. See /home/ysasaki/.cpanm/build.log for details. | |
! Installing the dependencies failed: Module 'Test::Name::FromLine' is not installed | |
! Bailing out the installation for Foo-0.01. Retry with --prompt or --force. | |
! Installing Test::Name::FromLine failed. See /home/ysasaki/.cpanm/build.log for details. | |
! Installing the dependencies failed: Module 'Test::Name::FromLine' is not installed | |
! Bailing out the installation for Foo-0.01. Retry with --prompt or --force. | |
! Installing Test::Name::FromLine failed. See /home/ysasaki/.cpanm/build.log for details. | |
! Installing the dependencies failed: Module 'Test::Name::FromLine' is not installed | |
! Bailing out the installation for Foo-0.01. Retry with --prompt or --force. | |
! Installing Test::Name::FromLine failed. See /home/ysasaki/.cpanm/build.log for details. | |
! Installing the dependencies failed: Module 'Test::Name::FromLine' is not installed | |
! Bailing out the installation for Foo-0.01. Retry with --prompt or --force. | |
[Iw4nLpkz] $ /home/ysasaki/perl5/perlbrew/perls/perl-5.14.2/bin/perl -I. Build test | |
t/00_compile.t ........ ok | |
xt/cpan_meta.t ........ skipped: Test::CPAN::Meta required for testing META.yml | |
xt/minimum_version.t .. skipped: Test::MinimumVersion required for testing perl minimum version | |
xt/pod.t .............. skipped: Test::Pod 1.41 required for testing POD | |
xt/spelling.t ......... skipped: Test::Spellunker is not installed. | |
All tests successful. | |
Files=5, Tests=1, 1 wallclock secs ( 0.02 usr 0.01 sys + 0.07 cusr 0.01 csys = 0.11 CPU) | |
Result: PASS | |
Removing /tmp/Foo/.build/Iw4nLpkz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cpanm (App::cpanminus) 1.6914 on perl 5.014002 built for i686-linux | |
Work directory is /home/ysasaki/.cpanm/work/1370938648.29102 | |
You have make /usr/bin/make | |
You have LWP 6.03 | |
You have /bin/tar: tar (GNU tar) 1.26 | |
Copyright (C) 2011 Free Software Foundation, Inc. | |
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>. | |
This is free software: you are free to change and redistribute it. | |
There is NO WARRANTY, to the extent permitted by law. | |
Written by John Gilmore and Jay Fenlason. | |
You have /usr/bin/unzip | |
--> Working on . | |
Entering /tmp/Foo | |
Checking configure dependencies from META.json | |
Checking if you have CPAN::Meta 0 ... Yes (2.120921) | |
Checking if you have Module::Build 0.38 ... Yes (0.4005) | |
Checking if you have CPAN::Meta::Prereqs 0 ... Yes (2.120921) | |
Configuring Foo-0.01 | |
-> OK | |
Checking if you have Test::More 0.98 ... Yes (0.98) | |
Checking if you have Test::Name::FromLine 0 ... No | |
==> Found dependencies: Test::Name::FromLine | |
Searching Test::Name::FromLine on cpanmetadb ... | |
--> Working on Test::Name::FromLine | |
Fetching http://www.cpan.org/authors/id/S/SA/SATOH/Test-Name-FromLine-0.10.tar.gz | |
-> OK | |
Unpacking Test-Name-FromLine-0.10.tar.gz | |
Entering Test-Name-FromLine-0.10 | |
Checking configure dependencies from META.json | |
Checking if you have CPAN::Meta 0 ... Yes (2.120921) | |
Checking if you have Module::Build 0.38 ... Yes (0.4005) | |
Checking if you have CPAN::Meta::Prereqs 0 ... Yes (2.120921) | |
Configuring Test-Name-FromLine-0.10 | |
Running Build.PL | |
Created MYMETA.yml and MYMETA.json | |
Creating new 'Build' script for 'Test-Name-FromLine' version '0.10' | |
Merging cpanfile prereqs to MYMETA.yml | |
Merging cpanfile prereqs to MYMETA.json | |
-> OK | |
Checking dependencies from MYMETA.json ... | |
Checking if you have Test::More 0 ... Yes (0.98) | |
Checking if you have Test::Differences 0 ... Yes (0.61) | |
Checking if you have Filter::Util::Call 0 ... Yes (1.08) | |
Checking if you have Test::Builder 0 ... Yes (0.98) | |
Checking if you have ExtUtils::MakeMaker 6.36 ... Yes (6.66) | |
Checking if you have File::Slurp 0 ... Yes (9999.19) | |
Building and testing Test-Name-FromLine-0.10 | |
Building Test-Name-FromLine | |
t/00_compile.t ........ ok | |
Use of uninitialized value $filename in string eq at /home/ysasaki/.cpanm/work/1370938648.29102/Test-Name-FromLine-0.10/blib/lib/Test/Name/FromLine.pm line 21. | |
t/02_invalid_level.t .. ok | |
t/base.t .............. ok | |
t/chdir.t ............. ok | |
t/line_from_abs.t ..... ok | |
Can't locate Test/Perl/Critic.pm in @INC (@INC contains: /home/ysasaki/.cpanm/work/1370938648.29102/Test-Name-FromLine-0.10/blib/lib /home/ysasaki/.cpanm/work/1370938648.29102/Test-Name-FromLine-0.10/blib/arch /home/ysasaki/.cpanm/work/1370938648.29102/Test-Name-FromLine-0.10/_build/lib /home/ysasaki/perl5/perlbrew/perls/perl-5.14.2/lib/site_perl/5.14.2/i686-linux /home/ysasaki/perl5/perlbrew/perls/perl-5.14.2/lib/site_perl/5.14.2 /home/ysasaki/perl5/perlbrew/perls/perl-5.14.2/lib/5.14.2/i686-linux /home/ysasaki/perl5/perlbrew/perls/perl-5.14.2/lib/5.14.2 .) at xt/98_perlcritic.t line 3. | |
BEGIN failed--compilation aborted at xt/98_perlcritic.t line 3. | |
xt/98_perlcritic.t .... | |
Dubious, test returned 2 (wstat 512, 0x200) | |
No subtests run | |
Test Summary Report | |
------------------- | |
xt/98_perlcritic.t (Wstat: 512 Tests: 0 Failed: 0) | |
Non-zero exit status: 2 | |
Parse errors: No plan found in TAP output | |
Files=6, Tests=10, 0 wallclock secs ( 0.02 usr 0.02 sys + 0.32 cusr 0.05 csys = 0.41 CPU) | |
Result: FAIL | |
Failed 1/6 test programs. 0/10 subtests failed. | |
-> FAIL Installing Test::Name::FromLine failed. See /home/ysasaki/.cpanm/build.log for details. | |
-> FAIL Installing the dependencies failed: Module 'Test::Name::FromLine' is not installed | |
-> FAIL Bailing out the installation for Foo-0.01. Retry with --prompt or --force. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment