[PATCH v2 3/3] test: support trace-autotest when enable trace
Chengwen Feng
fengchengwen at huawei.com
Tue Jun 14 07:59:00 CEST 2022
There are a bug[1] when exit application while enable tracing, this
bug has not been discovered for a long time, to quickly detect such
bugs, this patch was introduced.
This patch adds a testcase with trace enabling, it also depends on
patch[2] because it has a long file-prefix.
[1] eal: fix segment fault when exit trace
[2] eal: fix trace init fail with long file-prefix
Signed-off-by: Chengwen Feng <fengchengwen at huawei.com>
---
app/test/meson.build | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/app/test/meson.build b/app/test/meson.build
index 7fe261cae8..eb37aa632a 100644
--- a/app/test/meson.build
+++ b/app/test/meson.build
@@ -509,6 +509,17 @@ foreach arg : fast_tests
is_parallel : false,
suite : 'fast-tests')
endif
+
+ if run_test and arg[0] == 'trace_autotest' and (not is_windows)
+ test_args += ['--trace=.*']
+ test_args += ['--trace-dir=@0@'.format(meson.current_build_dir())]
+ test(arg[0], dpdk_test,
+ env : ['DPDK_TEST=' + arg[0]],
+ args : test_args,
+ timeout : timeout_seconds_fast,
+ is_parallel : false,
+ suite : 'fast-tests')
+ endif
endforeach
foreach arg : perf_test_names
--
2.33.0
More information about the dev
mailing list