Comparison

GNUmakefile @ 9807:dcc85d72d5b3

GNUmakefile: Stop Prosody in case of failure in integration-test Normally make skips the remaning steps in the rule if one fails. This collects the status code and re-returns it after stopping the running Prosody instance.
author Kim Alvefur <zash@zash.se>
date Thu, 24 Jan 2019 05:48:55 +0100
parent 9779:0b04099b49de
child 10260:d6b9cacfef76
comparison
equal deleted inserted replaced
9806:b72d2f4153f7 9807:dcc85d72d5b3
72 test: 72 test:
73 $(BUSTED) --lua=$(RUNWITH) 73 $(BUSTED) --lua=$(RUNWITH)
74 74
75 integration-test: all 75 integration-test: all
76 $(RUNWITH) prosodyctl --config ./spec/scansion/prosody.cfg.lua start 76 $(RUNWITH) prosodyctl --config ./spec/scansion/prosody.cfg.lua start
77 $(SCANSION) -d ./spec/scansion 77 $(SCANSION) -d ./spec/scansion; R=$$? \
78 $(RUNWITH) prosodyctl --config ./spec/scansion/prosody.cfg.lua stop 78 $(RUNWITH) prosodyctl --config ./spec/scansion/prosody.cfg.lua stop \
79 exit $$R
79 80
80 coverage: 81 coverage:
81 -rm -- luacov.* 82 -rm -- luacov.*
82 $(BUSTED) --lua=$(RUNWITH) -c 83 $(BUSTED) --lua=$(RUNWITH) -c
83 luacov 84 luacov