[PATCH] D73981: [compiler-rt][asan][fuzzer][profile] switch to use lit multicfg test suite

Yuanfang Chen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Feb 4 10:58:44 PST 2020


ychen created this revision.
ychen added a reviewer: rnk.
Herald added subscribers: llvm-commits, Sanitizers, mgorny, dberris.
Herald added projects: Sanitizers, LLVM.
ychen added a child revision: D73980: [lit] add multi-cfgd test suite discovery.
ychen edited the summary of this revision.
ychen edited the summary of this revision.

`llvm-lit /path/to/test/src` should now invoke tests across all configurations. If this looks helpful, I could port other components.

For example

  ➜  bin/llvm-lit -vv ~/Src/u/compiler-rt/test/asan/TestCases/alloca_big_alignment.cpp
  -- Testing: 4 tests, 4 workers --
  PASS: AddressSanitizer-i386-linux-dynamic :: TestCases/alloca_big_alignment.cpp (1 of 4)
  PASS: AddressSanitizer-x86_64-linux-dynamic :: TestCases/alloca_big_alignment.cpp (2 of 4)
  PASS: AddressSanitizer-i386-linux :: TestCases/alloca_big_alignment.cpp (3 of 4)
  PASS: AddressSanitizer-x86_64-linux :: TestCases/alloca_big_alignment.cpp (4 of 4)
  
  Testing Time: 0.21s
    Expected Passes    : 4




Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D73981

Files:
  compiler-rt/test/asan/CMakeLists.txt
  compiler-rt/test/asan/lit.site.cfg.py.in
  compiler-rt/test/fuzzer/CMakeLists.txt
  compiler-rt/test/fuzzer/lit.site.cfg.py.in
  compiler-rt/test/profile/CMakeLists.txt
  compiler-rt/test/profile/lit.cfg.py
  compiler-rt/test/profile/lit.site.cfg.py.in
  llvm/cmake/modules/AddLLVM.cmake

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D73981.242377.patch
Type: text/x-patch
Size: 10134 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200204/400a285b/attachment.bin>


More information about the llvm-commits mailing list