From 7ae419bd5ebf8a04afb8c2edba246ed029c63131 Mon Sep 17 00:00:00 2001 From: Andrea Mazzoleni Date: Sat, 3 Sep 2011 11:23:10 +0200 Subject: [PATCH] Added a new TEST document. --- Makefile.am | 11 ++++++----- TEST | 23 +++++++++++++++++++++++ 2 files changed, 29 insertions(+), 5 deletions(-) create mode 100644 TEST diff --git a/Makefile.am b/Makefile.am index 2f00d5ec..16164d0c 100644 --- a/Makefile.am +++ b/Makefile.am @@ -53,7 +53,7 @@ mktest_SOURCES = \ EXTRA_DIST = \ autogen.sh \ noautomake.sh \ - README AUTHORS HISTORY INSTALL COPYING TODO \ + README AUTHORS HISTORY INSTALL COPYING TODO TEST \ snapraid.d snapraid.1 snapraid.txt \ test-raid5.conf \ test-raid6.conf \ @@ -76,6 +76,7 @@ maintainer-clean-local: rm -f snapraid.1 snapraid.txt # Automatic testing + CHECKFLAGS = CHECKCOUNT = 2000 CHECKSIZE = 4000 @@ -271,7 +272,7 @@ check-local: # Manual testing -CHECK = ./snapraid -S -c test-raid5.conf diff +MANUAL = ./snapraid -S -c test-raid5.conf sync valgrind: valgrind \ @@ -279,7 +280,7 @@ valgrind: --track-origins=yes \ --read-var-info=yes \ --leak-check=full \ - -v $(CHECK) \ + -v $(MANUAL) \ 2> valgrind.log tail valgrind.log @@ -289,14 +290,14 @@ callgrind: --dump-instr=yes \ --trace-jump=yes \ --collect-systime=yes \ - -v $(CHECK) \ + -v $(MANUAL) \ 2> callgrind.log tail callgrind.log cachegrind: valgrind \ --tool=cachegrind \ - -v $(CHECK) \ + -v $(MANUAL) \ 2> cachegrind.log tail cachegrind.log diff --git a/TEST b/TEST new file mode 100644 index 00000000..b57d7af4 --- /dev/null +++ b/TEST @@ -0,0 +1,23 @@ +SnapRAID TEST +============= + +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. + +