mirror of
https://github.com/amadvance/snapraid.git
synced 2026-10-26 19:01:57 -04:00
Refactors the regression test.
This commit is contained in:
parent
0f6867ba4e
commit
91c3de2182
6 changed files with 263 additions and 236 deletions
|
|
@ -238,6 +238,7 @@ int main(int argc, char* argv[])
|
|||
const char* log;
|
||||
int lock;
|
||||
const char* gen_conf;
|
||||
int period;
|
||||
|
||||
os_init();
|
||||
raid_init();
|
||||
|
|
@ -251,6 +252,7 @@ int main(int argc, char* argv[])
|
|||
blockcount = 0;
|
||||
tommy_list_init(&filterlist_file);
|
||||
tommy_list_init(&filterlist_disk);
|
||||
period = 1000;
|
||||
filter_missing = 0;
|
||||
filter_error = 0;
|
||||
percentage = -1;
|
||||
|
|
@ -370,7 +372,7 @@ int main(int argc, char* argv[])
|
|||
version();
|
||||
exit(EXIT_SUCCESS);
|
||||
case 'T' :
|
||||
speed();
|
||||
speed(period);
|
||||
exit(EXIT_SUCCESS);
|
||||
case 'C' :
|
||||
gen_conf = optarg;
|
||||
|
|
@ -398,6 +400,7 @@ int main(int argc, char* argv[])
|
|||
break;
|
||||
case OPT_TEST_SKIP_DEVICE :
|
||||
opt.skip_device = 1;
|
||||
period = 100; /* reduce period of the speed test */
|
||||
break;
|
||||
case OPT_TEST_FORCE_MURMUR3 :
|
||||
opt.force_murmur3 = 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue