Braces and spaces
[lhc/web/wiklou.git] / maintenance / parserTests.php
index 66b3e22..5a37103 100644 (file)
  * @ingroup Maintenance
  */
 
-/** */
-require( 'parserTests.inc' );
+$options = array( 'quick', 'color', 'quiet', 'help', 'show-output', 'record', 'run-disabled' );
+$optionsWithArgs = array( 'regex', 'seed', 'setversion' );
+
+require_once( dirname( __FILE__ ) . '/commandLine.inc' );
+require_once( dirname( __FILE__ ) . '/parserTests.inc' );
 
 if ( isset( $options['help'] ) ) {
     echo <<<ENDS
@@ -67,7 +70,7 @@ if ( $wgDBtype == 'sqlite' ) {
 # refer to $wgTitle directly, but instead use the title
 # passed to it.
 $wgTitle = Title::newFromText( 'Parser test script do not use' );
-$tester = new ParserTest();
+$tester = new ParserTest($options);
 
 if ( isset( $options['file'] ) ) {
        $files = array( $options['file'] );