On 22/10/2007, jean jayet <jean.jayet(a)france.sun.com> wrote:
trying to execute the php tests under maintenance
subdir i catch the
following output
don't know how to fix it ?
does anybody face same issue ?
First of all, please note that the parser test suite is an incomplete
test suite that's supposed to help us avoid major regressions in the
behaviour of our "parser"; it's not a general unit test suite for
MediaWiki, and shouldn't be treated like one.
In later versions, we do have some, limited tests available (see
tests/), but again, the coverage is nowhere near complete. We don't
have a general-purpose "make test"-esque set of tests for the current
codebase, and won't have, for the foreseeable future.
In this particular case, the parser tests will attempt to create a
"dumb database" using temp tables which emulates a simple MediaWiki
setup, and will insert various fake pages, images and so on to allow
the parser code to be executed and perform various operations - a good
example would be page existence, since this affects the correct
outcome for a link.
You're running under PostgreSQL, it would seem, and here of course, we
expose rather well that fact that MediaWiki was not written to work
with it, and that there are several edge cases where the usual
database "abstraction" hasn't taken place, this parser test set-up and
tear-down being just one of those.
The PostgreSQL code that we have doesn't use a "searchindex" table as
is done in the standard MySQL setup; we're using tsearch2 (ask Greg,
the unofficial official PostgreSQL porter for details on this, if it
isn't documented somewhere), and as such, the dumb replication of
tables causes the parser test set-up method to stumble.
The simple solution would be to avoid running the parser tests, as you
seem to want to do - realistically, they will not catch any of the
problems you are likely to face when installing and configuring
MediaWiki; as Platonides has already stated in this thread, you're
currently better off testing the edge cases/borders, e.g. file
uploads, math rendering (if desired), image thumbnailing, etc. since
these rely on external factors or processes not limited to the pure
MediaWiki configuration.
Rob Church