summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/opnfv/test_cases/opnfv_yardstick_tc078.yaml6
-rw-r--r--yardstick/benchmark/scenarios/compute/spec_cpu.py3
2 files changed, 8 insertions, 1 deletions
diff --git a/tests/opnfv/test_cases/opnfv_yardstick_tc078.yaml b/tests/opnfv/test_cases/opnfv_yardstick_tc078.yaml
index b89f7674b..94256125f 100644
--- a/tests/opnfv/test_cases/opnfv_yardstick_tc078.yaml
+++ b/tests/opnfv/test_cases/opnfv_yardstick_tc078.yaml
@@ -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
diff --git a/yardstick/benchmark/scenarios/compute/spec_cpu.py b/yardstick/benchmark/scenarios/compute/spec_cpu.py
index 520618631..df361cd94 100644
--- a/yardstick/benchmark/scenarios/compute/spec_cpu.py
+++ b/yardstick/benchmark/scenarios/compute/spec_cpu.py
@@ -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"]