diff options
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. |