test suite reviews and discussions
 help / color / mirror / Atom feed
From: Weiyuan Li <weiyuanx.li@intel.com>
To: dts@dpdk.org, lijuan.tu@intel.com
Cc: Weiyuan Li <weiyuanx.li@intel.com>
Subject: [dts][PATCH V2 2/2] tests/TestSuite_multicast: remove dpdk code modification.
Date: Tue,  8 Feb 2022 17:06:13 +0000	[thread overview]
Message-ID: <20220208170613.25632-2-weiyuanx.li@intel.com> (raw)
In-Reply-To: <20220208170613.25632-1-weiyuanx.li@intel.com>

Remove dpdk code modification from the test script.

v2:
-Modify test plan step description.

Signed-off-by: Weiyuan Li <weiyuanx.li@intel.com>
---
 tests/TestSuite_multicast.py | 23 -----------------------
 1 file changed, 23 deletions(-)

diff --git a/tests/TestSuite_multicast.py b/tests/TestSuite_multicast.py
index dacdb6f2..99a872f8 100644
--- a/tests/TestSuite_multicast.py
+++ b/tests/TestSuite_multicast.py
@@ -40,17 +40,6 @@ import time
 import framework.utils as utils
 from framework.test_case import TestCase
 
-routeTbl = [
-    ["224.0.0.101", "P1"], ["224.0.0.102", "P2"],
-    ["224.0.0.103", "P1,P2"], ["224.0.0.104", "P3"],
-    ["224.0.0.105", "P1,P3"], ["224.0.0.106", "P2,P3"],
-    ["224.0.0.107", "P1,P2,P3"], ["224.0.0.108", "P4"],
-    ["224.0.0.109", "P1,P4"], ["224.0.0.110", "P2,P4"],
-    ["224.0.0.111", "P1,P2,P4"], ["224.0.0.112", "P3,P4"],
-    ["224.0.0.113", "P1,P3,P4"], ["224.0.0.114", "P2,P3,P4"],
-    ["224.0.0.115", "P1,P2,P3,P4"]
-]
-
 trafficFlow = {
     "F1": ["TG0", "TG0", "10.100.0.1", "224.0.0.101"],
     "F2": ["TG0", "TG1", "10.100.0.2", "224.0.0.104"],
@@ -100,18 +89,6 @@ class TestMulticast(TestCase):
         TG0 = self.tester.get_local_port(TGs[0])
         TG1 = self.tester.get_local_port(TGs[1])
 
-        # Prepare multicast route table, replace P(x) port pattern
-        repStr = "static struct mcast_group_params mcast_group_table[] = {\\\n"
-        for [ip, ports] in routeTbl:
-            mask = 0
-            for _ in ports.split(','):
-                mask = mask | (1 << eval(_))
-            entry = '{' + 'RTE_IPV4(' + ip.replace('.', ',') + '),' + str(mask) + '}'
-            repStr = repStr + ' ' * 4 + entry + ",\\\n"
-        repStr = repStr + "};"
-
-        self.dut.send_expect(r"sed -i '/mcast_group_table\[\].*{/,/^\}\;/c\\%s' examples/ipv4_multicast/main.c" % repStr, "# ")
-
         # make application
         out = self.dut.build_dpdk_apps('examples/ipv4_multicast')
         self.app_ipv4_multicast_path = self.dut.apps_name['ipv4_multicast']
-- 
2.25.1


  reply	other threads:[~2022-02-08  9:04 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-02-08 17:06 [dts][PATCH V2 1/2] test_plans/multicast_test_plan:remove " Weiyuan Li
2022-02-08 17:06 ` Weiyuan Li [this message]
2022-02-09  1:29 ` 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=20220208170613.25632-2-weiyuanx.li@intel.com \
    --to=weiyuanx.li@intel.com \
    --cc=dts@dpdk.org \
    --cc=lijuan.tu@intel.com \
    /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).