mirror of
https://github.com/amadvance/snapraid.git
synced 2026-11-22 16:06:30 -05:00
Added valgrind use if available at the make check command
This commit is contained in:
parent
d978701783
commit
37c68721a1
2 changed files with 19 additions and 18 deletions
36
Makefile.am
36
Makefile.am
|
|
@ -65,36 +65,36 @@ check-local:
|
|||
mkdir test/disk2
|
||||
mkdir test/disk3
|
||||
echo --- As empty, sync and check
|
||||
./snapraid -c $(srcdir)/test.conf sync
|
||||
./snapraid -c $(srcdir)/test.conf check
|
||||
$(VALGRIND) ./snapraid -c $(srcdir)/test.conf sync
|
||||
$(VALGRIND) ./snapraid -c $(srcdir)/test.conf check
|
||||
echo --- Create some files, sync and check
|
||||
./mktest generate 1 3 1000 4000
|
||||
./snapraid -c $(srcdir)/test.conf sync
|
||||
./snapraid -c $(srcdir)/test.conf check
|
||||
$(VALGRIND) ./snapraid -c $(srcdir)/test.conf sync
|
||||
$(VALGRIND) ./snapraid -c $(srcdir)/test.conf check
|
||||
echo --- Create some more files, sync and check
|
||||
./mktest generate 2 3 1000 4000
|
||||
./snapraid -c $(srcdir)/test.conf sync
|
||||
./snapraid -c $(srcdir)/test.conf check
|
||||
$(VALGRIND) ./snapraid -c $(srcdir)/test.conf sync
|
||||
$(VALGRIND) ./snapraid -c $(srcdir)/test.conf check
|
||||
echo --- Delete some files, fix and check
|
||||
rm test/disk1/a*
|
||||
./snapraid -c $(srcdir)/test.conf check 2>/dev/null
|
||||
./snapraid -c $(srcdir)/test.conf fix 2>/dev/null
|
||||
./snapraid -c $(srcdir)/test.conf check
|
||||
$(VALGRIND) ./snapraid -c $(srcdir)/test.conf check 2>/dev/null
|
||||
$(VALGRIND) ./snapraid -c $(srcdir)/test.conf fix 2>/dev/null
|
||||
$(VALGRIND) ./snapraid -c $(srcdir)/test.conf check
|
||||
echo --- Delete the parity, fix and check
|
||||
rm test/parity
|
||||
./snapraid -c $(srcdir)/test.conf check 2>/dev/null
|
||||
./snapraid -c $(srcdir)/test.conf fix 2>/dev/null
|
||||
./snapraid -c $(srcdir)/test.conf check
|
||||
$(VALGRIND) ./snapraid -c $(srcdir)/test.conf check 2>/dev/null
|
||||
$(VALGRIND) ./snapraid -c $(srcdir)/test.conf fix 2>/dev/null
|
||||
$(VALGRIND) ./snapraid -c $(srcdir)/test.conf check
|
||||
echo --- Corrupt the parity, fix and check
|
||||
./mktest damage 1 10 10000 test/parity
|
||||
./snapraid -c $(srcdir)/test.conf check 2>/dev/null
|
||||
./snapraid -c $(srcdir)/test.conf fix 2>/dev/null
|
||||
./snapraid -c $(srcdir)/test.conf check
|
||||
$(VALGRIND) ./snapraid -c $(srcdir)/test.conf check 2>/dev/null
|
||||
$(VALGRIND) ./snapraid -c $(srcdir)/test.conf fix 2>/dev/null
|
||||
$(VALGRIND) ./snapraid -c $(srcdir)/test.conf check
|
||||
echo --- Corrupt some files, fix and check
|
||||
./mktest damage 1 1 500 test/disk2/b*
|
||||
./snapraid -c $(srcdir)/test.conf check 2>/dev/null
|
||||
./snapraid -c $(srcdir)/test.conf fix 2>/dev/null
|
||||
./snapraid -c $(srcdir)/test.conf check
|
||||
$(VALGRIND) ./snapraid -c $(srcdir)/test.conf check 2>/dev/null
|
||||
$(VALGRIND) ./snapraid -c $(srcdir)/test.conf fix 2>/dev/null
|
||||
$(VALGRIND) ./snapraid -c $(srcdir)/test.conf check
|
||||
echo Success!
|
||||
|
||||
# Valgrind testing
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@ AC_CANONICAL_HOST
|
|||
dnl Checks for programs.
|
||||
AC_PROG_CC
|
||||
AC_USE_SYSTEM_EXTENSIONS
|
||||
AC_CHECK_PROG([VALGRIND],[valgrind],[valgrind --leak-check=full --track-fds=yes --error-exitcode=1],[])
|
||||
|
||||
dnl Checks for libraries.
|
||||
AC_SYS_LARGEFILE
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue