test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V1 1/8] tests/vm2vm_virtio_pmd:Change the relative path to an absolute path.
@ 2019-09-04  7:03 zhu,shuai
  2019-09-04  7:03 ` [dts] [PATCH V1 2/8] tests/vm2vm_virtio_net_perf:Change " zhu,shuai
                   ` (7 more replies)
  0 siblings, 8 replies; 9+ messages in thread
From: zhu,shuai @ 2019-09-04  7:03 UTC (permalink / raw)
  To: dts; +Cc: Zhu,Shuai

From: "Zhu,Shuai" <shuaix.zhu@intel.com>

Change the relative path to an absolute path.

Signed-off-by: Zhu,Shuai <shuaix.zhu@intel.com>
---
 tests/TestSuite_vm2vm_virtio_pmd.py | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/tests/TestSuite_vm2vm_virtio_pmd.py b/tests/TestSuite_vm2vm_virtio_pmd.py
index ca97d4d..2db020f 100644
--- a/tests/TestSuite_vm2vm_virtio_pmd.py
+++ b/tests/TestSuite_vm2vm_virtio_pmd.py
@@ -58,6 +58,7 @@ class TestVM2VMVirtioPMD(TestCase):
         self.memory_channel = self.dut.get_memory_channels()
         self.vm_num = 2
         self.dump_pcap = "/root/pdump-rx.pcap"
+        self.base_dir = self.dut.base_dir.replace('~', '/root')
 
     def set_up(self):
         """
@@ -68,7 +69,7 @@ class TestVM2VMVirtioPMD(TestCase):
         self.result_table_create(self.table_header)
         self.dut.send_expect("killall -s INT testpmd", "#")
         self.dut.send_expect("killall -s INT qemu-system-x86_64", "#")
-        self.dut.send_expect("rm -rf ./vhost-net*", "#")
+        self.dut.send_expect("rm -rf %s/vhost-net*" % self.base_dir, "#")
         self.vhost = self.dut.new_session(suite="vhost")
         self.vm_dut = []
         self.vm = []
@@ -93,12 +94,12 @@ class TestVM2VMVirtioPMD(TestCase):
         """
         self.command_line = self.dut.target + "/app/testpmd -c %s -n %d " + \
             "--socket-mem 2048,2048 --legacy-mem --no-pci --file-prefix=vhost " + \
-            "--vdev 'net_vhost0,iface=vhost-net0,queues=1' " + \
-            "--vdev 'net_vhost1,iface=vhost-net1,queues=1' " + \
+            "--vdev 'net_vhost0,iface=%s/vhost-net0,queues=1' " + \
+            "--vdev 'net_vhost1,iface=%s/vhost-net1,queues=1' " + \
             "-- -i --nb-cores=1 --txd=1024 --rxd=1024"
 
         self.command_line = self.command_line % (
-                            self.coremask, self.memory_channel)
+                            self.coremask, self.memory_channel, self.base_dir, self.base_dir)
         self.vhost.send_expect(self.command_line, "testpmd> ", 30)
         self.vhost.send_expect("set fwd mac", "testpmd> ", 30)
         self.vhost.send_expect("start", "testpmd> ", 30)
@@ -151,7 +152,7 @@ class TestVM2VMVirtioPMD(TestCase):
             vm_info = VM(self.dut, 'vm%d' % i, 'vhost_sample')
             vm_params = {}
             vm_params['driver'] = 'vhost-user'
-            vm_params['opt_path'] = './vhost-net%d' % i
+            vm_params['opt_path'] = self.base_dir + '/vhost-net%d' % i
             vm_params['opt_mac'] = "52:54:00:00:00:0%d" % (i+1)
             vm_params['opt_settings'] = setting_args
             vm_info.set_vm_device(**vm_params)
-- 
2.17.1


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [dts] [PATCH V1 2/8] tests/vm2vm_virtio_net_perf:Change the relative path to an absolute path.
  2019-09-04  7:03 [dts] [PATCH V1 1/8] tests/vm2vm_virtio_pmd:Change the relative path to an absolute path zhu,shuai
