[v6,08/11] app/test: add debug test suite

Message ID 20230816153439.551501-9-bruce.richardson@intel.com (mailing list archive)
State Accepted, archived
Delegated to: David Marchand
Headers
Series expand list of optional libraries |

Checks

Context Check Description
ci/checkpatch success coding style OK

Commit Message

Bruce Richardson Aug. 16, 2023, 3:34 p.m. UTC
  Add in for all platforms, the suite of tests to dump out the structure
information available. Since the commands are defined in commands.c on
all OS's, do not limit their presence to just the non-windows OS's.

Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
---
 app/test/suites/meson.build | 20 ++++++++++++++++++++
 1 file changed, 20 insertions(+)
  

Patch

diff --git a/app/test/suites/meson.build b/app/test/suites/meson.build
index eddf332156..19a6b902fa 100644
--- a/app/test/suites/meson.build
+++ b/app/test/suites/meson.build
@@ -102,3 +102,23 @@  if not is_windows and dpdk_conf.has('RTE_LIB_TELEMETRY')
             is_parallel : false,
             suite : 'fast-tests')
 endif
+
+# dump tests are defined in commands.c, and not easily extractable
+dump_test_names = [
+        'dump_devargs',
+        'dump_log_types',
+        'dump_malloc_heaps',
+        'dump_malloc_stats',
+        'dump_mempool',
+        'dump_memzone',
+        'dump_physmem',
+        'dump_ring',
+        'dump_struct_sizes',
+]
+foreach arg : dump_test_names
+    test(arg, dpdk_test,
+                env : ['DPDK_TEST=' + arg],
+                timeout : timeout_seconds_fast,
+                is_parallel : false,
+                suite : 'debug-tests')
+endforeach