Comparison

GNUmakefile @ 11121:2d38242a08dd

make: Add way to run individual tests
author Kim Alvefur <zash@zash.se>
date Fri, 02 Oct 2020 16:35:05 +0200
parent 10882:1999bb052d49
child 11433:bef67691a713
comparison
equal deleted inserted replaced
11120:b2331f3dfeea 11121:2d38242a08dd
73 $(MAKE) clean -C util-src 73 $(MAKE) clean -C util-src
74 74
75 test: 75 test:
76 $(BUSTED) --lua=$(RUNWITH) 76 $(BUSTED) --lua=$(RUNWITH)
77 77
78 test-%:
79 $(BUSTED) --lua=$(RUNWITH) -r $*
80
78 integration-test: all 81 integration-test: all
79 $(MKDIR) data 82 $(MKDIR) data
80 $(RUNWITH) prosodyctl --config ./spec/scansion/prosody.cfg.lua start 83 $(RUNWITH) prosodyctl --config ./spec/scansion/prosody.cfg.lua start
81 $(SCANSION) -d ./spec/scansion; R=$$? \ 84 $(SCANSION) -d ./spec/scansion; R=$$? \
85 $(RUNWITH) prosodyctl --config ./spec/scansion/prosody.cfg.lua stop \
86 exit $$R
87
88 integration-test-%: all
89 $(MKDIR) data
90 $(RUNWITH) prosodyctl --config ./spec/scansion/prosody.cfg.lua start
91 $(SCANSION) ./spec/scansion/$*.scs; R=$$? \
82 $(RUNWITH) prosodyctl --config ./spec/scansion/prosody.cfg.lua stop \ 92 $(RUNWITH) prosodyctl --config ./spec/scansion/prosody.cfg.lua stop \
83 exit $$R 93 exit $$R
84 94
85 coverage: 95 coverage:
86 -rm -- luacov.* 96 -rm -- luacov.*