Mojolicious 家庭测试问题

发布于 2024-12-01 19:42:59 字数 1625 浏览 1 评论 0原文

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

I tried to install Mojolicious-1.90 but didn't pass the t/mojo/home.t test.

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)

Is this a bug or could be wrong something else?

With version 1.92 I get the same error:

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)

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

熊抱啵儿 2024-12-08 19:42:59

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

I've found the reason, why the home test didn't pass - it was the setup (export MOJO_HOME=/home/me/public_html in my .bashrc).

╄→承喏 2024-12-08 19:42:59

尝试抓取文件并自己运行测试:

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

Try grabbing the file and run the tests yourself:

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
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文