diff mbox series

[V1] tests/TestSuite_unit_tests_kni:adapt meson build, add set_build_options

Message ID 20200914065103.29366-1-linglix.chen@intel.com (mailing list archive)
State Accepted
Headers show
Series [V1] tests/TestSuite_unit_tests_kni:adapt meson build, add set_build_options | expand

Commit Message

Lingli Chen Sept. 14, 2020, 6:51 a.m. UTC
adapt meson build, add set_build_options

Signed-off-by: Chen Linglix <linglix.chen@intel.com>
---
 tests/TestSuite_unit_tests_kni.py | 2 ++
 1 file changed, 2 insertions(+)

Comments

Lingli Chen Sept. 14, 2020, 6:59 a.m. UTC | #1
Tested-by:  Chen, LingliX <linglix.chen@intel.com>

Regards,
Chen, LingliX

-----Original Message-----
From: Chen, LingliX 
Sent: Monday, September 14, 2020 2:51 PM
To: dts@dpdk.org
Cc: Chen, LingliX <linglix.chen@intel.com>
Subject: [dts][PATCH V1] tests/TestSuite_unit_tests_kni:adapt meson build, add set_build_options

adapt meson build, add set_build_options

Signed-off-by: Chen Linglix <linglix.chen@intel.com>
---
 tests/TestSuite_unit_tests_kni.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/TestSuite_unit_tests_kni.py b/tests/TestSuite_unit_tests_kni.py
index abf8a80..d54a5ac 100644
--- a/tests/TestSuite_unit_tests_kni.py
+++ b/tests/TestSuite_unit_tests_kni.py
@@ -75,6 +75,8 @@ class TestUnitTestsKni(TestCase):
         """
         self.dut.send_expect("sed -i -e 's/KNI_KMOD_ETHTOOL=n$/KNI_KMOD_ETHTOOL=y/' config/common_base", "# ", 30)
         self.dut.send_expect("sed -i -e 's/CONFIG_RTE_KNI_KMOD=n$/CONFIG_RTE_KNI_KMOD=y/' config/common_base", "# ", 30)
+        self.dut.set_build_options({'KNI_KMOD_ETHTOOL': 'y'})
+        self.dut.set_build_options({'RTE_KNI_KMOD': 'y'})
         self.dut.build_install_dpdk(self.target)
         self.cores = self.dut.get_core_list("all")
         self.insmod_kni()
Tu, Lijuan Sept. 15, 2020, 8:50 a.m. UTC | #2
> Subject: [dts] [PATCH V1] tests/TestSuite_unit_tests_kni:adapt meson build, add
> set_build_options
> 
> adapt meson build, add set_build_options
> 
> Signed-off-by: Chen Linglix <linglix.chen@intel.com>

Applied
diff mbox series

Patch

diff --git a/tests/TestSuite_unit_tests_kni.py b/tests/TestSuite_unit_tests_kni.py
index abf8a80..d54a5ac 100644
--- a/tests/TestSuite_unit_tests_kni.py
+++ b/tests/TestSuite_unit_tests_kni.py
@@ -75,6 +75,8 @@  class TestUnitTestsKni(TestCase):
         """
         self.dut.send_expect("sed -i -e 's/KNI_KMOD_ETHTOOL=n$/KNI_KMOD_ETHTOOL=y/' config/common_base", "# ", 30)
         self.dut.send_expect("sed -i -e 's/CONFIG_RTE_KNI_KMOD=n$/CONFIG_RTE_KNI_KMOD=y/' config/common_base", "# ", 30)
+        self.dut.set_build_options({'KNI_KMOD_ETHTOOL': 'y'})
+        self.dut.set_build_options({'RTE_KNI_KMOD': 'y'})
         self.dut.build_install_dpdk(self.target)
         self.cores = self.dut.get_core_list("all")
         self.insmod_kni()