support for regression testing. r=rods

git-svn-id: svn://10.0.0.236/trunk@58785 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
dcone%netscape.com
2000-01-26 15:14:41 +00:00
parent c4d88f4318
commit 78a3fc3824
14 changed files with 185 additions and 67 deletions

View File

@@ -438,6 +438,7 @@ PrintHelpInfo(char **argv)
fprintf(stderr, "-A domain -- add a domain/host that should be avoided (e.g. microsoft.com)\n");
fprintf(stderr, "-N pages -- set the max # of pages to crawl\n");
fprintf(stderr, "-x -- startup and just shutdown to test for leaks under Purify\n");
fprintf(stderr, "-Prt -- printer test will be run\n");
#if defined(NS_DEBUG) && defined(XP_WIN)
fprintf(stderr, "-md # -- set the crt debug flags to #\n");
#endif
@@ -654,6 +655,15 @@ nsViewerApp::ProcessArguments(int argc, char** argv)
else if (PL_strcmp(argv[i], "-?") == 0) {
PrintHelpInfo(argv);
}
else if (PL_strcmp(argv[i], "-Prt") == 0) {
int printTestType;
i++;
if (i>=argc || 1!=sscanf(argv[i], "%d", &printTestType)){
PrintHelpInfo(argv);
exit(-1);
}
mCrawler->SetPrintTest(printTestType);
}
}
else
break;