Pass the -a option to diff in case there are tests with
authorWil Mahan <wmahan@users.mediawiki.org>
Mon, 11 Oct 2004 21:55:35 +0000 (21:55 +0000)
committerWil Mahan <wmahan@users.mediawiki.org>
Mon, 11 Oct 2004 21:55:35 +0000 (21:55 +0000)
non-text characters; set wgMaxTocLevel global; use
.PHONY target in Makefile in case someone happens
to have a file named 'test' or similar in the
maintenance/ directory.

maintenance/Makefile
maintenance/parserTests.php

index 8ceeb79..1138fe6 100644 (file)
@@ -1,3 +1,4 @@
+.PHONY: help make test
 help:
        # Run 'make test' to run the parser tests.
        # Run 'make doc' to run the phpdoc generation.
index cc1d49c..a6bcb33 100644 (file)
@@ -293,6 +293,7 @@ class ParserTest {
                        'wgLoadBalancer' => LoadBalancer::newFromParams( $GLOBALS['wgDBservers'] ),
                        'wgLang' => new LanguageUtf8(),
                        'wgNamespacesWithSubpages' => array( 0 => preg_match('/\\bsubpage\\b/i', $opts)),
+                       'wgMaxTocLevel' => 999,
                        );
                $this->savedGlobals = array();
                foreach( $settings as $var => $val ) {
@@ -445,7 +446,7 @@ class ParserTest {
                $outfile = "$prefix-actual";
                $this->dumpToFile( $output, $outfile );
                
-               $diff = `diff -u $infile $outfile`;
+               $diff = `diff -au $infile $outfile`;
                unlink( $infile );
                unlink( $outfile );