mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-26 09:30:24 +00:00
60eb4adac2
This patch adds some rudimentary tests for InodeWatcher. It tests the basic functionality, but maybe there are corner cases I haven't caught. Additionally, this is our first LibCore test. :^)
24 lines
866 B
CMake
24 lines
866 B
CMake
set(TEST_SOURCES
|
|
${CMAKE_CURRENT_SOURCE_DIR}/snprintf-correctness.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/strlcpy-correctness.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/TestLibCTime.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/TestLibCMkTemp.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/TestLibCExec.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/TestLibCDirEnt.cpp
|
|
${CMAKE_CURRENT_SOURCE_DIR}/TestLibCInodeWatcher.cpp
|
|
)
|
|
|
|
file(GLOB CMD_SOURCES CONFIGURE_DEPENDS "*.cpp")
|
|
list(REMOVE_ITEM CMD_SOURCES ${TEST_SOURCES})
|
|
|
|
# FIXME: These tests do not use LibTest
|
|
foreach(CMD_SRC ${CMD_SOURCES})
|
|
get_filename_component(CMD_NAME ${CMD_SRC} NAME_WE)
|
|
add_executable(${CMD_NAME} ${CMD_SRC})
|
|
target_link_libraries(${CMD_NAME} LibCore)
|
|
install(TARGETS ${CMD_NAME} RUNTIME DESTINATION usr/Tests/LibC)
|
|
endforeach()
|
|
|
|
foreach(source ${TEST_SOURCES})
|
|
serenity_test(${source} LibC)
|
|
endforeach()
|