[compiler-rt] ed5acb1 - [fuzzer, CMake] Add config name for fuzzer lit test

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 28 14:39:50 PDT 2023


Author: Wu, Yingcong
Date: 2023-08-28T14:39:45-07:00
New Revision: ed5acb1425b5df1156d2ea84db0dc6b3cf3e7025

URL: https://github.com/llvm/llvm-project/commit/ed5acb1425b5df1156d2ea84db0dc6b3cf3e7025
DIFF: https://github.com/llvm/llvm-project/commit/ed5acb1425b5df1156d2ea84db0dc6b3cf3e7025.diff

LOG: [fuzzer,CMake] Add config name for fuzzer lit test

Add config name for fuzzer lit test, to make it easier to identify failures are with which config.

Before this change, same lit tests with different configs will share the same test name.
```
********************
Failed Tests (2):
  libFuzzer :: fuzzer-flags.test
  libFuzzer :: fuzzer-flags.test
```
Actually this is a failure of two lit tests(two configs of the same test).

With this change, the names will be different.
```
********************
Failed Tests (2):
  libFuzzer-i386-default-Linux ::fuzzer-flags.test
  libFuzzer-x86_64-default-Linux :: fuzzer-flags.test
```

Reviewed By: MaskRay, vitalybuka

Differential Revision: https://reviews.llvm.org/D158696

Added: 
    

Modified: 
    compiler-rt/test/fuzzer/CMakeLists.txt

Removed: 
    


################################################################################
diff  --git a/compiler-rt/test/fuzzer/CMakeLists.txt b/compiler-rt/test/fuzzer/CMakeLists.txt
index 4ab04822447f28..b6237d1552e7c1 100644
--- a/compiler-rt/test/fuzzer/CMakeLists.txt
+++ b/compiler-rt/test/fuzzer/CMakeLists.txt
@@ -59,6 +59,7 @@ macro(test_fuzzer stdlib)
 
     string(TOUPPER ${arch} ARCH_UPPER_CASE)
     set(CONFIG_NAME ${ARCH_UPPER_CASE}${STDLIB_CAPITALIZED}${OS_NAME}Config)
+    set(LIBFUZZER_TEST_CONFIG_SUFFIX "-${arch}-${stdlib_name}-${OS_NAME}")
 
     # LIT-based libFuzzer tests.
     configure_lit_site_cfg(


        


More information about the llvm-commits mailing list