test suite reviews and discussions
 help / color / mirror / Atom feed
* [DTS][V2 0/2] Add function to support ASan test
@ 2022-01-25  8:38 DongJunX
  2022-01-25  8:38 ` [DTS][V2 1/2] framework/*: " DongJunX
  2022-01-25  8:38 ` [DTS][V2 2/2] doc/*: Add ASan test user guide DongJunX
  0 siblings, 2 replies; 4+ messages in thread
From: DongJunX @ 2022-01-25  8:38 UTC (permalink / raw)
  To: dts; +Cc: lijuan.tu, qingx.sun, junx.dong

About ASan: AddressSanitizer a.k.a. ASan is a widely-used debugging tool to detect memory access
errors. It helps to detect issues like use-after-free, various kinds of buffer overruns in C/C++
programs, and other similar errors, as well as printing out detailed debug information whenever
an error is detected. ASan is integrated with gcc and clang and can be enabled via a meson option:
-Db_sanitize=address, See the documentation for details (especially regarding clang).

About ASan test: DTS adds one parameter named asan to control ASan test, It contains three steps:
 - Append ASan build parameters to meson build options. this may open the function of ASan detect
   memory access errors. if occuring memory access errors, the stack info will recorded in DTS log

 - After all cases tested finish, analyze DTS log and redefine case test result according to whether
   case log contain memory access error info. modify the result to failed if contain otherwise inherit
   the original result.

 - Generate ASan report to distinguish it from the original report.

V2:
  framework/*: Add function to support ASan test
  doc/*: Add ASan test user guide

 conf/asan.cfg                       |   6 +
 doc/dts_gsg/usr_guide/asan_test.rst |  67 +++++
 framework/asan_test.py              | 393 ++++++++++++++++++++++++++++
 framework/dts.py                    |  10 +-
 main.py                             |   6 +-
 5 files changed, 479 insertions(+), 3 deletions(-)
 create mode 100644 conf/asan.cfg
 create mode 100644 doc/dts_gsg/usr_guide/asan_test.rst
 create mode 100644 framework/asan_test.py

-- 
2.33.1.windows.1


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-01-25 21:11 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-01-25  8:38 [DTS][V2 0/2] Add function to support ASan test DongJunX
2022-01-25  8:38 ` [DTS][V2 1/2] framework/*: " DongJunX
2022-01-25 21:10   ` Owen Hilyard
2022-01-25  8:38 ` [DTS][V2 2/2] doc/*: Add ASan test user guide DongJunX

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).