diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2010-07-28 11:52:48 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2010-07-28 11:52:48 +0200 |
commit | 222b01f5169f1c7e69762e0e8904c24f78f71882 (patch) | |
tree | 8e932e12546bb991357ec48eb1638d1770be7a35 /maintenance/parserTests.php | |
parent | 00ab76a6b686e98a914afc1975812d2b1aaa7016 (diff) |
update to MediaWiki 1.16.0
Diffstat (limited to 'maintenance/parserTests.php')
-rw-r--r-- | maintenance/parserTests.php | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/maintenance/parserTests.php b/maintenance/parserTests.php index 9a1a4807..78530716 100644 --- a/maintenance/parserTests.php +++ b/maintenance/parserTests.php @@ -40,16 +40,29 @@ Options: --file=<testfile> Run test cases from a custom file instead of parserTests.txt --record Record tests in database --compare Compare with recorded results, without updating the database. + --setversion When using --record, set the version string to use (useful + with git-svn so that you can get the exact revision) --keep-uploads Re-use the same upload directory for each test, don't delete it --fuzz Do a fuzz test instead of a normal test --seed <n> Start the fuzz test from the specified seed --help Show this help message - + --run-disabled run disabled tests + --upload Upload test results to remote wiki (per \$wgParserTestRemote) ENDS; exit( 0 ); } +# Cases of weird db corruption were encountered when running tests on earlyish +# versions of SQLite +if ( $wgDBtype == 'sqlite' ) { + $db = wfGetDB( DB_MASTER ); + $version = $db->getServerVersion(); + if ( version_compare( $version, '3.6' ) < 0 ) { + die( "Parser tests require SQLite version 3.6 or later, you have $version\n" ); + } +} + # There is a convention that the parser should never # refer to $wgTitle directly, but instead use the title # passed to it. |