[libc] Run all unit tests, irrespective of whether they belong to a test suite.
authorSiva Chandra Reddy <sivachandra@google.com>
Thu, 20 Apr 2023 07:18:43 +0000 (07:18 +0000)
committerSiva Chandra Reddy <sivachandra@google.com>
Mon, 24 Apr 2023 22:37:58 +0000 (22:37 +0000)
commite831f73ac034f3a43aa9dcccf7ceb7b269089ef6
tree6fac484110bdd56581ff00ee4e4ff561121d0e64
parent62439d54fecf9c08ce5dc799d1d44562da884e88
[libc] Run all unit tests, irrespective of whether they belong to a test suite.

Previously, only those unit tests which belonged to a suite were run as
part of libc-unit-tests. It meant that unit tests not part of any suite
were not being tested. This change makes all unit tests run as part of
libc-unit-tests. The convenience function to add a libc unit test suite
has been removed and add_custom_target is used in its place. One of the
bit-rotting test has along been fixed. Math exhaustive and differential
tests are skipped under full build.

Reviewed By: michaelrj

Differential Revision: https://reviews.llvm.org/D148784
36 files changed:
libc/cmake/modules/LLVMLibCTestRules.cmake
libc/test/src/__support/CMakeLists.txt
libc/test/src/__support/CPP/CMakeLists.txt
libc/test/src/__support/FPUtil/CMakeLists.txt
libc/test/src/__support/OSUtil/CMakeLists.txt
libc/test/src/assert/CMakeLists.txt
libc/test/src/ctype/CMakeLists.txt
libc/test/src/dirent/CMakeLists.txt
libc/test/src/errno/CMakeLists.txt
libc/test/src/fcntl/CMakeLists.txt
libc/test/src/fenv/CMakeLists.txt
libc/test/src/inttypes/CMakeLists.txt
libc/test/src/math/CMakeLists.txt
libc/test/src/network/CMakeLists.txt
libc/test/src/pthread/CMakeLists.txt
libc/test/src/sched/CMakeLists.txt
libc/test/src/setjmp/CMakeLists.txt
libc/test/src/signal/CMakeLists.txt
libc/test/src/spawn/CMakeLists.txt
libc/test/src/stdio/CMakeLists.txt
libc/test/src/stdlib/CMakeLists.txt
libc/test/src/string/CMakeLists.txt
libc/test/src/sys/mman/linux/CMakeLists.txt
libc/test/src/sys/random/linux/CMakeLists.txt
libc/test/src/sys/resource/CMakeLists.txt
libc/test/src/sys/select/CMakeLists.txt
libc/test/src/sys/sendfile/CMakeLists.txt
libc/test/src/sys/stat/CMakeLists.txt
libc/test/src/sys/utsname/CMakeLists.txt
libc/test/src/sys/wait/CMakeLists.txt
libc/test/src/termios/CMakeLists.txt
libc/test/src/time/CMakeLists.txt
libc/test/src/unistd/CMakeLists.txt
libc/test/src/wchar/CMakeLists.txt
libc/test/utils/FPUtil/x86_long_double_test.cpp
libc/test/utils/UnitTest/CMakeLists.txt