Meta/Dothem: support test-vars and use it in Doit
Junio C Hamano committed
Mar 30, 2026 at 22:04 UTC
9b7c0fb58b9186cf45697195402801caa33cfbd7
2 files changed
+26
-2
Doit
+1
-1
index 023877b77d..2d8473747f 100755
--- a/Doit
+++ b/Doit
@@ -1,5 +1,5 @@
#!/bin/sh
-Meta/Dothem --cocci --breaking --san --leaks --sha256 "$@"
+Meta/Dothem --cocci --breaking --test-vars --san --leaks --sha256 "$@"
Meta/V
Dothem
+25
-1
index 4ca3757f80..286dd74623 100755
--- a/Dothem
+++ b/Dothem
@@ -27,7 +27,7 @@ inst_prefix=$(
force= with_dash= test_long= M= install= doc= notest= bootstrap= branches= jobs=
scratch= noprove= memtrash=--memtrash with_cocci= with_leaks= with_sha256= san=
-clean= with_meson= breaking=
+clean= with_meson= breaking= test_vars=
while case "$1" in
--pedantic | --locale=* | --loose) M="$M $1" ;;
@@ -59,6 +59,7 @@ while case "$1" in
--sha256) with_sha256=t ;;
--no-sha256) with_sha256= ;;
--meson) with_meson=t ;;
+ --test-vars) test_vars=test_vars ;;
-j*) jobs=$1 ;;
--) shift; break ;;
-*) echo >&2 "Unknown option: $1"; exit 1 ;;
@@ -307,6 +308,29 @@ do
did_test=did_test
GIT_TEST_DEFAULT_HASH=sha256 Meta/Make $jobs $T test
fi &&
+ if test -n "$test_vars"
+ then
+ section "test vars"
+ did_test=did_test
+ (
+ export OPENSSL_SHA1_UNSAFE=YesPlease
+ export GIT_TEST_SPLIT_INDEX=yes
+ export GIT_TEST_FULL_IN_PACK_ARRAY=true
+ export GIT_TEST_OE_SIZE=10
+ export GIT_TEST_OE_DELTA_SIZE=5
+ export GIT_TEST_COMMIT_GRAPH=1
+ export GIT_TEST_COMMIT_GRAPH_CHANGED_PATHS=1
+ export GIT_TEST_MULTI_PACK_INDEX=1
+ export GIT_TEST_MULTI_PACK_INDEX_WRITE_INCREMENTAL=1
+ export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
+ export GIT_TEST_NO_WRITE_REV_INDEX=1
+ export GIT_TEST_CHECKOUT_WORKERS=2
+ export GIT_TEST_PACK_USE_BITMAP_BOUNDARY_TRAVERSAL=1
+ Meta/Make >/dev/null distclean &&
+ Meta/Make $jobs $T test &&
+ Meta/Make >/dev/null distclean
+ )
+ fi &&
if test -n "$breaking"
then
section breaking