[V1,1/2] test_plans/shutdown_api_test_plan:add case in plan

Message ID 20220105194516.15416-1-zhiminx.huang@intel.com (mailing list archive)
State Superseded
Headers
Series [V1,1/2] test_plans/shutdown_api_test_plan:add case in plan |

Commit Message

Huang, ZhiminX Jan. 5, 2022, 7:45 p.m. UTC
  add asan build test case in plan.

Signed-off-by: Zhimin Huang <zhiminx.huang@intel.com>
---
 test_plans/shutdown_api_test_plan.rst | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
  

Comments

Lin, Xueqin Jan. 6, 2022, 2:36 a.m. UTC | #1
> -----Original Message-----
> From: Huang, ZhiminX <zhiminx.huang@intel.com>
> Sent: Thursday, January 6, 2022 3:45 AM
> To: dts@dpdk.org; Lin, Xueqin <xueqin.lin@intel.com>
> Cc: Huang, ZhiminX <zhiminx.huang@intel.com>
> Subject: [dts] [PATCH V1 1/2] test_plans/shutdown_api_test_plan:add case
> in plan
> 
> add asan build test case in plan.
> 
> Signed-off-by: Zhimin Huang <zhiminx.huang@intel.com>
Acked-by: Xueqin Lin <xueqin.lin@intel.com>
  

Patch

diff --git a/test_plans/shutdown_api_test_plan.rst b/test_plans/shutdown_api_test_plan.rst
index f92b08f2..450d7f56 100644
--- a/test_plans/shutdown_api_test_plan.rst
+++ b/test_plans/shutdown_api_test_plan.rst
@@ -254,3 +254,18 @@  Test Case: RX/TX descriptor status
 3. Check rx descriptor status can be ``AVAILABLE``, ``DONE`` or ``UNAVAILABLE``.
 4. Run ``show port 0 txq * desc * status`` to check tx descriptor status.
 5. Check tx descriptor status can be ``FULL``, ``DONE`` or ``UNAVAILABLE``.
+
+Test Case: RX/TX test with ASan enable
+--------------------------------------
+
+1. `AddressSanitizer<https://github.com/google/sanitizers/wiki/AddressSanitizer>`
+
+(ASan) is a widely-used debugging tool to detect memory access errors.
+Add "-Dbuildtype=debug -Db_lundef=false -Db_sanitize=address" in meson build system to enable ASan tool::
+
+   CC=gcc meson -Denable_kmods=True -Dlibdir=lib -Dbuildtype=debug -Db_lundef=false -Db_sanitize=address --default-library=static x86_64-native-linuxapp-gcc
+   ninja -C x86_64-native-linuxapp-gcc -j 70
+
+2. Launch testpmd and check testpmd status
+3. Send packet and check testpmd forward packet successfully
+