@ 2019-09-04  7:03 ` zhu,shuai
  2019-09-04  7:03 ` [dts] [PATCH V1 3/8] tests/vhost_pmd_xstats:Change " zhu,shuai
                   ` (6 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: zhu,shuai @ 2019-09-04  7:03 UTC (permalink / raw)
  To: dts; +Cc: Zhu,Shuai

From: "Zhu,Shuai" <shuaix.zhu@intel.com>

Change the relative path to an absolute path.

Signed-off-by: Zhu,Shuai <shuaix.zhu@intel.com>
---
 tests/TestSuite_vm2vm_virtio_net_perf.py | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/tests/TestSuite_vm2vm_virtio_net_perf.py b/tests/TestSuite_vm2vm_virtio_net_perf.py
index 9c0f85c..d250991 100644
--- a/tests/TestSuite_vm2vm_virtio_net_perf.py
+++ b/tests/TestSuite_vm2vm_virtio_net_perf.py
@@ -59,6 +59,7 @@ class TestVM2VMVirtioNetPerf(TestCase):
         self.vritio_mac1 = "52:54:00:00:00:01"
         self.vritio_mac2 = "52:54:00:00:00:02"
         self.vm_dut = None
+        self.base_dir = self.dut.base_dir.replace('~', '/root')
 
     def set_up(self):
         """
@@ -68,7 +69,7 @@ class TestVM2VMVirtioNetPerf(TestCase):
         self.result_table_create(self.table_header)
         self.dut.send_expect("killall -s INT testpmd", "#")
         self.dut.send_expect("killall -s INT qemu-system-x86_64", "#")
-        self.dut.send_expect("rm -rf ./vhost-net*", "#")
+        self.dut.send_expect("rm -rf %s/vhost-net*" % self.base_dir, "#")
         self.vhost = self.dut.new_session(suite="vhost")
         self.vm_dut = []
         self.vm = []
@@ -83,12 +84,12 @@ class TestVM2VMVirtioNetPerf(TestCase):
             zerocopy_arg = ""
         self.command_line = self.dut.target + "/app/testpmd -c %s -n %d " + \
             "--socket-mem 2048,2048 --legacy-mem --no-pci --file-prefix=vhost " + \
-            "--vdev 'net_vhost0,iface=vhost-net0,queues=1%s' " + \
-            "--vdev 'net_vhost1,iface=vhost-net1,queues=1%s' " + \
+            "--vdev 'net_vhost0,iface=%s/vhost-net0,queues=1%s' " + \
+            "--vdev 'net_vhost1,iface=%s/vhost-net1,queues=1%s' " + \
             "-- -i --nb-cores=1 --txd=1024 --rxd=1024"
 
         self.command_line = self.command_line % (
-                            self.coremask, self.memory_channel,
+                            self.coremask, self.memory_channel, self.base_dir, self.base_dir, 
                             zerocopy_arg, zerocopy_arg)
         self.vhost.send_expect(self.command_line, "testpmd> ", 30)
         self.vhost.send_expect("start", "testpmd> ", 30)
@@ -110,7 +111,7 @@ class TestVM2VMVirtioNetPerf(TestCase):
             vm_info = VM(self.dut, 'vm%d' % i, 'vhost_sample')
             vm_params = {}
             vm_params['driver'] = 'vhost-user'
-            vm_params['opt_path'] = './vhost-net%d' % i
+            vm_params['opt_path'] = self.base_dir + '/vhost-net%d' % i
             vm_params['opt_mac'] = "52:54:00:00:00:0%d" % (i+1)
             vm_params['opt_settings'] = setting_args
             vm_info.set_vm_device(**vm_params)
-- 
2.17.1


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [dts] [PATCH V1 3/8] tests/vhost_pmd_xstats:Change the relative path to an absolute path.
  2019-09-04  7:03 [dts] [PATCH V1 1/8] tests/vm2vm_virtio_pmd:Change the relative path to an absolute path zhu,shuai
  2019-09-04  7:03 ` [dts] [PATCH V1 2/8] tests/vm2vm_virtio_net_perf:Change " zhu,shuai
