mirror of
https://github.com/emikulic/darkhttpd.git
synced 2023-08-10 21:13:08 +03:00
Test builds with different defines.
This commit is contained in:
parent
f913e17125
commit
112f1ccb92
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user