diff options
author | Kim Alvefur <zash@zash.se> | 2020-10-02 16:35:05 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2020-10-02 16:35:05 +0200 |
commit | 5fd3895de56b1189e2baac2a17a02a301785e625 (patch) | |
tree | 38062582964ced9abbe271e18dba33a600278553 /GNUmakefile | |
parent | 785c20f6ee7e61a5a91a8b6259623bc2a2bbffaa (diff) | |
download | prosody-5fd3895de56b1189e2baac2a17a02a301785e625.tar.gz prosody-5fd3895de56b1189e2baac2a17a02a301785e625.zip |
make: Add way to run individual tests
Diffstat (limited to 'GNUmakefile')
-rw-r--r-- | GNUmakefile | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/GNUmakefile b/GNUmakefile index 460f61ca..1846d72d 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -75,6 +75,9 @@ clean: test: $(BUSTED) --lua=$(RUNWITH) +test-%: + $(BUSTED) --lua=$(RUNWITH) -r $* + integration-test: all $(MKDIR) data $(RUNWITH) prosodyctl --config ./spec/scansion/prosody.cfg.lua start @@ -82,6 +85,13 @@ integration-test: all $(RUNWITH) prosodyctl --config ./spec/scansion/prosody.cfg.lua stop \ exit $$R +integration-test-%: all + $(MKDIR) data + $(RUNWITH) prosodyctl --config ./spec/scansion/prosody.cfg.lua start + $(SCANSION) ./spec/scansion/$*.scs; R=$$? \ + $(RUNWITH) prosodyctl --config ./spec/scansion/prosody.cfg.lua stop \ + exit $$R + coverage: -rm -- luacov.* $(BUSTED) --lua=$(RUNWITH) -c |