From f0493a88a0b9caa20121a644b973dff566b09d90 Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Tue, 10 Jan 2012 20:50:34 +0000 Subject: [PATCH] move parser fuzz test to ParserFuzz group MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Somehow fixes bug 29493: « Put parser fuzz tests in @group and disable by default » --- tests/phpunit/Makefile | 17 +++++++++++++---- tests/phpunit/includes/parser/NewParserTest.php | 2 +- tests/phpunit/suite.xml | 1 + 3 files changed, 15 insertions(+), 5 deletions(-) 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 -- 2.20.1