New option to relax the content file checks.

This commit is contained in:
Andrea Mazzoleni 2014-02-22 07:47:34 +01:00
parent 624212d7d4
commit 715a4be2a0
3 changed files with 42 additions and 11 deletions

View file

@ -104,6 +104,7 @@ void memory(void)
#define OPT_TEST_FORCE_SCRUB_EVEN 272
#define OPT_TEST_FORCE_CONTENT_WRITE 273
#define OPT_TEST_FORCE_CONTENT_TEXT 274
#define OPT_TEST_SKIP_CONTENT_CHECK 275
#if HAVE_GETOPT_LONG
struct option long_options[] = {
@ -185,6 +186,9 @@ struct option long_options[] = {
/* Force the use of text content file . */
{ "test-force-content-text", 0, 0, OPT_TEST_FORCE_CONTENT_TEXT },
/* Relax the checks done at the content file */
{ "test-skip-content-check", 0, 0, OPT_TEST_SKIP_CONTENT_CHECK },
{ 0, 0, 0, 0 }
};
#endif
@ -399,6 +403,9 @@ int main(int argc, char* argv[])
case OPT_TEST_SKIP_DEVICE :
opt.skip_device = 1;
break;
case OPT_TEST_SKIP_CONTENT_CHECK :
opt.skip_content_check = 1;
break;
case OPT_TEST_FORCE_MURMUR3 :
opt.force_murmur3 = 1;
break;