Meta/round: allow env $T to tweak set of tests to run
Junio C Hamano committed
May 26, 2024 at 17:30 UTC
7d4c6380d83dd27f644de7efadf8a4a45dee55e3
1 file changed
+8
-3
round
+8
-3
@@ -6,6 +6,8 @@ default="sparse hdr-check sha256 leaks test check-docs doc"
6
skip=" "
7
more=" "
8
9
+: ${T:=""}
10
+
11
for t
12
do
13
case "$t" in
@@ -35,9 +37,9 @@ do
37
;;
38
leaks)
39
SANITIZE=leak \
38
- GIT_TEST_PASSING_SANITIZE_LEAK=true Meta/Make -j16 test &&
40
+ GIT_TEST_PASSING_SANITIZE_LEAK=true Meta/Make -j16 $T CC=clang test &&
41
SANITIZE=leak \
40
- GIT_TEST_PASSING_SANITIZE_LEAK=true Meta/Make -j16 clean
42
+ GIT_TEST_PASSING_SANITIZE_LEAK=true Meta/Make -j16 CC=clang clean
43
;;
44
coccicheck)
45
SPATCH_FLAGS=--recursive-includes Meta/Make -j16 "$t"
@@ -48,7 +50,10 @@ do
50
rm -f compat/regex/regex.o
51
;;
52
sha256)
51
- GIT_TEST_DEFAULT_HASH=sha256 Meta/Make -j16 test
53
+ GIT_TEST_DEFAULT_HASH=sha256 Meta/Make -j16 $T test
54
+ ;;
55
+ test)
56
+ Meta/Make -j16 $T "$t"
57
;;
58
*)
59
Meta/Make -j16 "$t"