From: Junio C Hamano Date: Tue, 31 Mar 2026 05:04:56 +0000 (-0700) Subject: Meta/Dothem: support test-vars and use it in Doit X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=9b7c0fb58b9186cf45697195402801caa33cfbd7;p=thirdparty%2Fgit.git Meta/Dothem: support test-vars and use it in Doit --- diff --git a/Doit b/Doit 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 diff --git a/Dothem b/Dothem 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