GNUmakefile
changeset 11125 2d38242a08dd
parent 10886 1999bb052d49
child 11437 bef67691a713
equal deleted inserted replaced
11124:b2331f3dfeea 11125:2d38242a08dd
    73 	$(MAKE) clean -C util-src
    73 	$(MAKE) clean -C util-src
    74 
    74 
    75 test:
    75 test:
    76 	$(BUSTED) --lua=$(RUNWITH)
    76 	$(BUSTED) --lua=$(RUNWITH)
    77 
    77 
       
    78 test-%:
       
    79 	$(BUSTED) --lua=$(RUNWITH) -r $*
       
    80 
    78 integration-test: all
    81 integration-test: all
    79 	$(MKDIR) data
    82 	$(MKDIR) data
    80 	$(RUNWITH) prosodyctl --config ./spec/scansion/prosody.cfg.lua start
    83 	$(RUNWITH) prosodyctl --config ./spec/scansion/prosody.cfg.lua start
    81 	$(SCANSION) -d ./spec/scansion; R=$$? \
    84 	$(SCANSION) -d ./spec/scansion; R=$$? \
       
    85 	$(RUNWITH) prosodyctl --config ./spec/scansion/prosody.cfg.lua stop \
       
    86 	exit $$R
       
    87 
       
    88 integration-test-%: all
       
    89 	$(MKDIR) data
       
    90 	$(RUNWITH) prosodyctl --config ./spec/scansion/prosody.cfg.lua start
       
    91 	$(SCANSION) ./spec/scansion/$*.scs; R=$$? \
    82 	$(RUNWITH) prosodyctl --config ./spec/scansion/prosody.cfg.lua stop \
    92 	$(RUNWITH) prosodyctl --config ./spec/scansion/prosody.cfg.lua stop \
    83 	exit $$R
    93 	exit $$R
    84 
    94 
    85 coverage:
    95 coverage:
    86 	-rm -- luacov.*
    96 	-rm -- luacov.*