From c2b070214097fa40dc78252882d96babe7fab4b4 Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Mon, 27 Jul 2009 16:42:51 -0700 Subject: Add support for code coverage analysis with gcov and lcov. --- README-gcov | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 README-gcov (limited to 'README-gcov') diff --git a/README-gcov b/README-gcov new file mode 100644 index 000000000..665a1ec14 --- /dev/null +++ b/README-gcov @@ -0,0 +1,31 @@ +Building with gcov support +========================== + +The Open vSwitch "configure" script supports the following +code-coverage related options: + + --disable-coverage + --enable-coverage=no + + Do not build with gcov code coverage support. + + This is the default if no coverage option is passed to + "configure". + + --enable-coverage + --enable-coverage=yes + + Build with gcov code coverage support, but do not assume that any + coverage-related tools are installed and do not add special + coverage support to the test suite. + + --enable-coverage=lcov + + Build with gcov code coverage support, as above, but also add + support for coverage analysis to the test suite. Running "make + check" will produce a directory "tests/coverage.html" in the build + directory with an analysis of the test suite's coverage. + + This setting requires the lcov suite of utilities to be installed. + The "lcov" and "genhtml" programs from lcov must be in PATH. lcov + is available at: http://ltp.sourceforge.net/coverage/lcov.php -- cgit v1.2.1