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>
Subject: [dts] [PATCH V2] tests/telemetry: adapt meson build
Date: Fri, 26 Mar 2021 15:49:45 +0800	[thread overview]
Message-ID: <1616744985-18530-1-git-send-email-junx.w.zhou@intel.com> (raw)

adapt meson build, need modify compile parameter and recompile 
for test

Signed-off-by: Zhou Jun <junx.w.zhou@intel.com>
---
v1:
adapt meson build

v2:
delete old method

 tests/TestSuite_telemetry.py | 9 +++------
 1 file changed, 3 insertions(+), 6 deletions(-)

diff --git a/tests/TestSuite_telemetry.py b/tests/TestSuite_telemetry.py
index 7e474bc..e5dd1c7 100644
--- a/tests/TestSuite_telemetry.py
+++ b/tests/TestSuite_telemetry.py
@@ -44,11 +44,7 @@ from pmd_output import PmdOutput
 class TestTelemetry(TestCase):
 
     def set_compiler_switch(self):
-        cmd = (
-            "sed -i -e "
-            "'s/CONFIG_RTE_LIBRTE_TELEMETRY=n/CONFIG_RTE_LIBRTE_TELEMETRY=y/g'"
-            " {}/config/common_base").format(self.target_dir)
-        self.d_a_console(cmd)
+        self.dut.set_build_options({'RTE_LIBRTE_TELEMETRY': 'y'})
 
     def create_query_script(self):
         '''
@@ -588,7 +584,8 @@ class TestTelemetry(TestCase):
         """
         Run after each test suite.
         """
-        pass
+        self.dut.set_build_options({'RTE_LIBRTE_TELEMETRY': 'n'})
+        self.dut.build_install_dpdk(self.target)
 
     def test_basic_connection(self):
         '''
-- 
1.8.3.1


             reply	other threads:[~2021-03-26  7:53 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-26  7:49 Zhou Jun [this message]
2021-03-26  8:02 ` Zhou, JunX W
2021-03-30  5:24   ` 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=1616744985-18530-1-git-send-email-junx.w.zhou@intel.com \
    --to=junx.w.zhou@intel.com \
    --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).