summaryrefslogtreecommitdiff
path: root/round
blob: fed2cd98193d96cc8312c493257e9c00a40ba9d6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/bin/sh
 
# Give names of targets to use on the command line
# coccicheck is not enabled by default
default="sparse hdr-check leaks address,undefined test check-docs doc"
skip=" "
more=" "
 
for t
do
	case "$t" in
	-)  default= ;;
	-?*) skip="$skip${t#-} " ;;
	?*)  more="$more$t " ;;
	esac
done
 
set -- $default $more
 
for t
do
	case "$skip" in
	*" $t "*)
		echo "Skipping $t" >&2
		continue ;;
	esac
 
	case "$t" in
	address | undefined | address,undefined)
		SANITIZE=$t \
		Meta/Make -j16 test
		;;
	leaks)
		SANITIZE=leak \
		GIT_TEST_PASSING_SANITIZE_LEAK=true Meta/Make -j16 test
		;;
	coccicheck)
		SPATCH_FLAGS=--recursive-includes Meta/Make -j16 "$t"
		;;
	*)
		Meta/Make -j16 "$t"
		;;
	esac &&
	Meta/Make -j16 distclean >/dev/null 2>&1 || exit 1
done &&
Meta/Make -j16 distclean