X-Git-Url: https://git.cyclocoop.org/?a=blobdiff_plain;f=Makefile;h=b9d5b1cfadbd86a679bc463ad619ea408e82868d;hb=7e5449b4d218251865946e6625c205e8bcd40fdc;hp=b659cad2e4fd84733a06205a4bd7f348aac299bb;hpb=487817e01195ffd5d757ef24acc3c177e9266057;p=lhc%2Fweb%2Fwiklou.git 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'