Skip to content

Commit 7d4c638

Browse files
committed
Meta/round: allow env $T to tweak set of tests to run
1 parent 2b90714 commit 7d4c638

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

round

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ default="sparse hdr-check sha256 leaks test check-docs doc"
66
skip=" "
77
more=" "
88

9+
: ${T:=""}
10+
911
for t
1012
do
1113
case "$t" in
@@ -35,9 +37,9 @@ do
3537
;;
3638
leaks)
3739
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 &&
3941
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
4143
;;
4244
coccicheck)
4345
SPATCH_FLAGS=--recursive-includes Meta/Make -j16 "$t"
@@ -48,7 +50,10 @@ do
4850
rm -f compat/regex/regex.o
4951
;;
5052
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"
5257
;;
5358
*)
5459
Meta/Make -j16 "$t"

0 commit comments

Comments
 (0)