2

Mojolicious-1.90をインストールしようとしましたが、t / mojo/home.tテストに合格しませんでした。

t/mojo/home.t .............................. 1/5 
#   Failed test 'right path detected'
#   at t/mojo/home.t line 27.
#     Structures begin differing at:
#          $got->[3] = '.cpan'
#     $expected->[3] = 'public_html'

#   Failed test 'right path detected'
#   at t/mojo/home.t line 33.
#     Structures begin differing at:
#          $got->[3] = 'public_html'
#     $expected->[3] = '.cpan'

#   Failed test 'right path detected'
#   at t/mojo/home.t line 39.
#     Structures begin differing at:
#          $got->[3] = '.cpan'
#     $expected->[3] = 'public_html'
# Looks like you failed 3 tests of 5.
t/mojo/home.t .............................. Dubious, test returned 3 (wstat 768, 0x300)

これはバグですか、それとも他の何かが間違っている可能性がありますか?

バージョン1.92でも、同じエラーが発生します。

t/mojo/home.t .............................. 1/5 
#   Failed test 'right path detected'
#   at t/mojo/home.t line 27.
#     Structures begin differing at:
#          $got->[3] = 'Mojolicious-1.92'
#     $expected->[3] = 'public_html'

#   Failed test 'right path detected'
#   at t/mojo/home.t line 33.
#     Structures begin differing at:
#          $got->[3] = 'public_html'
#     $expected->[3] = 'Mojolicious-1.92'

#   Failed test 'right path detected'
#   at t/mojo/home.t line 39.
#     Structures begin differing at:
#          $got->[3] = 'Mojolicious-1.92'
#     $expected->[3] = 'public_html'
# Looks like you failed 3 tests of 5.
t/mojo/home.t .............................. Dubious, test returned 3 (wstat 768, 0x300)
4

2 に答える 2

3

ホームテストに合格しなかった理由を見つけました-それはセットアップ(export MOJO_HOME=/home/me/public_html私の.bashrc内)でした。

于 2011-08-28T09:16:54.417 に答える
2

ファイルを取得して、自分でテストを実行してみてください。

wget "http://search.cpan.org/CPAN/authors/id/S/SR/SRI/Mojolicious-1.92.tar.gz"
tar -xzf Mojolicious-1.92.tar.gz
cd Mojolicious-1.92
perl Makefile.PL 
    # Checking if your kit is complete...
    # Looks good
    # Writing Makefile for Mojolicious
make test
于 2011-08-26T08:16:34.520 に答える