diff options
author | Matthew Wild <mwild1@gmail.com> | 2018-03-17 09:31:57 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2018-03-17 09:31:57 +0000 |
commit | 1b96a40a135b51a3fb348c1d76e7658407bca53e (patch) | |
tree | c9fefa31eb62a23256be276d1b09a601ee632a38 | |
parent | 3059744ca4e528a216a506414ade709afe462b6c (diff) | |
download | prosody-1b96a40a135b51a3fb348c1d76e7658407bca53e.tar.gz prosody-1b96a40a135b51a3fb348c1d76e7658407bca53e.zip |
GNUMakefile: Add 'coverage' target (requires luacov and luacov-console)
-rw-r--r-- | GNUmakefile | 9 |
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 |