move parser fuzz test to ParserFuzz group
authorAntoine Musso <hashar@users.mediawiki.org>
Tue, 10 Jan 2012 20:50:34 +0000 (20:50 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Tue, 10 Jan 2012 20:50:34 +0000 (20:50 +0000)
Somehow fixes bug 29493:
« Put parser fuzz tests in @group and disable by default »

tests/phpunit/Makefile
tests/phpunit/includes/parser/NewParserTest.php
tests/phpunit/suite.xml

index 24536ef..8a55dae 100644 (file)
@@ -46,17 +46,26 @@ coverage:
 
 parser:
        ${PU} --group Parser
+parserfuzz:
+       @echo "******************************************************************"
+       @echo "* This WILL kill your computer by eating all memory AND all swap *"
+       @echo "*                                                                *"
+       @echo "* If you are on a production machine. ABORT NOW!!                *"
+       @echo "*  Press control+C to stop                                       *"
+       @echo "*                                                                *"
+       @echo "******************************************************************"
+       ${PU} --group Parser,ParserFuzz
 noparser:
-       ${PU} --exclude-group Parser,Broken,Stub
+       ${PU} --exclude-group Parser,Broken,ParserFuzz,Stub
 
 safe:
-       ${PU} --exclude-group Broken,Destructive,Stub
+       ${PU} --exclude-group Broken,ParserFuzz,Destructive,Stub
 
 databaseless:
-       ${PU} --exclude-group Broken,Destructive,Database,Stub
+       ${PU} --exclude-group Broken,ParserFuzz,Destructive,Database,Stub
 
 database:
-       ${PU} --exclude-group Broken,Destructive,Stub --group Database
+       ${PU} --exclude-group Broken,ParserFuzz,Destructive,Stub --group Database
 
 list-groups:
        ${PU} --list-groups
index e999796..9a10246 100644 (file)
@@ -553,7 +553,7 @@ class NewParserTest extends MediaWikiTestCase {
         *
         * @todo @fixme Needs some work to not eat memory until the world explodes
         *
-        * @group Broken
+        * @group ParserFuzz
         */
        function testFuzzTests() {
                global $wgParserTestFiles;
index 5c07cd4..8c942a4 100644 (file)
@@ -34,6 +34,7 @@
                <exclude>
                        <group>Utility</group>
                        <group>Broken</group>
+                       <group>ParserFuzz</group>
                        <group>Stub</group>
                </exclude>
        </groups>