What's cooking (2024/04 #04)
[alt-git.git] / round
blob462919aafc8d8aab96f6c6e3bf732d2a80af3d4f
1 #!/bin/sh
3 # Give names of targets to use on the command line
4 # coccicheck is not enabled by default
5 default="sparse hdr-check sha256 leaks address,undefined test check-docs doc"
6 skip=" "
7 more=" "
9 for t
11 case "$t" in
12 -) default= ;;
13 -?*) skip="$skip${t#-} " ;;
14 ?*) more="$more$t " ;;
15 esac
16 done
18 set -- $default $more
20 for t
22 echo "----- >8 -----" >&2
23 case "$skip" in
24 *" $t "*)
25 echo "Skipping $t" >&2
26 continue ;;
27 esac
29 echo "Running $t" >&2
31 case "$t" in
32 address | undefined | address,undefined)
33 SANITIZE=$t \
34 Meta/Make -j16 test
36 leaks)
37 SANITIZE=leak \
38 GIT_TEST_PASSING_SANITIZE_LEAK=true Meta/Make -j16 test &&
39 SANITIZE=leak \
40 GIT_TEST_PASSING_SANITIZE_LEAK=true Meta/Make -j16 clean
42 coccicheck)
43 SPATCH_FLAGS=--recursive-includes Meta/Make -j16 "$t"
45 sparse)
46 Meta/Make -j16 -- NO_REGEX=NoThanks SPARSE_FLAGS=-Wsparse-error "$t" &&
47 Meta/Make -j16 -- NO_REGEX=NoThanks clean >/dev/null 2>&1 &&
48 rm -f compat/regex/regex.o
50 sha256)
51 GIT_TEST_DEFAULT_HASH=sha256 Meta/Make -j16 test
54 Meta/Make -j16 "$t"
56 esac &&
57 Meta/Make -j16 distclean >/dev/null 2>&1 || exit 1
58 done &&
59 Meta/Make -j16 distclean