GNUmakefile: Add target for running scansion
authorKim Alvefur <zash@zash.se>
Thu, 10 Jan 2019 14:27:01 +0100
changeset 9783 0b04099b49de
parent 9782 ce5b2a149575
child 9784 c7727c13260f
GNUmakefile: Add target for running scansion
GNUmakefile
--- a/GNUmakefile	Thu Jan 10 13:32:57 2019 +0100
+++ b/GNUmakefile	Thu Jan 10 14:27:01 2019 +0100
@@ -21,6 +21,7 @@
 
 LUACHECK=luacheck
 BUSTED=busted
+SCANSION=scansion
 
 .PHONY: all test coverage clean install
 
@@ -71,6 +72,11 @@
 test:
 	$(BUSTED) --lua=$(RUNWITH)
 
+integration-test: all
+	$(RUNWITH) prosodyctl --config ./spec/scansion/prosody.cfg.lua start
+	$(SCANSION) -d ./spec/scansion
+	$(RUNWITH) prosodyctl --config ./spec/scansion/prosody.cfg.lua stop
+
 coverage:
 	-rm -- luacov.*
 	$(BUSTED) --lua=$(RUNWITH) -c