Test builds with different defines.

This commit is contained in:
Emil Mikulic 2016-01-23 20:08:02 +11:00
parent f913e17125
commit 112f1ccb92

View File

@ -11,10 +11,12 @@ if [ ! -e test.py ]; then
echo "can't find test.py, aborting" >&2 echo "can't find test.py, aborting" >&2
exit 1 exit 1
fi fi
if [ \( ! -x a.out \) -o \( ../darkhttpd.c -nt a.out \) ]; then echo "===> building without -DDEBUG"
echo "===> building a.out, darkhttpd.gcno" $CC -O2 ../darkhttpd.c || exit 1
$CC -g -O2 -fprofile-arcs -ftest-coverage -DDEBUG -DAPBUF_INIT=1 ../darkhttpd.c || exit 1 echo "===> building with -DNO_IPV6"
fi $CC -O2 -DNO_IPV6 ../darkhttpd.c || exit 1
echo "===> building a.out and darkhttpd.gcno for coverage"
$CC -g -O2 -fprofile-arcs -ftest-coverage -DDEBUG -DAPBUF_INIT=1 ../darkhttpd.c || exit 1
if [ -e $DIR ]; then if [ -e $DIR ]; then
rm -rf $DIR || exit 1 rm -rf $DIR || exit 1
fi fi