test suite reviews and discussions
 help / color / mirror / Atom feed
* [dts] [PATCH V3 1/3] framework/project_dpdk: add API to get def_rte_config value
@ 2018-06-20  9:14 Joyce Kong
  2018-06-20  9:14 ` [dts] [PATCH V3 2/3] tests/hello_world: fix invalid coremask when config RTE_MAX_LCORE Joyce Kong
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Joyce Kong @ 2018-06-20  9:14 UTC (permalink / raw)
  To: dts; +Cc: phil.yang, Joyce Kong

Add get_def_rte_config API to get RTE configuration from config/defconfig_*.

Signed-off-by: Joyce Kong <joyce.kong@arm.com>
Reviewed-by: Phil Yang <phil.yang@arm.com>
---
 framework/project_dpdk.py | 13 +++++++++++++
 1 file changed, 13 insertions(+)

diff --git a/framework/project_dpdk.py b/framework/project_dpdk.py
index f87fd13..dd559f8 100644
--- a/framework/project_dpdk.py
+++ b/framework/project_dpdk.py
@@ -430,6 +430,19 @@ class DPDKdut(Dut):
         # No blacklist option in FreeBSD
         return blacklist
 
+    def get_def_rte_config(self, config):
+        """
+        Get RTE configuration from config/defconfig_*.
+        """
+        out = self.session.send_command("cat config/defconfig_%s | sed '/^#/d' | sed '/^\s*$/d'"
+                                        % self.target, 1)
+
+        def_rte_config = re.findall(config+'=(\S+)', out)
+        if def_rte_config:
+            return def_rte_config[0]
+        else:
+            return None
+
     def set_driver_specific_configurations(self, drivername):
         """
         Set configurations required for specific drivers before compilation.
-- 
1.8.3.1

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2018-06-22  5:27 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-06-20  9:14 [dts] [PATCH V3 1/3] framework/project_dpdk: add API to get def_rte_config value Joyce Kong
2018-06-20  9:14 ` [dts] [PATCH V3 2/3] tests/hello_world: fix invalid coremask when config RTE_MAX_LCORE Joyce Kong
2018-06-20  9:14 ` [dts] [PATCH V3 3/3] tests/coremask: " Joyce Kong
2018-06-22 13:13 ` [dts] [PATCH V3 1/3] framework/project_dpdk: add API to get def_rte_config value Liu, Yong

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).