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 | 6327d96ffeac36089c93c4b958419458475af510 (patch) | |
tree | 38062582964ced9abbe271e18dba33a600278553 | |
parent | bf6c2db68257e8ac3a35e2c4e7c18b55313a5bf7 (diff) | |
download | prosody-6327d96ffeac36089c93c4b958419458475af510.tar.gz prosody-6327d96ffeac36089c93c4b958419458475af510.zip |
make: Add way to run individual tests
-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 |