Add test case related to measure compute score and its energy consumption impact
[yardstick.git] / tests / opnfv / test_cases / opnfv_yardstick_tc015.yaml
diff --git a/tests/opnfv/test_cases/opnfv_yardstick_tc015.yaml b/tests/opnfv/test_cases/opnfv_yardstick_tc015.yaml
new file mode 100755 (executable)
index 0000000..f35c833
--- /dev/null
@@ -0,0 +1,60 @@
+##############################################################################\r
+# Copyright (c) 2019 Orange and others.\r
+#\r
+# All rights reserved. This program and the accompanying materials\r
+# are made available under the terms of the Apache License, Version 2.0\r
+# which accompanies this distribution, and is available at\r
+# http://www.apache.org/licenses/LICENSE-2.0\r
+##############################################################################\r
+---\r
+\r
+schema: "yardstick:task:0.1"\r
+description: >\r
+    Yardstick TC015 config file;\r
+    Measure Processing speed using unixbench with its impact on energy consumption and CPU load.\r
+\r
+{% set target = target or "node5"%}\r
+{% set file = file or '/etc/yardstick/pod.yaml' %}\r
+{% set duree = 60 %}\r
+{% set intervalle = 5 %}\r
+scenarios:\r
+\r
+-\r
+  type: Energy\r
+  run_in_background: true\r
+  target: {{target}}.LF\r
+\r
+  runner:\r
+    type: Duration\r
+    duration: {{duree}}\r
+    interval: {{intervalle}}\r
+\r
+-\r
+  type: CPUload\r
+  run_in_background: true\r
+  options:\r
+    interval: 1\r
+    count: 1\r
+  host: {{target}}.LF\r
+  runner:\r
+    type: Duration\r
+    duration: {{duree}}\r
+    interval: {{intervalle}}\r
+\r
+-\r
+  type: UnixBench\r
+  options:\r
+    run_mode: 'verbose'\r
+    test_type: 'dhry2reg'\r
+  host: {{target}}.LF\r
+\r
+  runner:\r
+    type: Iteration\r
+    iterations: 1\r
+    interval: 1\r
+\r
+\r
+context:\r
+  type: Node\r
+  name: LF\r
+  file: {{file}}\r