From 1b96a40a135b51a3fb348c1d76e7658407bca53e Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Sat, 17 Mar 2018 09:31:57 +0000 Subject: GNUMakefile: Add 'coverage' target (requires luacov and luacov-console) --- GNUmakefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'GNUmakefile') 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 -- cgit v1.2.3