]> scripts.mit.edu Git - autoinstalls/mediawiki.git/blobdiff - Makefile
MediaWiki 1.11.0
[autoinstalls/mediawiki.git] / Makefile
diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..b9d5b1c
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,25 @@
+#
+# 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_BIN) $(ALL_TESTS)
+
+fast: Test.php
+       $(PROVE_BIN) $(FAST_TESTS)
+
+verbose: Test.php
+       $(PROVE_BIN) -v $(ALL_TESTS) | egrep -v '^ok'