Comparison

GNUmakefile @ 10411:db2a06b9ff98

Merge 0.11->trunk
author Kim Alvefur <zash@zash.se>
date Sat, 16 Nov 2019 16:52:31 +0100
parent 10260:d6b9cacfef76
child 10879:5c7bb2440f53
comparison
equal deleted inserted replaced
10410:659b577f280c 10411:db2a06b9ff98
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 $(MKDIR) data
77 $(RUNWITH) prosodyctl --config ./spec/scansion/prosody.cfg.lua start
78 $(SCANSION) -d ./spec/scansion; R=$$? \
79 $(RUNWITH) prosodyctl --config ./spec/scansion/prosody.cfg.lua stop \
80 exit $$R
81
74 coverage: 82 coverage:
75 -rm -- luacov.* 83 -rm -- luacov.*
76 $(BUSTED) --lua=$(RUNWITH) -c 84 $(BUSTED) --lua=$(RUNWITH) -c
77 luacov 85 luacov
78 luacov-console 86 luacov-console