testcase: add rate parameter for spec cpu 2006 05/40805/1
authorJingLu5 <lvjing5@huawei.com>
Fri, 1 Sep 2017 02:55:52 +0000 (02:55 +0000)
committerJingLu5 <lvjing5@huawei.com>
Fri, 1 Sep 2017 02:55:52 +0000 (02:55 +0000)
Change-Id: I5f1634d2a30eb93b4632e4773cee3f8b7a151b1f
Signed-off-by: JingLu5 <lvjing5@huawei.com>
tests/opnfv/test_cases/opnfv_yardstick_tc078.yaml
yardstick/benchmark/scenarios/compute/spec_cpu.py

index b89f767..9425612 100644 (file)
@@ -20,7 +20,11 @@ scenarios:
   type: SpecCPU2006
 
   options:
-      benchmark_subset: int
+      SPECint_benchmark: int^429
+      runspec_iterations: 1
+      runspec_tune: base
+      runspec_size: ref
+      runspec_rate: 1
 
   host: node1.yardstick-TC078
 
index 5206186..df361cd 100644 (file)
@@ -103,6 +103,9 @@ class SpecCPU(base.Scenario):
         cmd = "cd /usr/cpu2006/ && . ./shrc && runspec --config %s" % self.runspec_config
         cmd_args = ""
 
+        if "rate" in self.options:
+            cmd_args += " --rate %s" % self.options["runspec_rate"]
+
         if "output_format" in self.options:
             cmd_args += " --output_format %s" % self.options["output_format"]