summaryrefslogtreecommitdiffstats
path: root/test/compilation/001-features
blob: 9bd340f850124cb9d6e67fc398ed9263fa9eb088 (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
#!/bin/sh

# Try to compile chrony in various combinations of disabled features

cd ../..

export CFLAGS="-O2 -Werror -Wpointer-arith -Wformat-signedness -Wno-unknown-warning-option -D_FORTIFY_SOURCE=2"

for opts in \
	"--enable-debug" \
	"--enable-ntp-signd" \
	"--enable-scfilter" \
	"--disable-asyncdns" \
	"--disable-ipv6" \
	"--disable-privdrop" \
	"--disable-readline" \
	"--disable-rtc" \
	"--disable-sechash" \
	"--disable-cmdmon" \
	"--disable-cmdmon --enable-scfilter" \
	"--disable-ntp" \
	"--disable-ntp --enable-scfilter" \
	"--disable-nts" \
	"--disable-refclock" \
	"--disable-timestamping" \
	"--disable-timestamping --disable-ntp" \
	"--disable-cmdmon --disable-ntp" \
	"--disable-cmdmon --disable-ntp --enable-scfilter" \
	"--disable-cmdmon --disable-refclock" \
	"--disable-cmdmon --disable-ntp --disable-refclock"
do
	./configure $opts || exit 1
	make clean
	make "$@" || exit 1
	make -C test/unit check || exit 1
done