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
commit6327d96ffeac36089c93c4b958419458475af510 (patch)
tree38062582964ced9abbe271e18dba33a600278553 /GNUmakefile
parentbf6c2db68257e8ac3a35e2c4e7c18b55313a5bf7 (diff)
downloadprosody-6327d96ffeac36089c93c4b958419458475af510.tar.gz
prosody-6327d96ffeac36089c93c4b958419458475af510.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