From: Junio C Hamano Date: Fri, 5 Sep 2025 22:50:33 +0000 (-0700) Subject: Meta/Dothem: --breaking builds and tests with BREAKING_CHANGES enabled X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0a2e649da773651bb0002635318d9f69dedab395;p=thirdparty%2Fgit.git Meta/Dothem: --breaking builds and tests with BREAKING_CHANGES enabled --- diff --git a/Dothem b/Dothem index c52d4bb172..d976fa3d68 100755 --- a/Dothem +++ b/Dothem @@ -26,7 +26,9 @@ 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= +scratch= noprove= memtrash=--memtrash with_cocci= with_leaks= with_sha256= san= +clean= with_meson= breaking= + while case "$1" in --pedantic | --locale=* | --loose) M="$M $1" ;; --force) force=$1 ;; @@ -44,6 +46,7 @@ while case "$1" in --memtrash) memtrash=--memtrash ;; --test=*) test="$1" ;; --scratch) scratch=y ;; + --breaking) breaking=breaking ;; --bootstrap) bootstrap=y ;; --base=*) BUILDBASE=${1#*=} ;; --branches=*) branches=${1#*=} ;; @@ -278,7 +281,7 @@ do section SANITIZE=address,undefined SANITIZE=address,undefined Meta/Make $M $jobs test && Meta/Make >/dev/null distclean - elif test "$with_leaks$with_sha256$dotest" = test + elif test "$breaking$with_leaks$with_sha256$dotest" = test then section test Meta/Make $M $noprove ${test+"$test"} $jobs $test_long \ @@ -287,20 +290,19 @@ do elif test -n "$with_leaks" then section leaks - ( - export SANITIZE=leak - export GIT_TEST_PASSING_SANITIZE_LEAK=true - Meta/Make -j16 $T CC=clang test && - Meta/Make -j16 >/dev/null distclean - ) + SANITIZE=leak \ + GIT_TEST_PASSING_SANITIZE_LEAK=true \ + Meta/Make -j16 $T CC=clang test && + Meta/Make >/dev/null distclean elif test -n "$with_sha256" then section sha256 - ( - export GIT_TEST_DEFAULT_HASH=sha256 - Meta/Make -j16 $T test && - Meta/Make >/dev/null distclean - ) + GIT_TEST_DEFAULT_HASH=sha256 Meta/Make -j16 $T test + elif test -n "$breaking" + then + section breaking + Meta/Make -j16 WITH_BREAKING_CHANGES=YesPlease test && + Meta/Make >/dev/null distclean fi && # docs