Hi,
I am trying to install MediaWiki::Bot on my Linux machine. It was
installed before (as in: 2 years ago or so) but probably after an
upgrade it got removed.
But I am getting lots of errors during the tests and I don't understand
why.
I have Perl 5.26.1 and using Linux 18.04
Can you help me with this?
Thanks,
Maarten
# Thanks for using MediaWiki::Bot. If any of these
# tests fail, or you need any other assistance with
# the module, please email our support mailing list
# at
perlw...@googlegroups.com, or submit a bug
# to our tracker on github:
http://goo.gl/5Ns48
#
# If you want, you can log in for editing tests.
# To log in for those tests, stop the test suite now,
# set the environment variables PWPUsername and
# PWPPassword, and run the test suite.
t/00-init.t .................... ok
t/01-api_error.t ............... 1/5
# Failed test 'The API error text was returned'
# at t/01-api_error.t line 20.
# 'baduser: Invalid value "" for user parameter
"rvexcludeuser".'
# doesn't match '(?^:^rvbaduser_rvexcludeuser:.*rvexcludeuser)'
# Looks like you failed 1 test of 5.
t/01-api_error.t ............... Dubious, test returned 1 (wstat 256,
0x100)
Failed 1/5 subtests
t/02-login.t ................... skipped: extended test
t/03-get_text.t ................ 3/6
# Failed test 'Section load pass/fail'
# at t/03-get_text.t line 23.
# got: undef
# expected: anything else
Use of uninitialized value $section_wikitext in quotemeta at
t/03-get_text.t line 25.
t/03-get_text.t ................ 6/6 # Looks like you failed 1 test of
6.
t/03-get_text.t ................ Dubious, test returned 1 (wstat 256,
0x100)
Failed 1/6 subtests
t/04-edit.t .................... skipped: extended test
t/05-revert.t .................. skipped: extended test
t/06-get_history.t ............. ok
t/07-unicode.t ................. skipped: extended test
t/08-get_last.t ................ ok
t/09-update_rc.t ............... ok
t/10-what_links_here.t ......... ok
t/11-get_pages_in_category.t ... ok
t/12-linksearch.t .............. ok
t/13-get_namespace_names.t ..... ok
t/14-get_pages_in_namespace.t .. ok
t/15-count_contributions.t ..... ok
t/16-last_active.t ............. ok
t/17-was_blocked.t ............. ok
t/18-is_blocked.t .............. ok
t/19-get_pages.t ............... ok
t/20-assertion.t ............... ok
t/21-get_allusers.t ............ ok
t/22-get_id.t .................. ok
t/23-list_transclusions.t ...... ok
t/24-purge_page.t .............. ok
t/25-sitematrix.t .............. 1/4
# Failed test 'db->domain OK'
# at t/25-sitematrix.t line 27.
# Structures begin differing at:
# $got->[5] = '
aa.wikipedia.org'
# $expected->[5] = undef
# Failed test 'domain->db OK'
# at t/25-sitematrix.t line 43.
# Structures begin differing at:
# $got->[5] = 'aawiki'
# $expected->[5] = undef
# Looks like you failed 2 tests of 4.
t/25-sitematrix.t .............. Dubious, test returned 2 (wstat 512,
0x200)
Failed 2/4 subtests
t/26-diff.t .................... 1/1
# Failed test 'Diff retrieved correctly'
# at t/26-diff.t line 41.
# got: '<tr>
# <td colspan="2" class="diff-lineno">Line 24:</td>
# <td colspan="2" class="diff-lineno">Line 24:</td>
# </tr>
# <tr>
# <td class="diff-marker"> </td>
# <td class="diff-context"><div>;21-get_allusers.t:gets a list of
users from [[Special:ListUsers]] and
[[Special:ListUsers/sysop]]</div></td>
# <td class="diff-marker"> </td>
# <td class="diff-context"><div>;21-get_allusers.t:gets a list of
users from [[Special:ListUsers]] and
[[Special:ListUsers/sysop]]</div></td>
# </tr>
# <tr>
# <td class="diff-marker"> </td>
# <td class="diff-context"><div>;22-get_id.t:gets the pageid for
[[Main Page]]</div></td>
# <td class="diff-marker"> </td>
# <td class="diff-context"><div>;22-get_id.t:gets the pageid for
[[Main Page]]</div></td>
# </tr>
# <tr>
# <td class="diff-marker">â</td>
# <td class="diff-deletedline"><div>;23-list_transclusions.t:requires
[[Template:Perlwikibot-test]] and for [[Template:Tlx]] to be
used</div></td>
# <td colspan="2" class="diff-empty"> </td>
# </tr>
#
# <!-- diff cache key
testwiki:diff:wikidiff2:1.12:old-92376:rev-92373:1.10.0 -->'
# expected: '<tr>
# <td colspan="2" class="diff-lineno">Line 24:</td>
# <td colspan="2" class="diff-lineno">Line 24:</td>
# </tr>
# <tr>
# <td class="diff-marker"> </td>
# <td class="diff-context"><div>;21-get_allusers.t:gets a list of
users from [[Special:ListUsers]] and
[[Special:ListUsers/sysop]]</div></td>
# <td class="diff-marker"> </td>
# <td class="diff-context"><div>;21-get_allusers.t:gets a list of
users from [[Special:ListUsers]] and
[[Special:ListUsers/sysop]]</div></td>
# </tr>
# <tr>
# <td class="diff-marker"> </td>
# <td class="diff-context"><div>;22-get_id.t:gets the pageid for
[[Main Page]]</div></td>
# <td class="diff-marker"> </td>
# <td class="diff-context"><div>;22-get_id.t:gets the pageid for
[[Main Page]]</div></td>
# </tr>
# <tr>
# <td class="diff-marker">â</td>
# <td class="diff-deletedline"><div>;23-list_transclusions.t:requires
[[Template:Perlwikibot-test]] and for [[Template:Tlx]] to be
used</div></td>
# <td colspan="2" class="diff-empty"> </td>
# </tr>'
# Looks like you failed 1 test of 1.
t/26-diff.t .................... Dubious, test returned 1 (wstat 256,
0x100)
Failed 1/1 subtests
t/27-prefixindex.t ............. ok
t/28-search.t .................. ok
t/29-get_log.t ................. ok
t/30-was_g_blocked.t ........... ok
t/31-is_g_blocked.t ............ ok
t/32-was_locked.t .............. 1/2
# Failed test 'lock history'
# at t/32-was_locked.t line 16.
t/32-was_locked.t .............. 2/2 # Looks like you failed 1 test of
2.
t/32-was_locked.t .............. Dubious, test returned 1 (wstat 256,
0x100)
Failed 1/2 subtests
t/33-is_locked.t ............... ok
t/34-secure.t .................. skipped: extended test
t/35-get_protection.t .......... ok
t/36-email.t ................... skipped: Can't email locked accounts
t/37-move.t .................... ok
t/38-test_image_exists.t ....... ok
t/39-image_usage.t ............. ok
t/40-upload.t .................. skipped: extended test
t/41-get_users.t ............... ok
t/42-expandtemplates.t ......... ok
t/43-recentchanges.t ........... ok
t/44-patrol.t .................. skipped: Login with patrol rights
required
t/45-contributions.t ........... 2/3
# Failed test 'Reedy is represented in the results'
# at t/45-contributions.t line 40.
# {
# 'users' => [
# 'Mike.lifeguard'
# ]
# }
# Looks like you failed 1 test of 3.
t/45-contributions.t ........... 3/3
# Failed test 'multiple users'
# at t/45-contributions.t line 42.
# Looks like you failed 1 test of 3.
t/45-contributions.t ........... Dubious, test returned 1 (wstat 256,
0x100)
Failed 1/3 subtests
t/46-usergroups.t .............. 1/1
# Failed test 'Right usergroups were returned'
# at t/46-usergroups.t line 15.
# Structures begin differing at:
# $got->[2] = 'reviewer'
# $expected->[2] = 'editor'
# Looks like you failed 1 test of 1.
t/46-usergroups.t .............. Dubious, test returned 1 (wstat 256,
0x100)
Failed 1/1 subtests
t/47-global_image_usage.t ...... ok
t/48-get_image.t ............... skipped: Imager & Imager::File::JPEG
required
t/49-get_all_categories.t ...... ok
Test Summary Report
-------------------
t/01-api_error.t (Wstat: 256 Tests: 5 Failed: 1)
Failed test: 5
Non-zero exit status: 1
t/03-get_text.t (Wstat: 256 Tests: 6 Failed: 1)
Failed test: 3
Non-zero exit status: 1
t/25-sitematrix.t (Wstat: 512 Tests: 4 Failed: 2)
Failed tests: 2, 4
Non-zero exit status: 2
t/26-diff.t (Wstat: 256 Tests: 1 Failed: 1)
Failed test: 1
Non-zero exit status: 1
t/32-was_locked.t (Wstat: 256 Tests: 2 Failed: 1)
Failed test: 1
Non-zero exit status: 1
t/45-contributions.t (Wstat: 256 Tests: 3 Failed: 1)
Failed test: 3
Non-zero exit status: 1
t/46-usergroups.t (Wstat: 256 Tests: 1 Failed: 1)
Failed test: 1
Non-zero exit status: 1
Files=51, Tests=150, 471 wallclock secs ( 0.48 usr 0.16 sys + 25.00
cusr 3.88 csys = 29.52 CPU)
Result: FAIL
Failed 7/51 test programs. 8/150 subtests failed.
Makefile:875: recipe for target 'test_dynamic' failed
make: *** [test_dynamic] Error 255
Terminal does not support GetHistory.
Lockfile removed.
LIFEGUARD/MediaWiki-Bot-5.006003.tar.gz
/usr/bin/make test -- NOT OK
//hint// to see the cpan-testers results for installing this module,
try:
reports LIFEGUARD/MediaWiki-Bot-5.006003.tar.gz
Failed during this command:
LIFEGUARD/MediaWiki-Bot-5.006003.tar.gz : make_test NO
cpan[2]> exit