resourceloader: Make tests less susceptible to timestamp races
[lhc/web/wiklou.git] / tests / phpunit / Makefile
index 61bfc17..a33b86a 100644 (file)
@@ -1,8 +1,8 @@
-.PHONY: help test phpunit install coverage warning destructive parser noparser safe databaseless list-groups
+.PHONY: help test phpunit coverage warning destructive parser noparser safe databaseless list-groups
 .DEFAULT: warning
 
 SHELL = /bin/sh
-CONFIG_FILE = $(shell pwd)/suite.xml
+CONFIG_FILE = ${PWD}/suite.xml
 PHP = php
 PU = ${PHP} phpunit.php --configuration ${CONFIG_FILE} ${FLAGS}
 
@@ -35,9 +35,6 @@ destructive: phpunit
 phpunit:
        ${PU}
 
-install:
-       ./install-phpunit.sh
-
 tap:
        ${PU} --tap
 
@@ -46,14 +43,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
+       ${PU} --exclude-group Parser,Broken,ParserFuzz,Stub
 
 safe:
-       ${PU} --exclude-group Broken,Destructive
+       ${PU} --exclude-group Broken,ParserFuzz,Destructive,Stub
 
 databaseless:
-       ${PU} --exclude-group Broken,Destructive,Database
+       ${PU} --exclude-group Broken,ParserFuzz,Destructive,Database,Stub
+
+database:
+       ${PU} --exclude-group Broken,ParserFuzz,Destructive,Stub --group Database
 
 list-groups:
        ${PU} --list-groups
@@ -71,7 +80,7 @@ help:
        #                       You will need the Xdebug PHP extension for the later.
        #   [no]parser          Skip or only run Parser tests
        #
-       #   list-groups         List availabe Tests groups.
+       #   list-groups         List available Tests groups.
        #
        #  Options:
        #   CONFIG_FILE         Path to a PHPUnit configuration file (default: suite.xml)