2020-10-28 20:01:29 +01:00
|
|
|
file(GLOB CMD_SOURCES CONFIGURE_DEPENDS "*.cpp")
|
2021-04-24 23:53:23 -06:00
|
|
|
list(REMOVE_ITEM CMD_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/snprintf-correctness.cpp)
|
|
|
|
list(REMOVE_ITEM CMD_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/strlcpy-correctness.cpp)
|
2020-08-01 21:18:32 +02:00
|
|
|
|
2021-04-24 23:53:23 -06:00
|
|
|
# FIXME: These tests do not use LibTest
|
2020-08-01 21:18:32 +02:00
|
|
|
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()
|
|
|
|
|
2021-04-24 23:53:23 -06:00
|
|
|
serenity_test(snprintf-correctness.cpp LibC)
|
|
|
|
serenity_test(strlcpy-correctness.cpp LibC)
|