diff mbox series

[V2] tests/multiprocess: modify dut to build examples/multi_process together

Message ID 20220507100924.18008-1-linglix.chen@intel.com (mailing list archive)
State Accepted
Headers show
Series [V2] tests/multiprocess: modify dut to build examples/multi_process together | expand

Checks

Context Check Description
ci/Intel-dts-suite-test success Testing OK

Commit Message

Lingli Chen May 7, 2022, 10:09 a.m. UTC
on Fedora35 and RHEL dut build dpdk app symmetric_mp will replace simple_mp, so not found simple_mp.
Solution: dut build dpdk app together.

Signed-off-by: Lingli Chen <linglix.chen@intel.com>
---
v2:modify dut to build examples/multi_process together

v1:modify dut build dpdk app all

 tests/TestSuite_multiprocess.py | 16 ++--------------
 1 file changed, 2 insertions(+), 14 deletions(-)

Comments

Tu, Lijuan May 9, 2022, 7:41 a.m. UTC | #1
On Sat,  7 May 2022 10:09:24 +0000, Lingli Chen <linglix.chen@intel.com> wrote:
> on Fedora35 and RHEL dut build dpdk app symmetric_mp will replace simple_mp, so not found simple_mp.
> Solution: dut build dpdk app together.
> 
> Signed-off-by: Lingli Chen <linglix.chen@intel.com>


Applied, thanks
diff mbox series

Patch

diff --git a/tests/TestSuite_multiprocess.py b/tests/TestSuite_multiprocess.py
index 33c13022..79744722 100644
--- a/tests/TestSuite_multiprocess.py
+++ b/tests/TestSuite_multiprocess.py
@@ -60,20 +60,8 @@  class TestMultiprocess(TestCase):
         self.verify(len(self.dut.get_all_cores()) >= 4, "Not enough Cores")
         self.dut_ports = self.dut.get_ports()
         self.socket = self.dut.get_numa_id(self.dut_ports[0])
-
-        out = self.dut.build_dpdk_apps(
-            "./examples/multi_process/client_server_mp/mp_client"
-        )
-        self.verify("Error" not in out, "Compilation mp_client failed")
-        out = self.dut.build_dpdk_apps(
-            "./examples/multi_process/client_server_mp/mp_server"
-        )
-        self.verify("Error" not in out, "Compilation mp_server failed")
-        out = self.dut.build_dpdk_apps("./examples/multi_process/simple_mp")
-        self.verify("Error" not in out, "Compilation simple_mp failed")
-        out = self.dut.build_dpdk_apps("./examples/multi_process/symmetric_mp")
-        self.verify("Error" not in out, "Compilation symmetric_mp failed")
-
+        extra_option = "-Dexamples='multi_process/client_server_mp/mp_server,multi_process/client_server_mp/mp_client,multi_process/simple_mp,multi_process/symmetric_mp'"
+        self.dut.build_install_dpdk(target=self.target, extra_options=extra_option)
         self.app_mp_client = self.dut.apps_name["mp_client"]
         self.app_mp_server = self.dut.apps_name["mp_server"]
         self.app_simple_mp = self.dut.apps_name["simple_mp"]