# http://www.gnu.org/copyleft/gpl.html
/**
- * @package MediaWiki
- * @subpackage Maintenance
+ * @addtogroup Maintenance
*/
/** */
echo <<<ENDS
MediaWiki $wgVersion parser test suite
Usage: php parserTests.php [--quick] [--quiet] [--show-output]
- [--color[=(yes|no|light)]]
+ [--color[=(yes|no)]]
[--regex=<expression>] [--file=<testfile>]
+ [--record] [--compare]
[--help]
Options:
--quick Suppress diff output of failed tests
--quiet Suppress notification of passed tests (shows only failed tests)
--show-output Show expected and actual output
--color Override terminal detection and force color output on or off
- 'light' option is similar to 'yes' but with color for dark backgrounds
+ use wgCommandLineDarkBg = true; if your term is dark
--regex Only run tests whose descriptions which match given regex
--file 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.
--help Show this help message
// Default parser tests and any set from extensions or local config
$files = $wgParserTestFiles;
}
+
+# Print out software version to assist with locating regressions
+$version = SpecialVersion::getVersion();
+echo( "This is MediaWiki version {$version}.\n\n" );
$ok = $tester->runTestsFromFiles( $files );
exit ($ok ? 0 : -1);
-?>
+