mirror of
http://git.haproxy.org/git/haproxy.git/
synced 2025-01-10 16:00:08 +00:00
REGTEST: Make reg-tests target support argument.
With this patch we can provide a list of argument to reg-tests target. Useful to run reg tests for a list of VTC files like that: $ VARNISHTEST_PROGRAM=<...> make reg-tests reg-tests/checks/*.vtc
This commit is contained in:
parent
8f16148df7
commit
a3b4cbff7b
8
Makefile
8
Makefile
@ -1092,9 +1092,15 @@ opts:
|
|||||||
@echo 'OPTIONS_OBJS="$(strip $(OPTIONS_OBJS))"'
|
@echo 'OPTIONS_OBJS="$(strip $(OPTIONS_OBJS))"'
|
||||||
@echo 'OBJS="$(strip $(OBJS))"'
|
@echo 'OBJS="$(strip $(OBJS))"'
|
||||||
|
|
||||||
|
ifeq (reg-tests, $(firstword $(MAKECMDGOALS)))
|
||||||
|
REGTEST_ARGS := $(wordlist 2, $(words $(MAKECMDGOALS)), $(MAKECMDGOALS))
|
||||||
|
$(eval $(REGTEST_ARGS):;@true)
|
||||||
|
endif
|
||||||
|
|
||||||
# Target to run the regression testing script files.
|
# Target to run the regression testing script files.
|
||||||
reg-tests:
|
reg-tests:
|
||||||
./scripts/run-regtests.sh --LEVEL "$$LEVEL" $(REG_TEST_FILES)
|
@./scripts/run-regtests.sh --LEVEL "$$LEVEL" $(REGTEST_ARGS) $(REG_TEST_FILES)
|
||||||
|
.PHONY: $(REGTEST_ARGS)
|
||||||
|
|
||||||
reg-tests-help:
|
reg-tests-help:
|
||||||
@echo
|
@echo
|
||||||
|
Loading…
Reference in New Issue
Block a user