Make devel/cover clean up after itself.
authorEmil Mikulic <emikulic@gmail.com>
Sun, 28 Apr 2013 11:45:14 +0000 (21:45 +1000)
committerEmil Mikulic <emikulic@gmail.com>
Sun, 28 Apr 2013 11:45:14 +0000 (21:45 +1000)
devel/cover

index 46b67c8..f9f89da 100755 (executable)
@@ -2,6 +2,7 @@
 #
 # Coverage and unit tests!
 #
+cd $(dirname $0)
 DIR=tmp.httpd.tests
 PORT=12346
 
@@ -26,6 +27,8 @@ PID=$!
 kill -0 $PID || exit 1
 python test.py
 kill $PID
+echo generating darkhttpd.c.gcov report
 gcov darkhttpd
-# generates darkhttpd.c.gcov
-echo "done!"
+rm -rf $DIR
+rm -f darkhttpd.gcda darkhttpd.gcno darkhttpd.log a.out
+echo done