3 # Coverage and unit tests!
8 if [ ! -e test.py ]; then
9 echo "can't find test.py, aborting" >&2
12 if [ ! -x a.out ]; then
13 gcc -g -fprofile-arcs -ftest-coverage ../darkhttpd.c || exit 1
14 # generates a.out, darkhttpd.gcno
20 rm -f darkhttpd.gcda darkhttpd.log
21 ./a.out $DIR --port $PORT --log darkhttpd.log &
22 # generates darkhttpd.gcda
24 kill -0 $PID || exit 1
28 # generates darkhttpd.c.gcov