Comparison

GNUmakefile @ 9779:0b04099b49de

GNUmakefile: Add target for running scansion
author Kim Alvefur <zash@zash.se>
date Thu, 10 Jan 2019 14:27:01 +0100
parent 9429:5f51710d7c1e
child 9807:dcc85d72d5b3
comparison
equal deleted inserted replaced
9778:ce5b2a149575 9779:0b04099b49de
19 MKDIR=install -d 19 MKDIR=install -d
20 MKDIR_PRIVATE=$(MKDIR) -m750 20 MKDIR_PRIVATE=$(MKDIR) -m750
21 21
22 LUACHECK=luacheck 22 LUACHECK=luacheck
23 BUSTED=busted 23 BUSTED=busted
24 SCANSION=scansion
24 25
25 .PHONY: all test coverage clean install 26 .PHONY: all test coverage clean install
26 27
27 all: prosody.install prosodyctl.install prosody.cfg.lua.install prosody.version 28 all: prosody.install prosodyctl.install prosody.cfg.lua.install prosody.version
28 $(MAKE) -C util-src install 29 $(MAKE) -C util-src install
69 $(MAKE) clean -C util-src 70 $(MAKE) clean -C util-src
70 71
71 test: 72 test:
72 $(BUSTED) --lua=$(RUNWITH) 73 $(BUSTED) --lua=$(RUNWITH)
73 74
75 integration-test: all
76 $(RUNWITH) prosodyctl --config ./spec/scansion/prosody.cfg.lua start
77 $(SCANSION) -d ./spec/scansion
78 $(RUNWITH) prosodyctl --config ./spec/scansion/prosody.cfg.lua stop
79
74 coverage: 80 coverage:
75 -rm -- luacov.* 81 -rm -- luacov.*
76 $(BUSTED) --lua=$(RUNWITH) -c 82 $(BUSTED) --lua=$(RUNWITH) -c
77 luacov 83 luacov
78 luacov-console 84 luacov-console