Update of /cvsroot/compbench/CompBenchmarks++/compbenchmarks-plan
In directory sc8-pr-cvs4.sourceforge.net:/tmp/cvs-serv22936
Modified Files:
cloptions.cpp
Log Message:
--run added.
Index: cloptions.cpp
===================================================================
RCS file: /cvsroot/compbench/CompBenchmarks++/compbenchmarks-plan/cloptions.cpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -d -r1.5 -r1.6
*** cloptions.cpp 31 Jul 2007 17:22:27 -0000 1.5
--- cloptions.cpp 31 Jul 2007 18:34:16 -0000 1.6
***************
*** 36,40 ****
ActionRegisterOptions, ActionUnregisterOptions, ActionListOptions,
ActionRegisterOption, ActionUnregisterOption, ActionListOption,
! ActionRegisterBenchmark, ActionUnregisterBenchmark, ActionListBenchmark
} OptAction;
--- 36,41 ----
ActionRegisterOptions, ActionUnregisterOptions, ActionListOptions,
ActionRegisterOption, ActionUnregisterOption, ActionListOption,
! ActionRegisterBenchmark, ActionUnregisterBenchmark, ActionListBenchmark,
! ActionRun
} OptAction;
***************
*** 218,221 ****
--- 219,224 ----
{"benchmark-unregister", required_argument, 0, 7002},
{"benchmark-list", no_argument, 0, 7003},
+
+ {"run", no_argument, 0, 8001},
{ 0, 0, 0, 0 }
***************
*** 333,336 ****
--- 336,342 ----
action=ActionListBenchmark;
break;
+ case 8001:
+ action=ActionRun;
+ break;
default:
case '?':
***************
*** 881,884 ****
--- 887,903 ----
delete(P);
break;
+ case ActionRun:
+ if (!getPlanFileName(planFileName))
+ break;
+
+ P=restorePlan(planFileName);
+
+ if (!P)
+ break;
+
+ while (P->nextIteration(0));
+ delete(P);
+ break;
+
default:
printf("?\n");
|