From bca3a980e9bc23b04050988650de069f863acc94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20L=C3=A9caille?= Date: Mon, 25 Jun 2018 10:24:37 +0200 Subject: [PATCH] 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 --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 69f6ebb64..9ea3e80ce 100644 --- a/Makefile +++ b/Makefile @@ -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