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
commit1b96a40a135b51a3fb348c1d76e7658407bca53e (patch)
treec9fefa31eb62a23256be276d1b09a601ee632a38
parent3059744ca4e528a216a506414ade709afe462b6c (diff)
downloadprosody-1b96a40a135b51a3fb348c1d76e7658407bca53e.tar.gz
prosody-1b96a40a135b51a3fb348c1d76e7658407bca53e.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