mirror of
https://github.com/amadvance/snapraid.git
synced 2026-12-03 05:10:16 -05:00
Add extra testing of the --force-device option
This commit is contained in:
parent
2b69cfa073
commit
ec0f14d18f
1 changed files with 5 additions and 0 deletions
|
|
@ -111,6 +111,7 @@ EXTRA_DIST = \
|
||||||
test/test-par5.conf \
|
test/test-par5.conf \
|
||||||
test/test-par6.conf \
|
test/test-par6.conf \
|
||||||
test/test-par6-hole.conf \
|
test/test-par6-hole.conf \
|
||||||
|
test/test-par6-noaccess.conf \
|
||||||
snapraid.conf.example \
|
snapraid.conf.example \
|
||||||
configure.windows-x86 configure.windows-x64 snapraid.conf.example.windows \
|
configure.windows-x86 configure.windows-x64 snapraid.conf.example.windows \
|
||||||
acinclude.m4 \
|
acinclude.m4 \
|
||||||
|
|
@ -169,6 +170,7 @@ CHECKSIZE = 4000
|
||||||
|
|
||||||
CONF = $(srcdir)/test/test-par6.conf
|
CONF = $(srcdir)/test/test-par6.conf
|
||||||
HOLE = $(srcdir)/test/test-par6-hole.conf
|
HOLE = $(srcdir)/test/test-par6-hole.conf
|
||||||
|
NOACCESS = $(srcdir)/test/test-par6-noaccess.conf
|
||||||
PAR1 = $(srcdir)/test/test-par1.conf
|
PAR1 = $(srcdir)/test/test-par1.conf
|
||||||
PAR2 = $(srcdir)/test/test-par2.conf
|
PAR2 = $(srcdir)/test/test-par2.conf
|
||||||
PAR3 = $(srcdir)/test/test-par3.conf
|
PAR3 = $(srcdir)/test/test-par3.conf
|
||||||
|
|
@ -368,6 +370,9 @@ endif
|
||||||
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-expect-recoverable -c $(CONF) check -l test.log
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --test-expect-recoverable -c $(CONF) check -l test.log
|
||||||
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) -c $(CONF) fix -d 2-parity -d 3-parity -d 4-parity -d 5-parity -d 6-parity -l test.log
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) -c $(CONF) fix -d 2-parity -d 3-parity -d 4-parity -d 5-parity -d 6-parity -l test.log
|
||||||
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) -c $(CONF) check
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) -c $(CONF) check
|
||||||
|
echo --- Fix with unaccessible parity and disk
|
||||||
|
$(FAILENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) -c $(NOACCESS) fix --test-expect-failure
|
||||||
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) -c $(NOACCESS) fix --force-device --test-expect-recoverable -l test.log
|
||||||
#### SCRUB ####
|
#### SCRUB ####
|
||||||
echo --- Scrub some times
|
echo --- Scrub some times
|
||||||
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) -c $(CONF) --test-force-scrub-at 100 scrub
|
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) -c $(CONF) --test-force-scrub-at 100 scrub
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue