From patchwork Thu Jan 13 11:35:51 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Huang, ZhiminX" X-Patchwork-Id: 105756 Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 32FABA00C4; Thu, 13 Jan 2022 04:06:35 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id EE25240DF6; Thu, 13 Jan 2022 04:06:34 +0100 (CET) Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id 16F5640150 for ; Thu, 13 Jan 2022 04:06:33 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1642043194; x=1673579194; h=from:to:cc:subject:date:message-id; bh=/FB8WLNlbo1Et70+QuKjSwJWbHrbNINkesCcaXyPkZU=; b=EKtyto/z4Q0MkTueXA/WXZPMuXGbpyFd5BB+vNc7lsTnfzFTZQkmD/NM Q98wrZTqI2DWrLUUiEf46ro7lCU1Kokc3dtKJjpP1oHexr4vM4xBJrtV3 frIRRIAWdyckcLaod0Llg2fF0dkNgfekaVlUljuC5Xsg3voH/zQLrAPQ5 sI6+SSI2M2FN3wqx+D57KGnW0YDkwQWi735zzGe/7P6wQGpVQWdBOiyuU pM2mRroU9CeG1tVr7XJN5nirgeE2gFp3HRUtvN/ixhc2xoQ0TbBme0uGE H2kPCZmVip5f3brIQ6i1q5mDIA5p6NX3xYADY5Q3lQRzC4aqzsKulZ2Ry A==; X-IronPort-AV: E=McAfee;i="6200,9189,10225"; a="330263909" X-IronPort-AV: E=Sophos;i="5.88,284,1635231600"; d="scan'208";a="330263909" Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jan 2022 19:06:33 -0800 X-IronPort-AV: E=Sophos;i="5.88,284,1635231600"; d="scan'208";a="475151158" Received: from unknown (HELO localhost.localdomain) ([10.239.251.93]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 12 Jan 2022 19:06:31 -0800 From: Zhimin Huang To: dts@dpdk.org Cc: Zhimin Huang Subject: [dts] [PATCH V2 1/2] tests/shutdown_api:add asan test case Date: Thu, 13 Jan 2022 19:35:51 +0800 Message-Id: <20220113113552.14517-1-zhiminx.huang@intel.com> X-Mailer: git-send-email 2.17.1 X-BeenThere: dts@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: test suite reviews and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dts-bounces@dpdk.org add asan build test case. v2: - fix plan format issue --- tests/TestSuite_shutdown_api.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tests/TestSuite_shutdown_api.py b/tests/TestSuite_shutdown_api.py index 9f40d232..50f40330 100644 --- a/tests/TestSuite_shutdown_api.py +++ b/tests/TestSuite_shutdown_api.py @@ -798,6 +798,17 @@ class TestShutdownApi(TestCase): "Bad arguments" not in out and "Invalid queueid" not in out, "TX descriptor status is not supported") + def test_asan_build_test(self): + self.dut.build_install_dpdk(target=self.target, extra_options="-Dbuildtype=debug -Db_lundef=false -Db_sanitize=address") + self.pmdout.start_testpmd(param="--portmask={} --port-topology=loop".format(utils.create_mask(self.ports))) + cmd = "ps -aux | grep testpmd | grep -v grep" + out = self.dut.send_expect(cmd, "#", 15, alt_session=True) + if "testpmd" not in out: + self.verify("After build dpdk with ASan, start testpmd failed") + self.pmdout.execute_cmd("set fwd mac") + self.pmdout.execute_cmd("start") + self.check_forwarding() + def tear_down(self): """ Run after each test case. @@ -805,6 +816,8 @@ class TestShutdownApi(TestCase): if self._suite_result.test_case == "test_change_linkspeed_vf": self.destroy_vm_env() self.dut.kill_all() + if self.running_case == 'test_asan_build_test': + self.dut.build_install_dpdk(self.target) self.pmdout.start_testpmd("Default", "--portmask=%s --port-topology=loop" % utils.create_mask(self.ports), socket=self.ports_socket) ports_num = len(self.ports)