2011-08-25 94 views
2

我試圖安裝Mojolicious-1.90,但沒有通過t/mojo/home.t測試。Mojolicious家庭測試問題

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) 
+0

你試過最新的Mojolicious嗎? –

回答

3

我已經找到了原因,爲什麼家庭測試沒」傳遞 - 這是設置(我的.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 
+0

也與版本1.92測試失敗。 –

+0

你在一個奇怪的設置?其他測試是否成功?我只是預先安裝,如果我在哪裏你.. –