From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 18049A00C3; Tue, 14 Jun 2022 08:06:01 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 46BFD4281A; Tue, 14 Jun 2022 08:05:57 +0200 (CEST) Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by mails.dpdk.org (Postfix) with ESMTP id 863DA40DDD for ; Tue, 14 Jun 2022 08:05:54 +0200 (CEST) Received: from dggpeml500024.china.huawei.com (unknown [172.30.72.57]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4LMdDD0MwXzjY2s; Tue, 14 Jun 2022 14:03:56 +0800 (CST) Received: from localhost.localdomain (10.67.165.24) by dggpeml500024.china.huawei.com (7.185.36.10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2375.24; Tue, 14 Jun 2022 14:05:24 +0800 From: Chengwen Feng To: , CC: , , , Subject: [PATCH v2 3/3] test: support trace-autotest when enable trace Date: Tue, 14 Jun 2022 13:59:00 +0800 Message-ID: <20220614055900.22848-4-fengchengwen@huawei.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20220614055900.22848-1-fengchengwen@huawei.com> References: <20220607120014.49823-1-fengchengwen@huawei.com> <20220614055900.22848-1-fengchengwen@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Originating-IP: [10.67.165.24] X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To dggpeml500024.china.huawei.com (7.185.36.10) X-CFilter-Loop: Reflected X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org 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 --- 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