From 894c7d0faec010e9aa2de33cbdbac3f151f1ea78 Mon Sep 17 00:00:00 2001 From: Chengwen Feng Date: Fri, 17 Jun 2022 10:29:13 +0800 Subject: [PATCH] test/trace: add a test with traces enabled Currently trace_autotest unit test is executed with traces disabled. This patch introduces trace_autotest unit test with traces enabled, and the traces file is written to the directory where dpdk-test is located. Signed-off-by: Chengwen Feng Reviewed-by: David Marchand --- app/test/meson.build | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/app/test/meson.build b/app/test/meson.build index 7fe261cae8..1a30f4d3a8 100644 --- a/app/test/meson.build +++ b/app/test/meson.build @@ -508,6 +508,16 @@ foreach arg : fast_tests timeout : timeout_seconds_fast, is_parallel : false, suite : 'fast-tests') + if not is_windows and arg[0] == 'trace_autotest' + test_args += ['--trace=.*'] + test_args += ['--trace-dir=@0@'.format(meson.current_build_dir())] + test(arg[0] + '_with_traces', dpdk_test, + env : ['DPDK_TEST=' + arg[0]], + args : test_args, + timeout : timeout_seconds_fast, + is_parallel : false, + suite : 'fast-tests') + endif endif endforeach -- 2.20.1