diff options
author | Roland Picard <roland.picard@orange.com> | 2019-11-26 17:21:08 +0100 |
---|---|---|
committer | Roland Picard <roland.picard@orange.com> | 2019-11-26 17:21:08 +0100 |
commit | 1eabf6e52550e3c4af39f54b68f7b85466e80ea4 (patch) | |
tree | 9d4f812231036e38dc618b9cafcb8a38fafbdf0e /tests/opnfv/test_cases | |
parent | c3393d9c861f24e9b876d3814d2344cd944cf7d9 (diff) |
Add test case related to measure compute score and its energy consumption impact
Test case opnfv_yardstick_tc015.yaml is added that runs a CPU test and monitor
energy consumtion impact synchronized with cpu load.
opnfv_yardstick_tc015.rst is added to provide documentation of the test case.
energy.yaml sample is added to show how to add energy testing in any test case.
JIRA: YARDSTICK-1624
Co-authored by: Sun Guannan <sungn2@lenovo.com>
Signed-off-by: Roland Picard <roland.picard@orange.com>
Change-Id: I2403c38bbf320f96d2ed1d9e262560388efc44c9
Diffstat (limited to 'tests/opnfv/test_cases')
-rwxr-xr-x | tests/opnfv/test_cases/opnfv_yardstick_tc015.yaml | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/tests/opnfv/test_cases/opnfv_yardstick_tc015.yaml b/tests/opnfv/test_cases/opnfv_yardstick_tc015.yaml new file mode 100755 index 000000000..f35c83377 --- /dev/null +++ b/tests/opnfv/test_cases/opnfv_yardstick_tc015.yaml @@ -0,0 +1,60 @@ +##############################################################################
+# Copyright (c) 2019 Orange and others.
+#
+# All rights reserved. This program and the accompanying materials
+# are made available under the terms of the Apache License, Version 2.0
+# which accompanies this distribution, and is available at
+# http://www.apache.org/licenses/LICENSE-2.0
+##############################################################################
+---
+
+schema: "yardstick:task:0.1"
+description: >
+ Yardstick TC015 config file;
+ Measure Processing speed using unixbench with its impact on energy consumption and CPU load.
+
+{% set target = target or "node5"%}
+{% set file = file or '/etc/yardstick/pod.yaml' %}
+{% set duree = 60 %}
+{% set intervalle = 5 %}
+scenarios:
+
+-
+ type: Energy
+ run_in_background: true
+ target: {{target}}.LF
+
+ runner:
+ type: Duration
+ duration: {{duree}}
+ interval: {{intervalle}}
+
+-
+ type: CPUload
+ run_in_background: true
+ options:
+ interval: 1
+ count: 1
+ host: {{target}}.LF
+ runner:
+ type: Duration
+ duration: {{duree}}
+ interval: {{intervalle}}
+
+-
+ type: UnixBench
+ options:
+ run_mode: 'verbose'
+ test_type: 'dhry2reg'
+ host: {{target}}.LF
+
+ runner:
+ type: Iteration
+ iterations: 1
+ interval: 1
+
+
+context:
+ type: Node
+ name: LF
+ file: {{file}}
|