Uses a binary content file.

This commit is contained in:
Andrea Mazzoleni 2013-08-17 16:17:53 +02:00
parent d87f371a1d
commit 3698064040
8 changed files with 1704 additions and 191 deletions

View file

@ -95,6 +95,7 @@ void usage(void)
#define OPT_TEST_FORCE_SCRUB 271
#define OPT_TEST_FORCE_SCRUB_EVEN 272
#define OPT_TEST_FORCE_CONTENT_WRITE 273
#define OPT_TEST_FORCE_CONTENT_TEXT 274
#if HAVE_GETOPT_LONG
struct option long_options[] = {
@ -168,6 +169,9 @@ struct option long_options[] = {
/* Force write of the content file even if no modification is done. */
{ "test-force-content-write", 0, 0, OPT_TEST_FORCE_CONTENT_WRITE },
/* Force the use of text content file . */
{ "test-force-content-text", 0, 0, OPT_TEST_FORCE_CONTENT_TEXT },
{ 0, 0, 0, 0 }
};
#endif
@ -378,6 +382,9 @@ int main(int argc, char* argv[])
case OPT_TEST_FORCE_CONTENT_WRITE :
opt.force_content_write = 1;
break;
case OPT_TEST_FORCE_CONTENT_TEXT :
opt.force_content_text = 1;
break;
default:
fprintf(stderr, "Unknown option '%c'\n", (char)c);
exit(EXIT_FAILURE);