1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 10:07:35 +00:00

Tests: Remove all file(GLOB) from CMakeLists in Tests

Using a file(GLOB) to find all the test files in a directory is an easy
hack to get things started, but has some drawbacks. Namely, if you add
a test, it won't be found again without re-running CMake. `ninja` seems
to do this automatically, but it would be nice to one day stop seeing it
rechecking our globbed directories.
This commit is contained in:
Andrew Kaster 2021-09-01 23:44:24 -06:00 committed by Andreas Kling
parent b5a145b466
commit 58797a1289
20 changed files with 154 additions and 73 deletions

View file

@ -1,13 +1,12 @@
set(
TEST_SOURCES
${CMAKE_CURRENT_SOURCE_DIR}/TestLibCoreArgsParser.cpp
${CMAKE_CURRENT_SOURCE_DIR}/TestLibCoreFileWatcher.cpp
${CMAKE_CURRENT_SOURCE_DIR}/TestLibCoreIODevice.cpp
${CMAKE_CURRENT_SOURCE_DIR}/TestLibCoreDeferredInvoke.cpp
set(TEST_SOURCES
TestLibCoreArgsParser.cpp
TestLibCoreFileWatcher.cpp
TestLibCoreIODevice.cpp
TestLibCoreDeferredInvoke.cpp
)
foreach(source ${TEST_SOURCES})
serenity_test(${source} LibCore)
foreach(source IN LISTS TEST_SOURCES)
serenity_test("${source}" LibCore)
endforeach()
install(FILES long_lines.txt DESTINATION usr/Tests/LibCore)