Update of /cvsroot/compbench/CompBenchmarks++/compbenchmarks-core
In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv334
Modified Files:
cloptions.cpp
Log Message:
Verbosity (of displayed XML messages) can be changed by command line option.
Index: cloptions.cpp
===================================================================
RCS file: /cvsroot/compbench/CompBenchmarks++/compbenchmarks-core/cloptions.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -d -r1.4 -r1.5
*** cloptions.cpp 6 Jun 2007 21:40:23 -0000 1.4
--- cloptions.cpp 7 Jun 2007 16:18:13 -0000 1.5
***************
*** 79,88 ****
<< " --package-test | -T : run package's testsuite" << std::endl
<< " --package-release | -R : clean compiled object" << std::endl << std::endl
! << "Benchmarking options (with -b or --bench domain) : " << std::endl
! << " [-b|--bench] <BID> <C> [O] : use compiler C with optional arguments" << std::endl
<< " O to build benchmark BID" << std::endl
<< " --disable-testsuite | -S : disable package's test suite" << std::endl << std::endl
<< "Other options that may affect behaviour :" << std::endl
<< " --force : force operation" << std::endl
<< std::endl;
}
--- 79,89 ----
<< " --package-test | -T : run package's testsuite" << std::endl
<< " --package-release | -R : clean compiled object" << std::endl << std::endl
! << "Benchmarking options (with -B or --bench domain) : " << std::endl
! << " [-B|--bench] <BID> <C> [O] : use compiler C with optional arguments" << std::endl
<< " O to build benchmark BID" << std::endl
<< " --disable-testsuite | -S : disable package's test suite" << std::endl << std::endl
<< "Other options that may affect behaviour :" << std::endl
<< " --force : force operation" << std::endl
+ << " --verbose <0,1,2> : manage messages (quiet,basic reporting,complete)" << std::endl
<< std::endl;
}
***************
*** 281,284 ****
--- 282,286 ----
{"disable-testsuite", 0, 0, 'S' },
{"force", 0, 0, 'f' },
+ {"verbose", required_argument, 0, 'V' },
{ 0, 0, 0, 0}
};
***************
*** 290,294 ****
break;
! c = getopt_long (argc, argv, "hvxiI:F:U:qHc:p::B:b::A:aMmD:E:P:C:T:R:S:f", // uLHPCFIB", /* :011000112", */
long_options, &option_index);
if (c==-1) {
--- 292,296 ----
break;
! c = getopt_long (argc, argv, "hvxiI:F:U:qHc:p::V:B:b::A:aMmD:E:P:C:T:R:S:f", // uLHPCFIB", /* :011000112", */
long_options, &option_index);
if (c==-1) {
***************
*** 300,303 ****
--- 302,326 ----
cbmSingleDomain(&domain, DomainVersion, "v");
break;
+ case 'V':
+ if (optarg) {
+ tmp=optarg;
+ if (tmp=="0")
+ UO_verbose=CBM::None;
+ else {
+ if (tmp=="1") {
+ UO_verbose=CBM::Basic;
+ } else {
+ if (tmp=="2") {
+ UO_verbose=CBM::All;
+ } else {
+ cbmUI->msgFatal("0, 1 or 2 expected for --verbose");
+ cbmSystem->done();
+ exit(parseExitValue);
+ break;
+ }
+ }
+ }
+ }
+ break;
case 'q':
cbmSingleDomain(&domain, DomainQuery, "q");
|