aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2018-03-17 09:31:57 +0000
committerMatthew Wild <mwild1@gmail.com>2018-03-17 09:31:57 +0000
commitd1f58d3084a719a0af82cf5b7f3b10b3a69512c2 (patch)
treec9fefa31eb62a23256be276d1b09a601ee632a38
parentfe5a2515ac8f67924243c22770836ccf088ebfb8 (diff)
downloadprosody-d1f58d3084a719a0af82cf5b7f3b10b3a69512c2.tar.gz
prosody-d1f58d3084a719a0af82cf5b7f3b10b3a69512c2.zip
GNUMakefile: Add 'coverage' target (requires luacov and luacov-console)
-rw-r--r--GNUmakefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/GNUmakefile b/GNUmakefile
index d5751620..cb8dd195 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -19,7 +19,7 @@ INSTALL_EXEC=$(INSTALL) -m755
MKDIR=install -d
MKDIR_PRIVATE=$(MKDIR) -m750
-.PHONY: all test clean install
+.PHONY: all test coverage clean install
all: prosody.install prosodyctl.install prosody.cfg.lua.install prosody.version
$(MAKE) -C util-src install
@@ -68,6 +68,13 @@ clean:
test:
busted --lua=$(RUNWITH)
+coverage:
+ -rm -- luacov.*
+ busted --lua=$(RUNWITH) -c
+ luacov
+ luacov-console
+ luacov-console -s
+
util/%.so:
$(MAKE) install -C util-src