[V1,3/3] conf/pvp_diff_qemu_version: add expected value to verify

Message ID 20230420072026.10999-4-weix.ling@intel.com (mailing list archive)
State Superseded
Headers
Series add case3 and optimize verify expected value |

Checks

Context Check Description
ci/Intel-dts-pylama-test success Testing OK
ci/Intel-dts-format-test success Testing OK
ci/Intel-dts-doc-test success Testing OK
ci/Intel-dts-suite-test warning SKIPPED

Commit Message

Ling, WeiX April 20, 2023, 7:20 a.m. UTC
  Add expected value to verify the running result. 

Signed-off-by: Wei Ling <weix.ling@intel.com>
---
 conf/pvp_diff_qemu_version.cfg | 44 +++++++++++++++++++++++++++-------
 1 file changed, 35 insertions(+), 9 deletions(-)
  

Patch

diff --git a/conf/pvp_diff_qemu_version.cfg b/conf/pvp_diff_qemu_version.cfg
index 0353c246..1e09731b 100644
--- a/conf/pvp_diff_qemu_version.cfg
+++ b/conf/pvp_diff_qemu_version.cfg
@@ -1,20 +1,46 @@ 
-# Configuration sample: vhost_sample.cfg
 [vm0]
 cpu =
-    model=host,number=4,cpupin=4 5;
+    model=host,number=8,cpupin=20 21 22 23 24 25 26 27;
 mem =
-    size=4096,hugepage=yes;
+    size=8192,hugepage=yes;
 disk =
-    file=/home/img/vm.img;
+    file=/home/image/ubuntu2004.img;
 login =
     user=root,password=tester;
 vnc =
     displayNum=4;
+net =
+   type=user,opt_vlan=2;
+   type=nic,opt_vlan=2;
 daemon =
     enable=yes;
-# config all the path of qemu version you want to tested
 qemu =
-    path=path/qemu-2.5/bin/qemu-system-x86_64;
-    path=path/qemu-2.6/bin/qemu-system-x86_64;
-    path=path/qemu-2.7/bin/qemu-system-x86_64;
-    path=path/qemu-2.8/bin/qemu-system-x86_64;
+    path=/home/QEMU/qemu-5.2.0/bin/qemu-system-x86_64;
+    path=/home/QEMU/qemu-6.2.0/bin/qemu-system-x86_64;
+    path=/home/QEMU/qemu-7.0.0/bin/qemu-system-x86_64;
+    path=/home/QEMU/qemu-7.1.0/bin/qemu-system-x86_64;
+    path=/home/QEMU/qemu-7.2.0/bin/qemu-system-x86_64;
+[suite]
+update_expected = True
+packet_sizes = [64, 128, 256, 512, 1024, 1280, 1518]
+test_duration = 60
+accepted_tolerance = 0.05
+expected_throughput = {
+    'test_perf_vhost_pvp_diffrent_qemu_version_virtio95_mergeable_path': {
+        'qemu-5.2': {64: 0.0, 128: 0.0, 256: 0.0, 512: 0.0, 1024: 0.0, 1280: 0.0, 1518: 0.0},
+        'qemu-6.2': {64: 0.0, 128: 0.0, 256: 0.0, 512: 0.0, 1024: 0.0, 1280: 0.0, 1518: 0.0},
+        'qemu-7.0': {64: 0.0, 128: 0.0, 256: 0.0, 512: 0.0, 1024: 0.0, 1280: 0.0, 1518: 0.0},
+        'qemu-7.1': {64: 0.0, 128: 0.0, 256: 0.0, 512: 0.0, 1024: 0.0, 1280: 0.0, 1518: 0.0},
+        'qemu-7.2': {64: 0.0, 128: 0.0, 256: 0.0, 512: 0.0, 1024: 0.0, 1280: 0.0, 1518: 0.0}},
+    'test_perf_vhost_pvp_diffrent_qemu_version_virtio10_mergeable_path': {
+        'qemu-5.2': {64: 0.0, 128: 0.0, 256: 0.0, 512: 0.0, 1024: 0.0, 1280: 0.0, 1518: 0.0},
+        'qemu-6.2': {64: 0.0, 128: 0.0, 256: 0.0, 512: 0.0, 1024: 0.0, 1280: 0.0, 1518: 0.0},
+        'qemu-7.0': {64: 0.0, 128: 0.0, 256: 0.0, 512: 0.0, 1024: 0.0, 1280: 0.0, 1518: 0.0},
+        'qemu-7.1': {64: 0.0, 128: 0.0, 256: 0.0, 512: 0.0, 1024: 0.0, 1280: 0.0, 1518: 0.0},
+        'qemu-7.2': {64: 0.0, 128: 0.0, 256: 0.0, 512: 0.0, 1024: 0.0, 1280: 0.0, 1518: 0.0}},
+    'test_perf_vhost_pvp_diffrent_qemu_version_virtio11_mergeable_path': {
+        'qemu-5.2': {64: 0.0, 128: 0.0, 256: 0.0, 512: 0.0, 1024: 0.0, 1280: 0.0, 1518: 0.0},
+        'qemu-6.2': {64: 0.0, 128: 0.0, 256: 0.0, 512: 0.0, 1024: 0.0, 1280: 0.0, 1518: 0.0},
+        'qemu-7.0': {64: 0.0, 128: 0.0, 256: 0.0, 512: 0.0, 1024: 0.0, 1280: 0.0, 1518: 0.0},
+        'qemu-7.1': {64: 0.0, 128: 0.0, 256: 0.0, 512: 0.0, 1024: 0.0, 1280: 0.0, 1518: 0.0},
+        'qemu-7.2': {64: 0.0, 128: 0.0, 256: 0.0, 512: 0.0, 1024: 0.0, 1280: 0.0, 1518: 0.0}}}