REGTEST/MINOR: Set HAPROXY_PROGRAM default value.

With this patch, we set HAPROXY_PROGRAM environment variable
default value to the haproxy executable of the current working directory.
So, if the current directory is the haproxy sources directory,
the reg-tests Makefile target may be run with this shorter command:

  $ VARNISTEST_PROGRAM=<...> make reg-tests

in place of

  $ VARNISTEST_PROGRAM=<...> HAPROXY_PROGRAM=<...> make reg-tests
This commit is contained in:
Frdric Lcaille 2018-06-25 10:24:37 +02:00 committed by Willy Tarreau
parent 6983be32f7
commit bca3a980e9

View File

@ -1005,5 +1005,5 @@ reg-tests:
exit 1; \
fi
@find reg-tests -type f -name "*.vtc" -print0 | \
xargs -0 $(VARNISHTEST_PROGRAM) -l -t5
HAPROXY_PROGRAM=$${HAPROXY_PROGRAM:-$$PWD/haproxy} xargs -0 $(VARNISHTEST_PROGRAM) -l -t5
.PHONY: reg-tests