【问题标题】:Mojolicious home-test questionMojolicious 家庭测试题
【发布时间】:2011-08-25 17:32:33
【问题描述】:

我尝试安装 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)

【问题讨论】:

  • 你试过最新的 Mojolicious 了吗?

标签: perl mojolicious


【解决方案1】:

我找到了家庭测试未通过的原因 - 这是设置(我的 .bashrc 中的export MOJO_HOME=/home/me/public_html)。

【讨论】:

    【解决方案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
    

    【讨论】:

    • 同样对于 1.92 版,测试失败。
    • 你的设置很奇怪吗?其他测试成功了吗?如果我在你的位置,我会强制安装..
    猜你喜欢
    • 1970-01-01
    • 2020-11-27
    • 1970-01-01
    • 2022-01-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-01-29
    相关资源
    最近更新 更多