2014-11-22 23:36:58 +01:00
|
|
|
SnapRAID CHECK
|
|
|
|
|
==============
|
2011-09-03 11:23:10 +02:00
|
|
|
|
2025-10-26 17:23:54 +01:00
|
|
|
The regression test for SnapRAID is run using the command:
|
2011-09-03 11:23:10 +02:00
|
|
|
|
2025-10-26 17:23:54 +01:00
|
|
|
make check
|
2011-09-03 11:23:10 +02:00
|
|
|
|
2025-10-26 17:23:54 +01:00
|
|
|
You can also run the regression test with Valgrind using:
|
2011-09-03 11:23:10 +02:00
|
|
|
|
2025-10-26 17:23:54 +01:00
|
|
|
./configure --enable-valgrind
|
|
|
|
|
make check
|
2011-09-03 11:23:10 +02:00
|
|
|
|
2025-10-26 17:23:54 +01:00
|
|
|
To perform a coverage test, use the following commands:
|
2011-09-03 11:23:10 +02:00
|
|
|
|
2025-10-26 17:23:54 +01:00
|
|
|
./configure --enable-coverage
|
|
|
|
|
make lcov_reset
|
|
|
|
|
make check
|
|
|
|
|
make lcov_capture
|
|
|
|
|
make lcov_html
|
2011-09-03 11:23:10 +02:00
|
|
|
|
2025-10-26 17:23:54 +01:00
|
|
|
Then, open the file `./cov/index.html` in your browser to view the results.
|
2011-09-03 11:23:10 +02:00
|
|
|
|
2025-10-26 17:23:54 +01:00
|
|
|
Note that the coverage analysis excludes error-handling code that causes
|
|
|
|
|
immediate program termination. This excluded code is enclosed between the
|
|
|
|
|
LCOV_EXCL_START and LCOV_EXCL_STOP keywords.
|
2014-02-03 22:40:51 +01:00
|
|
|
|
2025-10-26 17:23:54 +01:00
|
|
|
To test with the Clang static analyzer, use:
|
2011-09-03 11:23:10 +02:00
|
|
|
|
2025-10-26 17:23:54 +01:00
|
|
|
scan-build ./configure
|
|
|
|
|
scan-build make
|