]> git.kaiwu.me - haproxy.git/commitdiff
SCRIPTS: vtest: allow overriding the Git repository URL
authorWilliam Lallemand <wlallemand@haproxy.com>
Wed, 18 Nov 2026 14:02:51 +0000 (14:02 +0000)
committerWilliam Lallemand <wlallemand@haproxy.com>
Wed, 18 Nov 2026 14:04:09 +0000 (15:04 +0100)
Read the VTest repository URL from VTEST_URL so that builds can use
an alternate repository. Keep the current URL as the default when the
variable is unset or empty.

scripts/build-vtest.sh

index 18ac428031a0e1df195d6c947dfc8ff048df42e4..207367d36706e48b3ac93f076bc33955aae75d52 100755 (executable)
@@ -2,9 +2,10 @@
 
 DESTDIR=${DESTDIR:-${PWD}/../vtest/}
 TMPDIR=${TMPDIR:-$(mktemp -d)}
+VTEST_URL=${VTEST_URL:-https://code.vinyl-cache.org/vtest/VTest2}
 set -eux
 
-git clone https://code.vinyl-cache.org/vtest/VTest2 "${TMPDIR}/vtest"
+git clone "${VTEST_URL}" "${TMPDIR}/vtest"
 # Special flags due to: https://github.com/vtest/VTest/issues/12
 
 # Note: do not use "make -C ../vtest", otherwise MAKEFLAGS contains "w"