Localisation updates for core messages from Betawiki (2008-01-04 16:36 CET)
[lhc/web/wiklou.git] / maintenance / parserTests.php
index 3f6dbc8..4f8edc1 100644 (file)
@@ -18,8 +18,7 @@
 # http://www.gnu.org/copyleft/gpl.html
 
 /**
- * @package MediaWiki
- * @subpackage Maintenance
+ * @addtogroup Maintenance
  */
 
 /** */
@@ -29,17 +28,20 @@ if( isset( $options['help'] ) ) {
     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
 
 
@@ -59,7 +61,11 @@ if( isset( $options['file'] ) ) {
        // 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);
-?>
+