test suite reviews and discussions
 help / color / mirror / Atom feed
From: Zhimin Huang <zhiminx.huang@intel.com>
To: dts@dpdk.org, xueqin.lin@intel.com
Cc: Zhimin Huang <zhiminx.huang@intel.com>
Subject: [dts] [PATCH V1 2/2] tests/shutdown_api:add asan test case
Date: Thu,  6 Jan 2022 03:45:16 +0800	[thread overview]
Message-ID: <20220105194516.15416-2-zhiminx.huang@intel.com> (raw)
In-Reply-To: <20220105194516.15416-1-zhiminx.huang@intel.com>

add asan build test case.

Signed-off-by: Zhimin Huang <zhiminx.huang@intel.com>
---
 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)
-- 
2.17.1


  reply	other threads:[~2022-01-05 11:15 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-01-05 19:45 [dts] [PATCH V1 1/2] test_plans/shutdown_api_test_plan:add case in plan Zhimin Huang
2022-01-05 19:45 ` Zhimin Huang [this message]
2022-01-06  1:18   ` [dts] [PATCH V1 2/2] tests/shutdown_api:add asan test case Huang, ZhiminX
2022-01-06  2:34   ` Lin, Xueqin
2022-01-06  2:36 ` [dts] [PATCH V1 1/2] test_plans/shutdown_api_test_plan:add case in plan Lin, Xueqin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220105194516.15416-2-zhiminx.huang@intel.com \
    --to=zhiminx.huang@intel.com \
    --cc=dts@dpdk.org \
    --cc=xueqin.lin@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).