2020-10-28 19:01:29 +00:00
|
|
|
file(GLOB CMD_SOURCES CONFIGURE_DEPENDS "*.cpp")
|
2021-04-27 09:39:32 +00:00
|
|
|
file(GLOB LIBTEST_BASED_SOURCES "Test*.cpp")
|
|
|
|
list(REMOVE_ITEM CMD_SOURCES ${LIBTEST_BASED_SOURCES})
|
2020-08-01 19:18:32 +00:00
|
|
|
|
2021-04-25 05:53:23 +00:00
|
|
|
# FIXME: These tests do not use LibTest
|
2020-08-01 19:18:32 +00: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/Kernel)
|
|
|
|
endforeach()
|
|
|
|
|
2021-04-27 09:39:32 +00:00
|
|
|
|
|
|
|
foreach(TEST_SRC ${LIBTEST_BASED_SOURCES})
|
|
|
|
serenity_test(${TEST_SRC} Kernel)
|
|
|
|
endforeach()
|
|
|
|
|
2020-08-01 19:18:32 +00:00
|
|
|
target_link_libraries(elf-execve-mmap-race LibPthread)
|
2020-08-09 08:31:18 +00:00
|
|
|
target_link_libraries(kill-pidtid-confusion LibPthread)
|
2020-08-01 19:18:32 +00:00
|
|
|
target_link_libraries(nanosleep-race-outbuf-munmap LibPthread)
|
|
|
|
target_link_libraries(null-deref-close-during-select LibPthread)
|
|
|
|
target_link_libraries(null-deref-crash-during-pthread_join LibPthread)
|
|
|
|
target_link_libraries(uaf-close-while-blocked-in-read LibPthread)
|
|
|
|
target_link_libraries(pthread-cond-timedwait-example LibPthread)
|