From: Antoine Musso Date: Wed, 16 May 2007 22:04:09 +0000 (+0000) Subject: add 'fast' target, skip the slow 'maint' tests. X-Git-Tag: 1.31.0-rc.0~52890 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/password.php?a=commitdiff_plain;h=7d5558edf2c09823caccaf8d898aa68da354533e;p=lhc%2Fweb%2Fwiklou.git add 'fast' target, skip the slow 'maint' tests. --- diff --git a/Makefile b/Makefile index b659cad2e4..b9d5b1cfad 100644 --- a/Makefile +++ b/Makefile @@ -2,8 +2,24 @@ # This Makefile is used to test some MediaWiki functions. If you # want to install MediaWiki, point your browser to ./config/ # + +# Configuration: +PROVE_BIN="prove" + +# Describe our tests: +BASE_TEST=$(wildcard t/*.t) +INCLUDES_TESTS=$(wildcard t/inc/*t) +MAINTENANCE_TESTS=$(wildcard t/maint/*t) + +# Build groups: +FAST_TESTS=$(BASE_TEST) $(INCLUDES_TESTS) +ALL_TESTS=$(BASE_TEST) $(INCLUDES_TESTS) $(MAINTENANCE_TESTS) + test: Test.php - prove -r t + $(PROVE_BIN) $(ALL_TESTS) + +fast: Test.php + $(PROVE_BIN) $(FAST_TESTS) -verbose: - prove -v -r t | egrep -v '^ok' +verbose: Test.php + $(PROVE_BIN) -v $(ALL_TESTS) | egrep -v '^ok'