mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-25 18:40:19 -04:00
Increases a little the code coverage in testing.
This commit is contained in:
parent
1cd6c1ddde
commit
6d4d75ad0b
3 changed files with 7 additions and 4 deletions
|
|
@ -224,7 +224,7 @@ endif
|
|||
echo --- Check the --gen-conf command
|
||||
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) --gen-conf bench/content
|
||||
echo --- Filter
|
||||
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) -c $(CONF) -d disk1 check
|
||||
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS_VERBOSE) -c $(CONF) -d disk1 check
|
||||
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS_VERBOSE) -c $(CONF) -f "*a" -f "a/" -f "/b/a*" check
|
||||
echo --- Delete some files and sync
|
||||
rm bench/disk4/a/9*
|
||||
|
|
@ -489,8 +489,8 @@ endif
|
|||
rm bench/disk4/a/6*
|
||||
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) -c $(CONF) -t 10 sync --test-force-content-text
|
||||
cp bench/content bench/content.txt
|
||||
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) -c $(CONF) test-rewrite
|
||||
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) -c $(CONF) --test-force-content-text test-rewrite
|
||||
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS_VERBOSE) -c $(CONF) test-rewrite
|
||||
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS_VERBOSE) -c $(CONF) --test-force-content-text test-rewrite
|
||||
cmp bench/content bench/content.txt
|
||||
$(TESTENV) ./snapraid$(EXEEXT) $(CHECKFLAGS) -c $(CONF) check -l test.log
|
||||
$(TESTENV) ./mktest$(EXEEXT) generate 4 6 $(CHECKCOUNT) $(CHECKSIZE)
|
||||
|
|
|
|||
3
TODO
3
TODO
|
|
@ -30,7 +30,7 @@ If they do not match, stop the processing.
|
|||
This can be done to avoid to use not synchronized parity and content files,
|
||||
resulting in wrong data.
|
||||
But if the sync process is killed we need a way to resyncronize them.
|
||||
Or maybe we should allow parity never than content, but not viceversa.
|
||||
Or maybe we should allow parity newer than content, but not viceversa.
|
||||
|
||||
* Add an option for dup to list only duplicates with different name.
|
||||
This supposing that if a file has the same name, it's intentionally duplicated.
|
||||
|
|
@ -104,6 +104,7 @@ File with the same name will get an extra extension like ".1", ".2".
|
|||
|
||||
* Use Async IO for Linux (libaio).
|
||||
See thread: https://sourceforge.net/p/snapraid/discussion/1677233/thread/a300a10b/
|
||||
Docs at: http://www.fsl.cs.sunysb.edu/~vass/linux-aio.txt
|
||||
|
||||
* Create a filesystem snapshot at every sync, and use it in all the other commands
|
||||
automatically.
|
||||
|
|
|
|||
|
|
@ -2150,11 +2150,13 @@ static void state_read_text(struct snapraid_state* state, const char* path, STRE
|
|||
|
||||
/* if no info is present */
|
||||
if (!info) {
|
||||
/* LCOV_EXCL_START */
|
||||
/* set a fake info block */
|
||||
info = info_make(save_time, 0, 0);
|
||||
|
||||
/* insert the info in the array */
|
||||
info_set(&state->infoarr, b, info);
|
||||
/* LCOV_EXCL_STOP */
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue