aboutsummaryrefslogtreecommitdiffstats
path: root/GNUmakefile
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2020-10-02 16:35:05 +0200
committerKim Alvefur <zash@zash.se>2020-10-02 16:35:05 +0200
commit5fd3895de56b1189e2baac2a17a02a301785e625 (patch)
tree38062582964ced9abbe271e18dba33a600278553 /GNUmakefile
parent785c20f6ee7e61a5a91a8b6259623bc2a2bbffaa (diff)
downloadprosody-5fd3895de56b1189e2baac2a17a02a301785e625.tar.gz
prosody-5fd3895de56b1189e2baac2a17a02a301785e625.zip
make: Add way to run individual tests
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile10
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