From 045602581ee11019953d866ca67b087da7ef8460 Mon Sep 17 00:00:00 2001 From: Andrea Mazzoleni Date: Sun, 24 Apr 2011 23:36:59 +0200 Subject: [PATCH] Adds more extensive testing for RAID6. --- Makefile.am | 25 ++++++++++++++++++++++++- 1 file changed, 24 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 94acb2f8..8839af45 100644 --- a/Makefile.am +++ b/Makefile.am @@ -178,15 +178,38 @@ check-local: $(TESTENV) ./snapraid$(EXEEXT) -c $(srcdir)/test-raid6.conf fix 2>/dev/null $(TESTENV) ./snapraid$(EXEEXT) -c $(srcdir)/test-raid6.conf check echo --- Corrupt the parity, fix and check with raid5 - $(TESTENV) ./mktest$(EXEEXT) damage 1 10 10000 test/parity + $(TESTENV) ./mktest$(EXEEXT) damage 1 50 10000 test/parity $(TESTENV) ./snapraid$(EXEEXT) -R -c $(srcdir)/test-raid5.conf check 2>/dev/null $(TESTENV) ./snapraid$(EXEEXT) -c $(srcdir)/test-raid5.conf fix 2>/dev/null $(TESTENV) ./snapraid$(EXEEXT) -c $(srcdir)/test-raid6.conf check + echo --- Corrupt the parity and the q-parity, fix and check with raid6 + $(TESTENV) ./mktest$(EXEEXT) damage 1 50 10000 test/parity + $(TESTENV) ./mktest$(EXEEXT) damage 1 50 10000 test/q-parity + $(TESTENV) ./snapraid$(EXEEXT) -R -c $(srcdir)/test-raid6.conf check 2>/dev/null + $(TESTENV) ./snapraid$(EXEEXT) -c $(srcdir)/test-raid6.conf fix 2>/dev/null + $(TESTENV) ./snapraid$(EXEEXT) -c $(srcdir)/test-raid6.conf check echo --- Corrupt some files, fix and check with raid5 $(TESTENV) ./mktest$(EXEEXT) damage 1 1 500 test/disk2/b* $(TESTENV) ./snapraid$(EXEEXT) -R -c $(srcdir)/test-raid5.conf check 2>/dev/null $(TESTENV) ./snapraid$(EXEEXT) -c $(srcdir)/test-raid5.conf fix 2>/dev/null $(TESTENV) ./snapraid$(EXEEXT) -c $(srcdir)/test-raid6.conf check + echo --- Corrupt some files, fix and check with raid6 + $(TESTENV) ./mktest$(EXEEXT) damage 1 1 500 test/disk2/_a/_a/* + $(TESTENV) ./mktest$(EXEEXT) damage 1 1 500 test/disk3/_a/_a/* + $(TESTENV) ./mktest$(EXEEXT) damage 1 1 500 test/disk2/_a/_b/* + $(TESTENV) ./mktest$(EXEEXT) damage 1 1 500 test/disk3/_a/_b/* + $(TESTENV) ./snapraid$(EXEEXT) -U -c $(srcdir)/test-raid5.conf check 2>/dev/null + $(TESTENV) ./snapraid$(EXEEXT) -R -c $(srcdir)/test-raid6.conf check 2>/dev/null + $(TESTENV) ./snapraid$(EXEEXT) -c $(srcdir)/test-raid6.conf fix 2>/dev/null + $(TESTENV) ./snapraid$(EXEEXT) -c $(srcdir)/test-raid6.conf check + echo --- Corrupt the parity and some files, fix and check with raid6 + $(TESTENV) ./mktest$(EXEEXT) damage 1 50 10000 test/parity + $(TESTENV) ./mktest$(EXEEXT) damage 1 1 500 test/disk1/_a/_a/* + $(TESTENV) ./mktest$(EXEEXT) damage 1 1 500 test/disk1/_a/_a/* + $(TESTENV) ./snapraid$(EXEEXT) -U -c $(srcdir)/test-raid5.conf check 2>/dev/null + $(TESTENV) ./snapraid$(EXEEXT) -R -c $(srcdir)/test-raid6.conf check 2>/dev/null + $(TESTENV) ./snapraid$(EXEEXT) -c $(srcdir)/test-raid6.conf fix 2>/dev/null + $(TESTENV) ./snapraid$(EXEEXT) -c $(srcdir)/test-raid6.conf check echo --- Sync after all the fixes $(TESTENV) ./snapraid$(EXEEXT) -v -c $(srcdir)/test-raid6.conf sync $(TESTENV) ./snapraid$(EXEEXT) -c $(srcdir)/test-raid6.conf check