From: Antoine Musso Date: Tue, 10 Jan 2012 20:50:34 +0000 (+0000) Subject: move parser fuzz test to ParserFuzz group X-Git-Tag: 1.31.0-rc.0~25365 X-Git-Url: http://git.cyclocoop.org/%22%2C%20generer_url_ecrire%28?a=commitdiff_plain;h=f0493a88a0b9caa20121a644b973dff566b09d90;p=lhc%2Fweb%2Fwiklou.git move parser fuzz test to ParserFuzz group Somehow fixes bug 29493: « Put parser fuzz tests in @group and disable by default » --- diff --git a/tests/phpunit/Makefile b/tests/phpunit/Makefile index 24536efc8e..8a55dae0e6 100644 --- a/tests/phpunit/Makefile +++ b/tests/phpunit/Makefile @@ -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 diff --git a/tests/phpunit/includes/parser/NewParserTest.php b/tests/phpunit/includes/parser/NewParserTest.php index e999796da3..9a102464bc 100644 --- a/tests/phpunit/includes/parser/NewParserTest.php +++ b/tests/phpunit/includes/parser/NewParserTest.php @@ -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; diff --git a/tests/phpunit/suite.xml b/tests/phpunit/suite.xml index 5c07cd444d..8c942a49a8 100644 --- a/tests/phpunit/suite.xml +++ b/tests/phpunit/suite.xml @@ -34,6 +34,7 @@ Utility Broken + ParserFuzz Stub