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