]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Meta/Dothem: support test-vars and use it in Doit
authorJunio C Hamano <gitster@pobox.com>
Tue, 31 Mar 2026 05:04:56 +0000 (22:04 -0700)
committerJunio C Hamano <gitster@pobox.com>
Tue, 31 Mar 2026 05:04:56 +0000 (22:04 -0700)
Doit
Dothem

diff --git a/Doit b/Doit
index 023877b77d37e0b39c8b5c66d5245b9abfdd5bc9..2d8473747fb71f53dad5411a631b2df1ee0d84e9 100755 (executable)
--- 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 4ca3757f8084c3b5303e1086772125f304d6d6cb..286dd746231d45fb26b20232ad5bf2a4d869e715 100755 (executable)
--- 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