This moves utils/UnitTest/Test.[h/cpp] to LibcTest.[h/cpp] and adds a new Test.h that acts as a switcher so that Fuchsia can use the zxtest backend for running our tests as part of their build. FuchsiaTest.h is for including fuchsia's zxtest library and anything else needed to make the tests work under fuchsia (currently just undefining the isascii macro for the test). Downstream users, please fix your build instead of reverting. Reviewed By: sivachandra Differential Revision: https://reviews.llvm.org/D94625
10 lines
259 B
CMake
10 lines
259 B
CMake
add_llvm_library(
|
|
LibcUnitTest
|
|
Test.h
|
|
LibcTest.cpp
|
|
LibcTest.h
|
|
)
|
|
target_include_directories(LibcUnitTest PUBLIC ${LIBC_SOURCE_DIR})
|
|
add_dependencies(LibcUnitTest libc.utils.CPP.standalone_cpp)
|
|
target_link_libraries(LibcUnitTest PUBLIC libc_test_utils)
|