From: Xie wei <weix.xie@intel.com>
To: dts@dpdk.org
Cc: Xie wei <weix.xie@intel.com>
Subject: [dts] [dts 7/8] tests/TestSuite_vm_power_manager:support meson build method
Date: Wed, 2 Sep 2020 17:15:09 +0800 [thread overview]
Message-ID: <20200902091510.6043-8-weix.xie@intel.com> (raw)
In-Reply-To: <20200902091510.6043-1-weix.xie@intel.com>
Signed-off-by: Xie wei <weix.xie@intel.com>
---
tests/TestSuite_vm_power_manager.py | 31 ++++++++++-------------------
1 file changed, 11 insertions(+), 20 deletions(-)
diff --git a/tests/TestSuite_vm_power_manager.py b/tests/TestSuite_vm_power_manager.py
index c34d38c..00910eb 100644
--- a/tests/TestSuite_vm_power_manager.py
+++ b/tests/TestSuite_vm_power_manager.py
@@ -90,8 +90,11 @@ class TestVmPowerManager(TestCase, IxiaPacketGenerator):
"examples/vm_power_manager/guest_cli")
self.verify("Error" not in out, "Compilation error")
self.verify("No such" not in out, "Compilation error")
- self.vm_power_dir = "./examples/vm_power_manager/"
- mgr_cmd = self.vm_power_dir + "build/vm_power_mgr -c 0x7 -n 4"
+
+ self.path = self.vm_dut.apps_name['guest_cli']
+ self.guest_cmd = self.path + "-c 0xf -n 4 -- --vm-name=%s --vcpu-list=0,1,2,3" % self.vm_name
+ self.vm_power_dir = self.vm_dut.apps_name['vm_power_manager']
+ mgr_cmd = self.vm_power_dir + "-c 0x7 -n 4"
out = self.dut.send_expect(mgr_cmd, "vmpower>", 120)
self.dut.send_expect("add_vm %s" % self.vm_name, "vmpower>")
self.dut.send_expect("add_channels %s all" % self.vm_name, "vmpower>")
@@ -113,9 +116,7 @@ class TestVmPowerManager(TestCase, IxiaPacketGenerator):
Check power monitor channel connection
"""
# check Channels and vcpus
- guest_cmd = self.vm_power_dir + \
- "guest_cli/build/guest_vm_power_mgr -c 0xf -n 4 -- --vm-name=%s --vcpu-list=0,1,2,3" % self.vm_name
- out = self.vm_dut.send_expect(guest_cmd, "vmpower\(guest\)>", 120)
+ out = self.vm_dut.send_expect(self.guest_cmd, "vmpower\(guest\)>", 120)
self.vm_dut.send_expect("quit", "# ")
def get_cpu_frequency(self, core_id):
@@ -132,9 +133,7 @@ class TestVmPowerManager(TestCase, IxiaPacketGenerator):
"""
Check host cpu frequency can scale down in VM
"""
- guest_cmd = self.vm_power_dir + \
- "guest_cli/build/guest_vm_power_mgr -c 0xf -n 4 -- --vm-name=%s --vcpu-list=0,1,2,3" % self.vm_name
- out = self.vm_dut.send_expect(guest_cmd, "vmpower\(guest\)>", 120)
+ out = self.vm_dut.send_expect(self.guest_cmd, "vmpower\(guest\)>", 120)
for vcpu in range(self.core_num):
self.vm_dut.send_expect(
@@ -162,9 +161,7 @@ class TestVmPowerManager(TestCase, IxiaPacketGenerator):
"""
Check host cpu frequency can scale up in VM
"""
- guest_cmd = self.vm_power_dir + \
- "guest_cli/build/guest_vm_power_mgr -c 0xf -n 4 -- --vm-name=%s --vcpu-list=0,1,2,3" % self.vm_name
- out = self.vm_dut.send_expect(guest_cmd, "vmpower\(guest\)>", 120)
+ out = self.vm_dut.send_expect(self.guest_cmd, "vmpower\(guest\)>", 120)
for vcpu in range(self.core_num):
self.vm_dut.send_expect(
@@ -189,9 +186,7 @@ class TestVmPowerManager(TestCase, IxiaPacketGenerator):
"""
Check host cpu frequency can scale to max in VM
"""
- guest_cmd = self.vm_power_dir + \
- "guest_cli/build/guest_vm_power_mgr -c 0xf -n 4 -- --vm-name=%s --vcpu-list=0,1,2,3" % self.vm_name
- out = self.vm_dut.send_expect(guest_cmd, "vmpower\(guest\)>", 120)
+ out = self.vm_dut.send_expect(self.guest_cmd, "vmpower\(guest\)>", 120)
max_freq_path = "cat /sys/devices/system/cpu/cpu%s/cpufreq/" + \
"cpuinfo_max_freq"
@@ -212,9 +207,7 @@ class TestVmPowerManager(TestCase, IxiaPacketGenerator):
"""
Check host cpu frequency can scale to min in VM
"""
- guest_cmd = self.vm_power_dir + \
- "guest_cli/build/guest_vm_power_mgr -c 0xf -n 4 -- --vm-name=%s --vcpu-list=0,1,2,3" % self.vm_name
- out = self.vm_dut.send_expect(guest_cmd, "vmpower\(guest\)>", 120)
+ out = self.vm_dut.send_expect(self.guest_cmd, "vmpower\(guest\)>", 120)
min_freq_path = "cat /sys/devices/system/cpu/cpu%s/cpufreq/" + \
"cpuinfo_min_freq"
@@ -276,9 +269,7 @@ class TestVmPowerManager(TestCase, IxiaPacketGenerator):
self.verify("Error" not in out, "Compilation error")
self.verify("No such" not in out, "Compilation error")
- guest_cmd = self.vm_power_dir + \
- "guest_cli/build/guest_vm_power_mgr -c 0xf -n 4 -- --vm-name=%s --vcpu-list=0,1,2,3" % self.vm_name
- out = vm2_dut.send_expect(guest_cmd, "vmpower\(guest\)>", 120)
+ out = vm2_dut.send_expect(self.guest_cmd, "vmpower\(guest\)>", 120)
vm2_dut.send_expect("quit", "# ")
vm2.stop()
--
2.17.1
next prev parent reply other threads:[~2020-09-02 9:14 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-02 9:15 [dts] [PATCH V1 0/8] support " Xie wei
2020-09-02 9:15 ` [dts] [dts 1/8] tests/TestSuite_flow_filtering:support " Xie wei
2020-09-02 9:15 ` [dts] [dts 2/8] tests/TestSuite_port_control:support " Xie wei
2020-09-02 9:15 ` [dts] [dts 3/8] tests/TestSuite_runtime_vf_queue_number:support " Xie wei
2020-09-02 9:15 ` [dts] [dts 4/8] tests/TestSuite_runtime_vf_queue_number_kernel:support " Xie wei
2020-09-02 9:15 ` [dts] [dts 5/8] tests/TestSuite_veb_switch:support " Xie wei
2020-09-02 9:15 ` [dts] [dts 6/8] tests/TestSuite_vf_interrupt_pmd:support " Xie wei
2020-09-02 9:15 ` Xie wei [this message]
2020-09-02 9:15 ` [dts] [dts 8/8] tests/TestSuite_floating_veb:support " Xie wei
2020-09-02 9:30 ` [dts] [PATCH V1 0/8] support " Xie, WeiX
2020-09-04 6:07 ` Ma, LihongX
2020-09-09 8:27 ` Tu, Lijuan
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200902091510.6043-8-weix.xie@intel.com \
--to=weix.xie@intel.com \
--cc=dts@dpdk.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).