[V2] tests/telemetry: adapt meson build
Commit Message
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(-)
Comments
> -----Original Message-----
> From: Zhou, JunX W
> Sent: Friday, March 26, 2021 3:50 PM
> To: dts@dpdk.org
> Cc: Zhou, JunX W <junx.w.zhou@intel.com>
> Subject: [dts][PATCH V2] tests/telemetry: adapt meson build
>
> 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
Tested-by: Zhou, Jun <junx.w.zhou@intel.com>
> -----Original Message-----
> From: dts <dts-bounces@dpdk.org> On Behalf Of Zhou, JunX W
> Sent: 2021年3月26日 16:02
> To: dts@dpdk.org
> Subject: Re: [dts] [PATCH V2] tests/telemetry: adapt meson build
>
> > -----Original Message-----
> > From: Zhou, JunX W
> > Sent: Friday, March 26, 2021 3:50 PM
> > To: dts@dpdk.org
> > Cc: Zhou, JunX W <junx.w.zhou@intel.com>
> > Subject: [dts][PATCH V2] tests/telemetry: adapt meson build
> >
> > 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
>
> Tested-by: Zhou, Jun <junx.w.zhou@intel.com>
Applied
@@ -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):
'''