* [dts] [PATCH V1] tests/vhost_virtio_user_interrupt:fix test case blocked issue
@ 2019-10-24 4:01 zhu,shuai
2019-10-24 5:01 ` Zhu, WenhuiX
2019-10-24 5:08 ` Ma, LihongX
0 siblings, 2 replies; 3+ messages in thread
From: zhu,shuai @ 2019-10-24 4:01 UTC (permalink / raw)
To: dts; +Cc: zhu,shuai
Modify the code due to dpdk changes.
Signed-off-by: zhu,shuai <shuaix.zhu@intel.com>
---
tests/TestSuite_vhost_virtio_user_interrupt.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/tests/TestSuite_vhost_virtio_user_interrupt.py b/tests/TestSuite_vhost_virtio_user_interrupt.py
index 5422e04..91edcce 100644
--- a/tests/TestSuite_vhost_virtio_user_interrupt.py
+++ b/tests/TestSuite_vhost_virtio_user_interrupt.py
@@ -84,6 +84,10 @@ class TestVirtioUserInterrupt(TestCase):
self.dut.send_expect("cp ./examples/l3fwd-power/main.c .", "#")
self.dut.send_expect(
"sed -i '/DEV_RX_OFFLOAD_CHECKSUM/d' ./examples/l3fwd-power/main.c", "#", 10)
+ self.dut.send_expect(
+ "sed -i '/if (promiscuous_on/i\#if 0' ./examples/l3fwd-power/main.c", "#", 10)
+ self.dut.send_expect(
+ "sed -i '/rte_spinlock_init(&(locks/i\#endif' ./examples/l3fwd-power/main.c", "#", 10)
out = self.dut.build_dpdk_apps("./examples/l3fwd-power")
self.verify("Error" not in out, "compilation l3fwd-power error")
--
2.17.2
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dts] [PATCH V1] tests/vhost_virtio_user_interrupt:fix test case blocked issue
2019-10-24 4:01 [dts] [PATCH V1] tests/vhost_virtio_user_interrupt:fix test case blocked issue zhu,shuai
@ 2019-10-24 5:01 ` Zhu, WenhuiX
2019-10-24 5:08 ` Ma, LihongX
1 sibling, 0 replies; 3+ messages in thread
From: Zhu, WenhuiX @ 2019-10-24 5:01 UTC (permalink / raw)
To: Zhu, ShuaiX, dts; +Cc: Zhu, ShuaiX
[-- Attachment #1: Type: text/plain, Size: 1461 bytes --]
Tested-by: Zhu, WenhuiX <wenhuix.zhu@intel.com>
-----Original Message-----
From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of zhu,shuai
Sent: Thursday, October 24, 2019 12:01 PM
To: dts@dpdk.org
Cc: Zhu, ShuaiX <shuaix.zhu@intel.com>
Subject: [dts] [PATCH V1] tests/vhost_virtio_user_interrupt:fix test case blocked issue
Modify the code due to dpdk changes.
Signed-off-by: zhu,shuai <shuaix.zhu@intel.com>
---
tests/TestSuite_vhost_virtio_user_interrupt.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/tests/TestSuite_vhost_virtio_user_interrupt.py b/tests/TestSuite_vhost_virtio_user_interrupt.py
index 5422e04..91edcce 100644
--- a/tests/TestSuite_vhost_virtio_user_interrupt.py
+++ b/tests/TestSuite_vhost_virtio_user_interrupt.py
@@ -84,6 +84,10 @@ class TestVirtioUserInterrupt(TestCase):
self.dut.send_expect("cp ./examples/l3fwd-power/main.c .", "#")
self.dut.send_expect(
"sed -i '/DEV_RX_OFFLOAD_CHECKSUM/d' ./examples/l3fwd-power/main.c", "#", 10)
+ self.dut.send_expect(
+ "sed -i '/if (promiscuous_on/i\#if 0' ./examples/l3fwd-power/main.c", "#", 10)
+ self.dut.send_expect(
+ "sed -i '/rte_spinlock_init(&(locks/i\#endif' ./examples/l3fwd-power/main.c", "#", 10)
out = self.dut.build_dpdk_apps("./examples/l3fwd-power")
self.verify("Error" not in out, "compilation l3fwd-power error")
--
2.17.2
[-- Attachment #2: TestVirtioUserInterrupt.log --]
[-- Type: application/octet-stream, Size: 9096 bytes --]
24/10/2019 11:03:58 dts:
TEST SUITE : TestVirtioUserInterrupt
24/10/2019 11:03:58 dts: NIC : fortville_eagle
24/10/2019 11:03:59 dut.10.238.54.211:
24/10/2019 11:03:59 tester:
24/10/2019 11:03:59 dut.10.238.54.211: cp ./examples/l3fwd-power/main.c .
24/10/2019 11:03:59 dut.10.238.54.211:
24/10/2019 11:03:59 dut.10.238.54.211: sed -i '/DEV_RX_OFFLOAD_CHECKSUM/d' ./examples/l3fwd-power/main.c
24/10/2019 11:03:59 dut.10.238.54.211:
24/10/2019 11:03:59 dut.10.238.54.211: sed -i '/if (promiscuous_on/i\#if 0' ./examples/l3fwd-power/main.c
24/10/2019 11:03:59 dut.10.238.54.211:
24/10/2019 11:03:59 dut.10.238.54.211: sed -i '/rte_spinlock_init(&(locks/i\#endif' ./examples/l3fwd-power/main.c
24/10/2019 11:03:59 dut.10.238.54.211:
24/10/2019 11:03:59 dut.10.238.54.211: rm -rf ./app/test/test_resource_c.res.o
24/10/2019 11:03:59 dut.10.238.54.211:
24/10/2019 11:03:59 dut.10.238.54.211: rm -rf ./app/test/test_resource_tar.res.o
24/10/2019 11:03:59 dut.10.238.54.211:
24/10/2019 11:03:59 dut.10.238.54.211: rm -rf ./app/test/test_pci_sysfs.res.o
24/10/2019 11:03:59 dut.10.238.54.211:
24/10/2019 11:03:59 dut.10.238.54.211: make -j 70 -C ./examples/l3fwd-power
24/10/2019 11:04:03 dut.10.238.54.211: make: Entering directory '/root/dpdk/examples/l3fwd-power'
make[1]: Warning: File '/root/dpdk/mk/rte.app.mk' has modification time 9828 s in the future
CC main.o
CC perf_core.o
LD l3fwd-power
INSTALL-APP l3fwd-power
INSTALL-MAP l3fwd-power.map
make[1]: warning: Clock skew detected. Your build may be incomplete.
make: Leaving directory '/root/dpdk/examples/l3fwd-power'
24/10/2019 11:04:03 TestVirtioUserInterrupt: Test Case test_interrupt_with_vhost_net_as_backed Begin
24/10/2019 11:04:03 dut.10.238.54.211:
24/10/2019 11:04:03 tester:
24/10/2019 11:04:03 dut.10.238.54.211: killall -s INT testpmd
24/10/2019 11:04:03 dut.10.238.54.211: testpmd: no process found
24/10/2019 11:04:03 dut.10.238.54.211: killall -s INT l3fwd-power
24/10/2019 11:04:03 dut.10.238.54.211: l3fwd-power: no process found
24/10/2019 11:04:03 dut.10.238.54.211: rm -rf vhost-net*
24/10/2019 11:04:03 dut.10.238.54.211:
24/10/2019 11:04:48 TestVirtioUserInterrupt: Launch l3fwd-power sample finished
24/10/2019 11:05:26 TestVirtioUserInterrupt: lcore 3 is waked up from rx interrupt on port 0 queue 0
24/10/2019 11:05:26 dut.10.238.54.211: killall -s INT ping
24/10/2019 11:05:26 dut.10.238.54.211:
24/10/2019 11:05:43 TestVirtioUserInterrupt: lcore 3 sleeps until interrupt triggers
24/10/2019 11:06:22 TestVirtioUserInterrupt: lcore 3 is waked up from rx interrupt on port 0 queue 0
24/10/2019 11:06:22 dut.10.238.54.211: killall -s INT ping
24/10/2019 11:06:22 dut.10.238.54.211:
24/10/2019 11:06:22 TestVirtioUserInterrupt: Test Case test_interrupt_with_vhost_net_as_backed Result PASSED:
24/10/2019 11:06:22 dut.10.238.54.211: killall -s INT l3fwd-power
24/10/2019 11:06:22 dut.10.238.54.211:
24/10/2019 11:06:22 dut.10.238.54.211: killall -s INT testpmd
24/10/2019 11:06:22 dut.10.238.54.211: testpmd: no process found
24/10/2019 11:06:23 TestVirtioUserInterrupt: Test Case test_interrupt_with_vhost_user_as_backed Begin
24/10/2019 11:06:23 dut.10.238.54.211:
24/10/2019 11:06:23 tester:
24/10/2019 11:06:23 dut.10.238.54.211: killall -s INT testpmd
24/10/2019 11:06:23 dut.10.238.54.211: testpmd: no process found
24/10/2019 11:06:23 dut.10.238.54.211: killall -s INT l3fwd-power
24/10/2019 11:06:23 dut.10.238.54.211: l3fwd-power: no process found
24/10/2019 11:06:23 dut.10.238.54.211: rm -rf vhost-net*
24/10/2019 11:06:23 dut.10.238.54.211:
24/10/2019 11:07:22 TestVirtioUserInterrupt: Launch l3fwd-power sample finished
24/10/2019 11:07:22 tester: scapy
24/10/2019 11:07:23 tester: INFO: Can't import python gnuplot wrapper . Won't be able to plot.
INFO: Can't import PyX. Won't be able to use psdump() or pdfdump().
Welcome to Scapy (2.3.1)
24/10/2019 11:07:25 tester: pk=[Ether(dst="52:54:00:00:00:01")/IP()/("X"*64)]
24/10/2019 11:07:25 tester:
24/10/2019 11:07:25 tester: sendp(pk, iface="enp175s0f0", count=100)
24/10/2019 11:07:25 tester: ....................................................................................................
Sent 100 packets.
24/10/2019 11:07:27 tester: exit()
24/10/2019 11:07:27 tester:
24/10/2019 11:07:45 TestVirtioUserInterrupt: lcore 3 is waked up from rx interrupt on port 0 queue 0
24/10/2019 11:07:45 tester: scapy
24/10/2019 11:07:45 tester: INFO: Can't import python gnuplot wrapper . Won't be able to plot.
INFO: Can't import PyX. Won't be able to use psdump() or pdfdump().
Welcome to Scapy (2.3.1)
24/10/2019 11:07:47 tester: pk=[Ether(dst="52:54:00:00:00:01")/IP()/("X"*64)]
24/10/2019 11:07:47 tester:
24/10/2019 11:07:47 tester: sendp(pk, iface="enp175s0f0", count=100)
24/10/2019 11:07:47 tester: ....................................................................................................
Sent 100 packets.
24/10/2019 11:07:49 tester: exit()
24/10/2019 11:07:49 tester:
24/10/2019 11:08:07 TestVirtioUserInterrupt: lcore 3 is waked up from rx interrupt on port 0 queue 0
24/10/2019 11:08:07 TestVirtioUserInterrupt: Test Case test_interrupt_with_vhost_user_as_backed Result PASSED:
24/10/2019 11:08:07 dut.10.238.54.211: killall -s INT l3fwd-power
24/10/2019 11:08:07 dut.10.238.54.211:
24/10/2019 11:08:07 dut.10.238.54.211: killall -s INT testpmd
24/10/2019 11:08:07 dut.10.238.54.211:
24/10/2019 11:08:09 TestVirtioUserInterrupt: Test Case test_lsc_event_between_vhost_and_virtio_user Begin
24/10/2019 11:08:09 dut.10.238.54.211:
24/10/2019 11:08:09 tester:
24/10/2019 11:08:09 dut.10.238.54.211: killall -s INT testpmd
24/10/2019 11:08:09 dut.10.238.54.211: testpmd: no process found
24/10/2019 11:08:09 dut.10.238.54.211: killall -s INT l3fwd-power
24/10/2019 11:08:09 dut.10.238.54.211: l3fwd-power: no process found
24/10/2019 11:08:09 dut.10.238.54.211: rm -rf vhost-net*
24/10/2019 11:08:09 dut.10.238.54.211:
24/10/2019 11:08:45 TestVirtioUserInterrupt: Link status is right, status is up
24/10/2019 11:08:46 TestVirtioUserInterrupt: Link status is right, status is down
24/10/2019 11:08:46 TestVirtioUserInterrupt: Test Case test_lsc_event_between_vhost_and_virtio_user Result PASSED:
24/10/2019 11:08:46 dut.10.238.54.211: killall -s INT l3fwd-power
24/10/2019 11:08:46 dut.10.238.54.211: l3fwd-power: no process found
24/10/2019 11:08:46 dut.10.238.54.211: killall -s INT testpmd
24/10/2019 11:08:46 dut.10.238.54.211:
24/10/2019 11:08:47 dut.10.238.54.211: mv ./main.c ./examples/l3fwd-power/
24/10/2019 11:08:47 dut.10.238.54.211:
24/10/2019 11:08:47 dut.10.238.54.211: rm -rf ./app/test/test_resource_c.res.o
24/10/2019 11:08:47 dut.10.238.54.211:
24/10/2019 11:08:47 dut.10.238.54.211: rm -rf ./app/test/test_resource_tar.res.o
24/10/2019 11:08:47 dut.10.238.54.211:
24/10/2019 11:08:47 dut.10.238.54.211: rm -rf ./app/test/test_pci_sysfs.res.o
24/10/2019 11:08:48 dut.10.238.54.211:
24/10/2019 11:08:48 dut.10.238.54.211: make -j 70 -C examples/l3fwd-power
24/10/2019 11:08:51 dut.10.238.54.211: make: Entering directory '/root/dpdk/examples/l3fwd-power'
make[1]: Warning: File '/root/dpdk/mk/rte.app.mk' has modification time 9540 s in the future
CC main.o
CC perf_core.o
LD l3fwd-power
INSTALL-APP l3fwd-power
INSTALL-MAP l3fwd-power.map
make[1]: warning: Clock skew detected. Your build may be incomplete.
make: Leaving directory '/root/dpdk/examples/l3fwd-power'
24/10/2019 11:08:51 dut.10.238.54.211: kill_all: called by dut and has no prefix list.
24/10/2019 11:08:55 dts:
TEST SUITE ENDED: TestVirtioUserInterrupt
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [dts] [PATCH V1] tests/vhost_virtio_user_interrupt:fix test case blocked issue
2019-10-24 4:01 [dts] [PATCH V1] tests/vhost_virtio_user_interrupt:fix test case blocked issue zhu,shuai
2019-10-24 5:01 ` Zhu, WenhuiX
@ 2019-10-24 5:08 ` Ma, LihongX
1 sibling, 0 replies; 3+ messages in thread
From: Ma, LihongX @ 2019-10-24 5:08 UTC (permalink / raw)
To: Zhu, ShuaiX, dts; +Cc: Zhu, ShuaiX
Hi, shuai
Can you put the dpdk commit it in this patch ?
-----Original Message-----
From: dts [mailto:dts-bounces@dpdk.org] On Behalf Of zhu,shuai
Sent: Thursday, October 24, 2019 12:01 PM
To: dts@dpdk.org
Cc: Zhu, ShuaiX <shuaix.zhu@intel.com>
Subject: [dts] [PATCH V1] tests/vhost_virtio_user_interrupt:fix test case blocked issue
Modify the code due to dpdk changes.
Signed-off-by: zhu,shuai <shuaix.zhu@intel.com>
---
tests/TestSuite_vhost_virtio_user_interrupt.py | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/tests/TestSuite_vhost_virtio_user_interrupt.py b/tests/TestSuite_vhost_virtio_user_interrupt.py
index 5422e04..91edcce 100644
--- a/tests/TestSuite_vhost_virtio_user_interrupt.py
+++ b/tests/TestSuite_vhost_virtio_user_interrupt.py
@@ -84,6 +84,10 @@ class TestVirtioUserInterrupt(TestCase):
self.dut.send_expect("cp ./examples/l3fwd-power/main.c .", "#")
self.dut.send_expect(
"sed -i '/DEV_RX_OFFLOAD_CHECKSUM/d' ./examples/l3fwd-power/main.c", "#", 10)
+ self.dut.send_expect(
+ "sed -i '/if (promiscuous_on/i\#if 0' ./examples/l3fwd-power/main.c", "#", 10)
+ self.dut.send_expect(
+ "sed -i '/rte_spinlock_init(&(locks/i\#endif' ./examples/l3fwd-power/main.c", "#", 10)
out = self.dut.build_dpdk_apps("./examples/l3fwd-power")
self.verify("Error" not in out, "compilation l3fwd-power error")
--
2.17.2
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-10-24 5:08 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-24 4:01 [dts] [PATCH V1] tests/vhost_virtio_user_interrupt:fix test case blocked issue zhu,shuai
2019-10-24 5:01 ` Zhu, WenhuiX
2019-10-24 5:08 ` Ma, LihongX
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).