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
@@ -1,5 +1,5 @@
1 #!/bin/sh
2
3 -Meta/Dothem --cocci --breaking --san --leaks --sha256 "$@"
3 +Meta/Dothem --cocci --breaking --test-vars --san --leaks --sha256 "$@"
4
5 Meta/V
Dothem
+25 -1
@@ -27,7 +27,7 @@ inst_prefix=$(
27
28 force= with_dash= test_long= M= install= doc= notest= bootstrap= branches= jobs=
29 scratch= noprove= memtrash=--memtrash with_cocci= with_leaks= with_sha256= san=
30 -clean= with_meson= breaking=
30 +clean= with_meson= breaking= test_vars=
31
32 while case "$1" in
33 --pedantic | --locale=* | --loose) M="$M $1" ;;
@@ -59,6 +59,7 @@ while case "$1" in
59 --sha256) with_sha256=t ;;
60 --no-sha256) with_sha256= ;;
61 --meson) with_meson=t ;;
62 + --test-vars) test_vars=test_vars ;;
63 -j*) jobs=$1 ;;
64 --) shift; break ;;
65 -*) echo >&2 "Unknown option: $1"; exit 1 ;;
@@ -307,6 +308,29 @@ do
308 did_test=did_test
309 GIT_TEST_DEFAULT_HASH=sha256 Meta/Make $jobs $T test
310 fi &&
311 + if test -n "$test_vars"
312 + then
313 + section "test vars"
314 + did_test=did_test
315 + (
316 + export OPENSSL_SHA1_UNSAFE=YesPlease
317 + export GIT_TEST_SPLIT_INDEX=yes
318 + export GIT_TEST_FULL_IN_PACK_ARRAY=true
319 + export GIT_TEST_OE_SIZE=10
320 + export GIT_TEST_OE_DELTA_SIZE=5
321 + export GIT_TEST_COMMIT_GRAPH=1
322 + export GIT_TEST_COMMIT_GRAPH_CHANGED_PATHS=1
323 + export GIT_TEST_MULTI_PACK_INDEX=1
324 + export GIT_TEST_MULTI_PACK_INDEX_WRITE_INCREMENTAL=1
325 + export GIT_TEST_DEFAULT_INITIAL_BRANCH_NAME=master
326 + export GIT_TEST_NO_WRITE_REV_INDEX=1
327 + export GIT_TEST_CHECKOUT_WORKERS=2
328 + export GIT_TEST_PACK_USE_BITMAP_BOUNDARY_TRAVERSAL=1
329 + Meta/Make >/dev/null distclean &&
330 + Meta/Make $jobs $T test &&
331 + Meta/Make >/dev/null distclean
332 + )
333 + fi &&
334 if test -n "$breaking"
335 then
336 section breaking