Add a 'testcov' target
diff --git a/Makefile b/Makefile
index f48fd66..e9eb11f 100644
--- a/Makefile
+++ b/Makefile
@@ -56,6 +56,12 @@
 test-ref-configs:
 	tests/scripts/test-ref-configs.pl
 
+testcov:
+	make check
+	programs/test/selftest
+	( cd tests && ./compat.sh )
+	( cd tests && ./ssl-opt.sh )
+
 lcov:
 	rm -rf Coverage
 	( cd library && lcov --capture --directory . -o polarssl.info )