2014-11-22 23:36:58 +01:00
|
|
|
SnapRAID CHECK
|
|
|
|
|
==============
|
2011-09-03 11:23:10 +02:00
|
|
|
|
|
|
|
|
The regression test of SnapRAID is run using the command:
|
|
|
|
|
|
|
|
|
|
make check
|
|
|
|
|
|
|
|
|
|
You can also run the regression test in valgrind with:
|
|
|
|
|
|
|
|
|
|
./configure --enable-valgrind
|
|
|
|
|
make check
|
|
|
|
|
|
|
|
|
|
To run a coverage test you should use:
|
|
|
|
|
|
|
|
|
|
./configure --enable-coverage
|
|
|
|
|
make lcov_reset
|
|
|
|
|
make check
|
|
|
|
|
make lcov_capture
|
|
|
|
|
make lcov_html
|
|
|
|
|
|
|
|
|
|
and open the file ./cov/index.html in your browser to see the results.
|
|
|
|
|
|
2014-02-03 22:40:51 +01:00
|
|
|
Please note that in the coverage analysis we exclude the handling of all
|
|
|
|
|
the error conditions that result in an immediate termination of the program.
|
|
|
|
|
You can recognize this excluded code because it's enclosed between
|
|
|
|
|
the LCOV_EXCL_START and LCOV_EXCL_STOP keywords.
|
|
|
|
|
|
2014-05-19 23:21:17 +02:00
|
|
|
To test with the clang static analyzer use:
|
2013-08-17 18:37:55 +02:00
|
|
|
|
|
|
|
|
scan-build ./configure
|
|
|
|
|
scan-build make
|
2011-09-03 11:23:10 +02:00
|
|
|
|