]> git.ipfire.org Git - thirdparty/git.git/commitdiff
Meta/round: allow env $T to tweak set of tests to run
authorJunio C Hamano <gitster@pobox.com>
Mon, 27 May 2024 00:30:23 +0000 (17:30 -0700)
committerJunio C Hamano <gitster@pobox.com>
Mon, 27 May 2024 00:30:23 +0000 (17:30 -0700)
round

diff --git a/round b/round
index 9912ba83877782ce588450df497e7292bbca56ff..56e0154f841abe39c100ec5845d24e1142568d03 100755 (executable)
--- a/round
+++ b/round
@@ -6,6 +6,8 @@ default="sparse hdr-check sha256 leaks test check-docs doc"
 skip=" "
 more=" "
 
+: ${T:=""}
+
 for t
 do
        case "$t" in
@@ -35,9 +37,9 @@ do
                ;;
        leaks)
                SANITIZE=leak \
-               GIT_TEST_PASSING_SANITIZE_LEAK=true Meta/Make -j16 test &&
+               GIT_TEST_PASSING_SANITIZE_LEAK=true Meta/Make -j16 $T CC=clang test &&
                SANITIZE=leak \
-               GIT_TEST_PASSING_SANITIZE_LEAK=true Meta/Make -j16 clean
+               GIT_TEST_PASSING_SANITIZE_LEAK=true Meta/Make -j16 CC=clang clean
                ;;
        coccicheck)
                SPATCH_FLAGS=--recursive-includes Meta/Make -j16 "$t"
@@ -48,7 +50,10 @@ do
                rm -f compat/regex/regex.o
                ;;
        sha256)
-               GIT_TEST_DEFAULT_HASH=sha256 Meta/Make -j16 test
+               GIT_TEST_DEFAULT_HASH=sha256 Meta/Make -j16 $T test
+               ;;
+       test)
+               Meta/Make -j16 $T "$t"
                ;;
        *)
                Meta/Make -j16 "$t"