test suite reviews and discussions
 help / color / mirror / Atom feed
From: "Zhou, Jun" <junx.w.zhou@intel.com>
To: dts@dpdk.org
Cc: "Zhou, Jun" <junx.w.zhou@intel.com>, Zhou@dpdk.org
Subject: [dts] [PATCH 10/10] tests/TestSuite_ddp_gtp.py: adapt to support both meson and makefile build
Date: Wed, 16 Sep 2020 12:29:51 +0000	[thread overview]
Message-ID: <20200916122951.17646-11-junx.w.zhou@intel.com> (raw)
In-Reply-To: <20200916122951.17646-1-junx.w.zhou@intel.com>

adapt to support both meson and makefile build

Signed-off-by: Zhou, Jun <junx.w.zhou@intel.com>
---
 tests/TestSuite_ddp_gtp.py | 13 +++++--------
 1 file changed, 5 insertions(+), 8 deletions(-)

diff --git a/tests/TestSuite_ddp_gtp.py b/tests/TestSuite_ddp_gtp.py
index 972c4016..11fe7cb8 100644
--- a/tests/TestSuite_ddp_gtp.py
+++ b/tests/TestSuite_ddp_gtp.py
@@ -27,7 +27,7 @@ class TestDdpGtp(TestCase):
         profile_file = 'dep/gtp.pkgo'
         profile_dst = "/tmp/"
         self.dut.session.copy_file_to(profile_file, profile_dst)
-        self.PF_Q_strip = 'CONFIG_RTE_LIBRTE_I40E_QUEUE_NUM_PER_PF'
+        self.PF_Q_strip = 'RTE_LIBRTE_I40E_QUEUE_NUM_PER_PF'
         # commit ee653bd8, queue number of per vf default value is defined
         # in drivers/net/i40e/i40e_ethdev.c, named as RTE_LIBRTE_I40E_QUEUE_NUM_PER_VF
         self.VF_Q_strip = 'RTE_LIBRTE_I40E_QUEUE_NUM_PER_VF'
@@ -43,6 +43,7 @@ class TestDdpGtp(TestCase):
         else:
             self.vf_assign_method = 'vfio-pci'
             self.dut.send_expect('modprobe vfio-pci', '#')
+
     def insmod_modprobe(self,modename=''):
         """
         Insmod modProbe before run test case
@@ -76,15 +77,14 @@ class TestDdpGtp(TestCase):
         else:
             self.load_profile()
 
-
     def search_queue_number(self, Q_strip):
         """
         Search max queue number from configuration.
         """
         if Q_strip is self.PF_Q_strip:
-            out = self.dut.send_expect("cat config/common_base", "]# ", 10)
-            pattern = "(%s=)(\d*)" % Q_strip
-        else :
+            out = self.dut.send_expect("cat config/rte_config.h", "]# ", 10)
+            pattern = "define (%s) (\d*)" % Q_strip
+        else:
             out = self.dut.send_expect("cat drivers/net/i40e/i40e_ethdev.c", "]# ", 10)
             pattern = "#define %s\s*(\d*)" % Q_strip
         s = re.compile(pattern)
@@ -142,7 +142,6 @@ class TestDdpGtp(TestCase):
             self.vm0_testpmd = PmdOutput(self.vm0_dut)
             self.env_done = True
 
-
     def destroy_vm_env(self):
 
         if getattr(self, 'vm0', None):
@@ -185,8 +184,6 @@ class TestDdpGtp(TestCase):
         self.dut_testpmd.execute_cmd('start')
         time.sleep(2)
 
-
-
     def gtp_packets(
             self, type='fdir', tunnel_pkt='gtpu', inner_L3='ipv4',
             match_opt='matched', chk='', teid=0xF):
-- 
2.25.1


  parent reply	other threads:[~2020-09-16 12:45 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-09-16 12:29 [dts] [PATCH V1 00/10] Modify suites to support meson Zhou, Jun
2020-09-16 12:29 ` [dts] [PATCH V1 01/10] tests/TestSuite_ddp_gtp_qregion.py: Instead of getting the rxq&txq value from common_base to rte_config.h Zhou, Jun
2020-09-16 12:29 ` [dts] [PATCH V1 02/10] tests/TestSuite_ddp_l2tpv3.py: " Zhou, Jun
2020-09-16 12:29 ` [dts] [PATCH V1 03/10] tests/TestSuite_ddp_ppp_l2tp.py: " Zhou, Jun
2020-09-16 12:29 ` [dts] [PATCH V1 04/10] tests/TestSuite_dynamic_flowtype.py: " Zhou, Jun
2020-09-16 12:29 ` [dts] [PATCH V1 05/10] tests/TestSuite_dynamic_queue.py: " Zhou, Jun
2020-09-16 12:29 ` [dts] [PATCH V1 06/10] tests/TestSuite_ipv4_reassembly.py: change mode of set parameter to adapt meson build Zhou, Jun
2020-09-17  8:40   ` Ma, LihongX
2020-09-16 12:29 ` [dts] [PATCH V1 07/10] tests/TestSuite_qinq_filter.py: " Zhou, Jun
2020-09-16 12:29 ` [dts] [PATCH V1 08/10] tests/TestSuite_queue_start_stop.py:adapt to support both meson and makefile build Zhou, Jun
2020-09-16 12:29 ` [dts] [PATCH V1 09/10] tests/tests/TestSuite_rxtx_callbacks.py:adapt " Zhou, Jun
2020-09-16 12:29 ` Zhou, Jun [this message]
2020-09-17  2:19 ` [dts] [PATCH V1 00/10] Modify suites to support meson Zhou, JunX W
2020-09-23  8:43 ` 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=20200916122951.17646-11-junx.w.zhou@intel.com \
    --to=junx.w.zhou@intel.com \
    --cc=Zhou@dpdk.org \
    --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).