@ 2019-09-04  7:03 ` zhu,shuai
  2019-09-04  7:03 ` [dts] [PATCH V1 4/8] tests/vhost_multi_queue_qemu:Change " zhu,shuai
                   ` (5 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: zhu,shuai @ 2019-09-04  7:03 UTC (permalink / raw)
  To: dts; +Cc: Zhu,Shuai

From: "Zhu,Shuai" <shuaix.zhu@intel.com>

Change the relative path to an absolute path.

Signed-off-by: Zhu,Shuai <shuaix.zhu@intel.com>
---
 tests/TestSuite_vhost_pmd_xstats.py | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/tests/TestSuite_vhost_pmd_xstats.py b/tests/TestSuite_vhost_pmd_xstats.py
index 75b87a6..fd8218e 100755
--- a/tests/TestSuite_vhost_pmd_xstats.py
+++ b/tests/TestSuite_vhost_pmd_xstats.py
@@ -70,6 +70,7 @@ class TestVhostPmdXstats(TestCase):
         out = self.dut.build_dpdk_apps("./examples/vhost")
         self.verify("Error" not in out, "compilation error 1")
         self.verify("No such file" not in out, "compilation error 2")
+        self.base_dir = self.dut.base_dir.replace('~', '/root')
 
     def set_up(self):
         """ 
@@ -77,7 +78,7 @@ class TestVhostPmdXstats(TestCase):
         Launch vhost sample using default params
         """
         self.dut.send_expect("rm -rf ./vhost.out", "#")
-        self.dut.send_expect("rm -rf ./vhost-net*", "#")
+        self.dut.send_expect("rm -rf %s/vhost-net*" % self.base_dir, "#")
         self.dut.send_expect("killall vhost-switch", "#")
         dut_arch = self.dut.send_expect("uname -m", "#")
         self.dut.send_expect("killall qemu-system-%s" % dut_arch, "#")
@@ -107,7 +108,7 @@ class TestVhostPmdXstats(TestCase):
         self.vm = QEMUKvm(self.dut, 'vm0', 'vhost_pmd_xstats')
         vm_params = {}
         vm_params['driver'] = 'vhost-user'
-        vm_params['opt_path'] = './vhost-net'
+        vm_params['opt_path'] = self.base_dir + '/vhost-net'
         vm_params['opt_mac'] = self.virtio1_mac
         self.vm.set_vm_device(**vm_params)
 
@@ -145,8 +146,8 @@ class TestVhostPmdXstats(TestCase):
         """
         prepare all of the conditions for start
         """
-        self.dut.send_expect("./%s/app/testpmd -c %s -n %s --vdev 'net_vhost0,iface=vhost-net,queues=1' -- -i --nb-cores=1" %
-                             (self.target, self.coremask, self.dut.get_memory_channels()), "testpmd>", 60)
+        self.dut.send_expect("./%s/app/testpmd -c %s -n %s --vdev 'net_vhost0,iface=%s/vhost-net,queues=1' -- -i --nb-cores=1" %
+                             (self.target, self.coremask, self.dut.get_memory_channels(), self.base_dir), "testpmd>", 60)
         self.start_onevm()
         self.vm_testpmd_start()
         self.dut.send_expect("set fwd mac", "testpmd>", 60)
-- 
2.17.1


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [dts] [PATCH V1 4/8] tests/vhost_multi_queue_qemu:Change the relative path to an absolute path.
  2019-09-04  7:03 [dts] [PATCH V1 1/8] tests/vm2vm_virtio_pmd:Change the relative path to an absolute path zhu,shuai
  2019-09-04  7:03 ` [dts] [PATCH V1 2/8] tests/vm2vm_virtio_net_perf:Change " zhu,shuai
  2019-09-04  7:03 ` [dts] [PATCH V1 3/8] tests/vhost_pmd_xstats:Change " zhu,shuai
@ 2019-09-04  7:03 ` zhu,shuai
  2019-09-04  7:03 ` [dts] [PATCH V1 5/8] tests/vhost_event_idx_interrupt:Change " zhu,shuai
                   ` (4 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: zhu,shuai @ 2019-09-04  7:03 UTC (permalink / raw)
  To: dts; +Cc: Zhu,Shuai

From: "Zhu,Shuai" <shuaix.zhu@intel.com>

Change the relative path to an absolute path.

Signed-off-by: Zhu,Shuai <shuaix.zhu@intel.com>
---
 tests/TestSuite_vhost_multi_queue_qemu.py | 13 +++++++------
 1 file changed, 7 insertions(+), 6 deletions(-)

diff --git a/tests/TestSuite_vhost_multi_queue_qemu.py b/tests/TestSuite_vhost_multi_queue_qemu.py
index 9d839d5..f0dbb90 100644
--- a/tests/TestSuite_vhost_multi_queue_qemu.py
+++ b/tests/TestSuite_vhost_multi_queue_qemu.py
@@ -79,13 +79,14 @@ class TestVhostMultiQueueQemu(TestCase):
             self.tester.send_expect('mkdir -p %s' % self.out_path, '# ')
         # create an instance to set stream field setting
         self.pktgen_helper = PacketGeneratorHelper()
+        self.base_dir = self.dut.base_dir.replace('~', '/root')
 
     def set_up(self):
         """
         Run before each test case.
         """
         self.dut.send_expect("rm -rf ./vhost.out", "#")
-        self.dut.send_expect("rm -rf ./vhost-net*", "#")
+        self.dut.send_expect("rm -rf %s/vhost-net*" % self.base_dir, "#")
         self.dut.send_expect("killall -s INT testpmd", "#")
 
         self.frame_sizes = [64, 128, 256, 512, 1024, 1500]
@@ -98,9 +99,9 @@ class TestVhostMultiQueueQemu(TestCase):
         Launch the vhost sample with different parameters
         """
         testcmd = self.target + "/app/testpmd -c %s -n %d --socket-mem 1024,1024" + \
-                       " --vdev 'net_vhost0,iface=vhost-net,queues=%d' -- -i --rxq=%d --txq=%d --nb-cores=2"
+                       " --vdev 'net_vhost0,iface=%s/vhost-net,queues=%d' -- -i --rxq=%d --txq=%d --nb-cores=2"
         self.coremask = utils.create_mask(self.cores)
-        testcmd_start = testcmd % (self.coremask, self.memory_channel, self.queue_number, self.queue_number, self.queue_number)
+        testcmd_start = testcmd % (self.coremask, self.memory_channel, self.base_dir, self.queue_number, self.queue_number, self.queue_number)
 
         self.dut.send_expect(testcmd_start, "testpmd> ", 120)
         self.dut.send_expect("set fwd mac", "testpmd> ", 120)
@@ -113,7 +114,7 @@ class TestVhostMultiQueueQemu(TestCase):
         self.vm = VM(self.dut, 'vm0', 'vhost_sample')
         vm_params = {}
         vm_params['driver'] = 'vhost-user'
-        vm_params['opt_path'] = './vhost-net'
+        vm_params['opt_path'] = self.base_dir + '/vhost-net'
         vm_params['opt_mac'] = self.virtio1_mac
         vm_params['opt_queue'] = self.queue_number
         vm_params['opt_settings'] = 'mrg_rxbuf=on,mq=on,vectors=%d' % (2*self.queue_number + 2)
@@ -281,9 +282,9 @@ class TestVhostMultiQueueQemu(TestCase):
         """
         self.queue_number = 2
         testcmd = self.target + "/app/testpmd -c %s -n %d --socket-mem 1024,1024" + \
-                       " --vdev 'net_vhost0,iface=vhost-net,queues=2' -- -i --rxq=1 --txq=1 --nb-cores=1"
+                       " --vdev 'net_vhost0,iface=%s/vhost-net,queues=2' -- -i --rxq=1 --txq=1 --nb-cores=1"
         self.coremask = utils.create_mask(self.cores)
-        testcmd_start = testcmd % (self.coremask, self.memory_channel)
+        testcmd_start = testcmd % (self.coremask, self.memory_channel, self.base_dir)
 
         self.dut.send_expect(testcmd_start, "testpmd> ", 120)
         self.dut.send_expect("set fwd mac", "testpmd> ", 120)
-- 
2.17.1


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [dts] [PATCH V1 5/8] tests/vhost_event_idx_interrupt:Change the relative path to an absolute path.
  2019-09-04  7:03 [dts] [PATCH V1 1/8] tests/vm2vm_virtio_pmd:Change the relative path to an absolute path zhu,shuai
                   ` (2 preceding siblings ...)
  2019-09-04  7:03 ` [dts] [PATCH V1 4/8] tests/vhost_multi_queue_qemu:Change " zhu,shuai
@ 2019-09-04  7:03 ` zhu,shuai
  2019-09-04  7:03 ` [dts] [PATCH V1 6/8] tests/vdev_primary_secondary:Change " zhu,shuai
                   ` (3 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: zhu,shuai @ 2019-09-04  7:03 UTC (permalink / raw)
  To: dts; +Cc: Zhu,Shuai

From: "Zhu,Shuai" <shuaix.zhu@intel.com>

Change the relative path to an absolute path.

Signed-off-by: Zhu,Shuai <shuaix.zhu@intel.com>
---
 tests/TestSuite_vhost_event_idx_interrupt.py | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/tests/TestSuite_vhost_event_idx_interrupt.py b/tests/TestSuite_vhost_event_idx_interrupt.py
index 2d0bc38..88822c0 100644
--- a/tests/TestSuite_vhost_event_idx_interrupt.py
+++ b/tests/TestSuite_vhost_event_idx_interrupt.py
@@ -52,6 +52,7 @@ class TestVhostEventIdxInterrupt(TestCase):
         self.queues = 1
         self.cores_num = len([n for n in self.dut.cores if int(n['socket']) == 0])
         self.prepare_l3fwd_power()
+        self.base_dir = self.dut.base_dir.replace('~', '/root')
 
     def set_up(self):
         """
@@ -61,7 +62,7 @@ class TestVhostEventIdxInterrupt(TestCase):
         self.verify_info = []
         self.dut.send_expect("killall -s INT l3fwd-power", "#")
         self.dut.send_expect("killall -s INT qemu-system-x86_64", "#")
-        self.dut.send_expect("rm -rf ./vhost-net*", "#")
+        self.dut.send_expect("rm -rf %s/vhost-net*" % self.base_dir, "#")
         self.vhost = self.dut.new_session(suite="vhost-l3fwd")
         self.vm_dut = []
         self.vm = []
@@ -101,7 +102,7 @@ class TestVhostEventIdxInterrupt(TestCase):
         # config the vdev info, if have 2 vms, it shoule have 2 vdev info
         vdev_info = ""
         for i in range(self.vm_num):
-            vdev_info += "--vdev 'net_vhost%d,iface=vhost-net%d,queues=%d,client=1' " % (i, i, self.queues)
+            vdev_info += "--vdev 'net_vhost%d,iface=%s/vhost-net%d,queues=%d,client=1' " % (i, self.base_dir, i, self.queues)
 
         port_info = "0x1" if self.vm_num == 1 else "0x3"
 
@@ -167,7 +168,7 @@ class TestVhostEventIdxInterrupt(TestCase):
             vm_info.load_config()
             vm_params = {}
             vm_params['driver'] = 'vhost-user'
-            vm_params['opt_path'] = './vhost-net%d' % i
+            vm_params['opt_path'] = self.base_dir + '/vhost-net%d' % i
             vm_params['opt_mac'] = "00:11:22:33:44:5%d" % i
             vm_params['opt_server'] = 'server'
             if self.queues > 1:
-- 
2.17.1


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [dts] [PATCH V1 6/8] tests/vdev_primary_secondary:Change the relative path to an absolute path.
  2019-09-04  7:03 [dts] [PATCH V1 1/8] tests/vm2vm_virtio_pmd:Change the relative path to an absolute path zhu,shuai
                   ` (3 preceding siblings ...)
  2019-09-04  7:03 ` [dts] [PATCH V1 5/8] tests/vhost_event_idx_interrupt:Change " zhu,shuai
@ 2019-09-04  7:03 ` zhu,shuai
  2019-09-04  7:03 ` [dts] [PATCH V1 7/8] tests/dpdk_gro_lib:Change " zhu,shuai
                   ` (2 subsequent siblings)
  7 siblings, 0 replies; 9+ messages in thread
From: zhu,shuai @ 2019-09-04  7:03 UTC (permalink / raw)
  To: dts; +Cc: Zhu,Shuai

From: "Zhu,Shuai" <shuaix.zhu@intel.com>

Change the relative path to an absolute path.

Signed-off-by: Zhu,Shuai <shuaix.zhu@intel.com>
---
 tests/TestSuite_vdev_primary_secondary.py | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/tests/TestSuite_vdev_primary_secondary.py b/tests/TestSuite_vdev_primary_secondary.py
index 6f8f235..8b7b899 100644
--- a/tests/TestSuite_vdev_primary_secondary.py
+++ b/tests/TestSuite_vdev_primary_secondary.py
@@ -62,12 +62,13 @@ class TestVdevPrimarySecondary(TestCase):
         cores = self.dut.get_core_list("1S/12C/1T", socket=self.ports_socket)
         self.coremask = utils.create_mask(cores)
         self.verify(len(self.coremask) >= 6, "The machine has too few cores.")
+        self.base_dir = self.dut.base_dir.replace('~', '/root')
 
     def set_up(self):
         """
         Run before each test case.
         """
-        self.dut.send_expect("rm -rf ./vhost-net*", "#")
+        self.dut.send_expect("rm -rf %s/vhost-net*" % self.base_dir, "#")
         self.dut.send_expect("killall -s INT testpmd", "#")
         self.dut.send_expect("killall -s INT qemu-system-x86_64", "#")
 
@@ -81,7 +82,7 @@ class TestVdevPrimarySecondary(TestCase):
         for i in range(self.queues):
             vm_params = {}
             vm_params['driver'] = 'vhost-user'
-            vm_params['opt_path'] = './vhost-net%d' % i
+            vm_params['opt_path'] = self.base_dir + '/vhost-net%d' % i
             vm_params['opt_mac'] = "%s%d" % (self.virtio_mac, i+2)
             vm_params['opt_queue'] = self.queues
             vm_params['opt_server'] = 'server'
@@ -103,10 +104,10 @@ class TestVdevPrimarySecondary(TestCase):
         launch testpmd
         """
         cmd = "./%s/app/testpmd -l 1-6 -n %d --socket-mem 2048,2048 --legacy-mem --file-prefix=vhost" + \
-              " --vdev 'net_vhost0,iface=vhost-net0,queues=%d,client=1'" + \
-              " --vdev 'net_vhost1,iface=vhost-net1,queues=%d,client=1'" + \
+              " --vdev 'net_vhost0,iface=%s/vhost-net0,queues=%d,client=1'" + \
+              " --vdev 'net_vhost1,iface=%s/vhost-net1,queues=%d,client=1'" + \
               " -- -i --nb-cores=4 --rxq=%d --txq=%d --txd=1024 --rxd=1024"
-        start_cmd = cmd % (self.target, self.mem_channels, self.queues, self.queues, self.queues, self.queues)
+        start_cmd = cmd % (self.target, self.mem_channels, self.base_dir, self.queues, self.base_dir, self.queues, self.queues, self.queues)
         self.dut.send_expect(start_cmd, "testpmd> ", 120)
         self.dut.send_expect("set fwd txonly", "testpmd> ", 120)
         self.dut.send_expect("start", "testpmd> ", 120)
-- 
2.17.1


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [dts] [PATCH V1 7/8] tests/dpdk_gro_lib:Change the relative path to an absolute path.
  2019-09-04  7:03 [dts] [PATCH V1 1/8] tests/vm2vm_virtio_pmd:Change the relative path to an absolute path zhu,shuai
                   ` (4 preceding siblings ...)
  2019-09-04  7:03 ` [dts] [PATCH V1 6/8] tests/vdev_primary_secondary:Change " zhu,shuai
@ 2019-09-04  7:03 ` zhu,shuai
  2019-09-04  7:03 ` [dts] [PATCH V1 8/8] tests/dpdk_gso_lib:Change " zhu,shuai
  2019-09-17  0:48 ` [dts] [PATCH V1 1/8] tests/vm2vm_virtio_pmd:Change " Tu, Lijuan
  7 siblings, 0 replies; 9+ messages in thread
From: zhu,shuai @ 2019-09-04  7:03 UTC (permalink / raw)
  To: dts; +Cc: Zhu,Shuai

From: "Zhu,Shuai" <shuaix.zhu@intel.com>

Change the relative path to an absolute path.

Signed-off-by: Zhu,Shuai <shuaix.zhu@intel.com>
---
 tests/TestSuite_dpdk_gro_lib.py | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/tests/TestSuite_dpdk_gro_lib.py b/tests/TestSuite_dpdk_gro_lib.py
index b857651..c0fca39 100644
--- a/tests/TestSuite_dpdk_gro_lib.py
+++ b/tests/TestSuite_dpdk_gro_lib.py
@@ -94,13 +94,14 @@ class TestDPDKGROLib(TestCase):
         else:
             self.socket_mem = '1024,1024'
         self.prepare_dpdk()
+        self.base_dir = self.dut.base_dir.replace('~', '/root')
 
     def set_up(self):
         #
         # Run before each test case.
         #
         # Clean the execution ENV
-        self.dut.send_expect("rm -rf ./vhost-net*", "#")
+        self.dut.send_expect("rm -rf %s/vhost-net*" % self.base_dir, "#")
         self.dut.send_expect("killall -s INT testpmd", "#")
         self.dut.send_expect("killall -s INT qemu-system-x86_64", "#")
 
@@ -112,10 +113,10 @@ class TestDPDKGROLib(TestCase):
         # mode 3 : vxlan traffic light mode
         # mode 4 : tcp traffic flush 4
         self.testcmd = self.target + "/app/testpmd -c %s -n %d --socket-mem %s --legacy-mem" \
-            + " --vdev 'net_vhost0,iface=vhost-net,queues=1' -- -i  --enable-hw-vlan-strip --tx-offloads=0x00" \
+            + " --vdev 'net_vhost0,iface=%s/vhost-net,queues=1' -- -i  --enable-hw-vlan-strip --tx-offloads=0x00" \
                 + " --txd=1024 --rxd=1024"
         self.testcmd_start = self.testcmd % (
-            self.core_mask_vhost, self.memory_channel, self.socket_mem)
+            self.core_mask_vhost, self.memory_channel, self.socket_mem, self.base_dir)
         self.vhost_user = self.dut.new_session(suite="user")
         self.vhost_user.send_expect(self.testcmd_start, "testpmd> ", 120)
         self.vhost_user.send_expect("set fwd csum", "testpmd> ", 120)
@@ -246,7 +247,7 @@ class TestDPDKGROLib(TestCase):
         self.vm1.load_config()
         vm_params_1 = {}
         vm_params_1['driver'] = 'vhost-user'
-        vm_params_1['opt_path'] = './vhost-net'
+        vm_params_1['opt_path'] = self.base_dir + '/vhost-net'
         vm_params_1['opt_mac'] = self.virtio_mac1
         vm_params_1[
             'opt_settings'] = 'mrg_rxbuf=on,csum=off,gso=off,host_tso4=on,guest_tso4=on'
@@ -383,7 +384,7 @@ class TestDPDKGROLib(TestCase):
         """
         self.dut.send_expect("killall -s INT testpmd", "#")
         self.dut.send_expect("killall -s INT qemu-system-x86_64", "#")
-        self.dut.send_expect("rm -rf ./vhost-net", "#")
+        self.dut.send_expect("rm -rf %s/vhost-net" % self.base_dir, "#")
         time.sleep(2)
         self.dut.send_expect("ip netns del ns1", "# ", 30)
         self.dut.send_expect(
-- 
2.17.1


^ permalink raw reply	[flat|nested] 9+ messages in thread

* [dts] [PATCH V1 8/8] tests/dpdk_gso_lib:Change the relative path to an absolute path.
  2019-09-04  7:03 [dts] [PATCH V1 1/8] tests/vm2vm_virtio_pmd:Change the relative path to an absolute path zhu,shuai
                   ` (5 preceding siblings ...)
  2019-09-04  7:03 ` [dts] [PATCH V1 7/8] tests/dpdk_gro_lib:Change " zhu,shuai
@ 2019-09-04  7:03 ` zhu,shuai
  2019-09-17  0:48 ` [dts] [PATCH V1 1/8] tests/vm2vm_virtio_pmd:Change " Tu, Lijuan
  7 siblings, 0 replies; 9+ messages in thread
From: zhu,shuai @ 2019-09-04  7:03 UTC (permalink / raw)
  To: dts; +Cc: Zhu,Shuai

From: "Zhu,Shuai" <shuaix.zhu@intel.com>

Change the relative path to an absolute path.

Signed-off-by: Zhu,Shuai <shuaix.zhu@intel.com>
---
 tests/TestSuite_dpdk_gso_lib.py | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/tests/TestSuite_dpdk_gso_lib.py b/tests/TestSuite_dpdk_gso_lib.py
index 68d09cb..f2307a7 100644
--- a/tests/TestSuite_dpdk_gso_lib.py
+++ b/tests/TestSuite_dpdk_gso_lib.py
@@ -97,12 +97,13 @@ class TestDPDKGsoLib(TestCase):
             self.socket_mem = '1024,1024'
 
         self.prepare_dpdk()
+        self.base_dir = self.dut.base_dir.replace('~', '/root')
 
     def set_up(self):
         #
         # Run before each test case.
         # Clean the execution ENV
-        self.dut.send_expect("rm -rf ./vhost-net*", "#")
+        self.dut.send_expect("rm -rf %s/vhost-net*" % self.base_dir, "#")
         self.dut.send_expect("killall -s INT testpmd", "#")
         self.dut.send_expect("killall -s INT qemu-system-x86_64", "#")
 
@@ -113,10 +114,10 @@ class TestDPDKGsoLib(TestCase):
         # mode = 3: TSO
         # mode = others: NO DPDK GSO/TSO
         self.testcmd = self.target + "/app/testpmd -c %s -n %d --socket-mem %s --legacy-mem" \
-            + " --vdev 'net_vhost0,iface=vhost-net,queues=1' -- -i --tx-offloads=0x00 "\
+            + " --vdev 'net_vhost0,iface=%s/vhost-net,queues=1' -- -i --tx-offloads=0x00 "\
                 + " --txd=1024 --rxd=1024"
         self.testcmd_start = self.testcmd % (
-            self.core_mask_vhost, self.memory_channel, self.socket_mem)
+            self.core_mask_vhost, self.memory_channel, self.socket_mem, self.base_dir)
         self.vhost_user = self.dut.new_session(suite="user")
         self.vhost_user.send_expect(self.testcmd_start, "testpmd> ", 120)
         self.vhost_user.send_expect("set fwd csum", "testpmd> ", 120)
@@ -246,7 +247,7 @@ class TestDPDKGsoLib(TestCase):
         self.vm1.load_config()
         vm_params_1 = {}
         vm_params_1['driver'] = 'vhost-user'
-        vm_params_1['opt_path'] = './vhost-net'
+        vm_params_1['opt_path'] = self.base_dir + '/vhost-net'
         vm_params_1['opt_mac'] = self.virtio_mac1
         # tcp and udp traffic
         if(mode == 0):
-- 
2.17.1


^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [dts] [PATCH V1 1/8] tests/vm2vm_virtio_pmd:Change the relative path to an absolute path.
  2019-09-04  7:03 [dts] [PATCH V1 1/8] tests/vm2vm_virtio_pmd:Change the relative path to an absolute path zhu,shuai
                   ` (6 preceding siblings ...)
  2019-09-04  7:03 ` [dts] [PATCH V1 8/8] tests/dpdk_gso_lib:Change " zhu,shuai
@ 2019-09-17  0:48 ` Tu, Lijuan
  7 siblings, 0 replies; 9+ messages in thread
From: Tu, Lijuan @ 2019-09-17  0:48 UTC (permalink / raw)
  To: Zhu, ShuaiX, dts; +Cc: Zhu, ShuaiX

Applied the series, thanks

> -----Original Message-----
> From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of zhu,shuai
> Sent: Wednesday, September 4, 2019 3:04 PM
> To: dts@dpdk.org
> Cc: Zhu, ShuaiX <shuaix.zhu@intel.com>
> Subject: [dts] [PATCH V1 1/8] tests/vm2vm_virtio_pmd:Change the relative
> path to an absolute path.
> 
> From: "Zhu,Shuai" <shuaix.zhu@intel.com>
> 
> Change the relative path to an absolute path.
> 
> Signed-off-by: Zhu,Shuai <shuaix.zhu@intel.com>
> ---
>  tests/TestSuite_vm2vm_virtio_pmd.py | 11 ++++++-----
>  1 file changed, 6 insertions(+), 5 deletions(-)
> 
> diff --git a/tests/TestSuite_vm2vm_virtio_pmd.py
> b/tests/TestSuite_vm2vm_virtio_pmd.py
> index ca97d4d..2db020f 100644
> --- a/tests/TestSuite_vm2vm_virtio_pmd.py
> +++ b/tests/TestSuite_vm2vm_virtio_pmd.py
> @@ -58,6 +58,7 @@ class TestVM2VMVirtioPMD(TestCase):
>          self.memory_channel = self.dut.get_memory_channels()
>          self.vm_num = 2
>          self.dump_pcap = "/root/pdump-rx.pcap"
> +        self.base_dir = self.dut.base_dir.replace('~', '/root')
> 
>      def set_up(self):
>          """
> @@ -68,7 +69,7 @@ class TestVM2VMVirtioPMD(TestCase):
>          self.result_table_create(self.table_header)
>          self.dut.send_expect("killall -s INT testpmd", "#")
>          self.dut.send_expect("killall -s INT qemu-system-x86_64", "#")
> -        self.dut.send_expect("rm -rf ./vhost-net*", "#")
> +        self.dut.send_expect("rm -rf %s/vhost-net*" % self.base_dir,
> + "#")
>          self.vhost = self.dut.new_session(suite="vhost")
>          self.vm_dut = []
>          self.vm = []
> @@ -93,12 +94,12 @@ class TestVM2VMVirtioPMD(TestCase):
>          """
>          self.command_line = self.dut.target + "/app/testpmd -c %s -n %d " + \
>              "--socket-mem 2048,2048 --legacy-mem --no-pci --file-prefix=vhost " +
> \
> -            "--vdev 'net_vhost0,iface=vhost-net0,queues=1' " + \
> -            "--vdev 'net_vhost1,iface=vhost-net1,queues=1' " + \
> +            "--vdev 'net_vhost0,iface=%s/vhost-net0,queues=1' " + \
> +            "--vdev 'net_vhost1,iface=%s/vhost-net1,queues=1' " + \
>              "-- -i --nb-cores=1 --txd=1024 --rxd=1024"
> 
>          self.command_line = self.command_line % (
> -                            self.coremask, self.memory_channel)
> +                            self.coremask, self.memory_channel,
> + self.base_dir, self.base_dir)
>          self.vhost.send_expect(self.command_line, "testpmd> ", 30)
>          self.vhost.send_expect("set fwd mac", "testpmd> ", 30)
>          self.vhost.send_expect("start", "testpmd> ", 30) @@ -151,7 +152,7 @@
> class TestVM2VMVirtioPMD(TestCase):
>              vm_info = VM(self.dut, 'vm%d' % i, 'vhost_sample')
>              vm_params = {}
>              vm_params['driver'] = 'vhost-user'
> -            vm_params['opt_path'] = './vhost-net%d' % i
> +            vm_params['opt_path'] = self.base_dir + '/vhost-net%d' % i
>              vm_params['opt_mac'] = "52:54:00:00:00:0%d" % (i+1)
>              vm_params['opt_settings'] = setting_args
>              vm_info.set_vm_device(**vm_params)
> --
> 2.17.1


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2019-09-17  0:48 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-09-04  7:03 [dts] [PATCH V1 1/8] tests/vm2vm_virtio_pmd:Change the relative path to an absolute path zhu,shuai
2019-09-04  7:03 ` [dts] [PATCH V1 2/8] tests/vm2vm_virtio_net_perf:Change " zhu,shuai
2019-09-04  7:03 ` [dts] [PATCH V1 3/8] tests/vhost_pmd_xstats:Change " zhu,shuai
2019-09-04  7:03 ` [dts] [PATCH V1 4/8] tests/vhost_multi_queue_qemu:Change " zhu,shuai
2019-09-04  7:03 ` [dts] [PATCH V1 5/8] tests/vhost_event_idx_interrupt:Change " zhu,shuai
2019-09-04  7:03 ` [dts] [PATCH V1 6/8] tests/vdev_primary_secondary:Change " zhu,shuai
2019-09-04  7:03 ` [dts] [PATCH V1 7/8] tests/dpdk_gro_lib:Change " zhu,shuai
2019-09-04  7:03 ` [dts] [PATCH V1 8/8] tests/dpdk_gso_lib:Change " zhu,shuai
2019-09-17  0:48 ` [dts] [PATCH V1 1/8] tests/vm2vm_virtio_pmd:Change " Tu, Lijuan

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).