2021-09-02 05:44:24 +00:00
|
|
|
set(TEST_SOURCES
|
|
|
|
bind-local-socket-to-symlink.cpp
|
|
|
|
crash-fcntl-invalid-cmd.cpp
|
|
|
|
elf-execve-mmap-race.cpp
|
|
|
|
elf-symbolication-kernel-read-exploit.cpp
|
|
|
|
fuzz-syscalls.cpp
|
|
|
|
kill-pidtid-confusion.cpp
|
|
|
|
mmap-write-into-running-programs-executable-file.cpp
|
|
|
|
mprotect-multi-region-mprotect.cpp
|
|
|
|
munmap-multi-region-unmapping.cpp
|
|
|
|
nanosleep-race-outbuf-munmap.cpp
|
|
|
|
null-deref-close-during-select.cpp
|
|
|
|
null-deref-crash-during-pthread_join.cpp
|
|
|
|
path-resolution-race.cpp
|
|
|
|
pthread-cond-timedwait-example.cpp
|
|
|
|
setpgid-across-sessions-without-leader.cpp
|
2022-02-25 21:28:06 +00:00
|
|
|
siginfo-example.cpp
|
2021-09-02 05:44:24 +00:00
|
|
|
stress-truncate.cpp
|
|
|
|
stress-writeread.cpp
|
|
|
|
uaf-close-while-blocked-in-read.cpp
|
|
|
|
unveil-symlinks.cpp
|
|
|
|
)
|
2020-08-01 19:18:32 +00:00
|
|
|
|
2021-04-25 05:53:23 +00:00
|
|
|
# FIXME: These tests do not use LibTest
|
2021-09-02 05:44:24 +00:00
|
|
|
foreach(source IN LISTS TEST_SOURCES)
|
|
|
|
get_filename_component(test_name "${source}" NAME_WE)
|
|
|
|
add_executable("${test_name}" "${source}")
|
|
|
|
target_link_libraries("${test_name}" LibCore)
|
|
|
|
install(TARGETS "${test_name}" RUNTIME DESTINATION usr/Tests/Kernel/Legacy)
|
2020-08-01 19:18:32 +00:00
|
|
|
endforeach()
|
|
|
|
|
2021-09-15 19:51:40 +00:00
|
|
|
serenity_test("crash.cpp" Kernel MAIN_ALREADY_DEFINED)
|
|
|
|
|
2021-09-02 05:44:24 +00:00
|
|
|
set(LIBTEST_BASED_SOURCES
|
|
|
|
TestEFault.cpp
|
2021-12-19 13:10:45 +00:00
|
|
|
TestInvalidUIDSet.cpp
|
2021-09-02 05:44:24 +00:00
|
|
|
TestKernelAlarm.cpp
|
|
|
|
TestKernelFilePermissions.cpp
|
|
|
|
TestKernelPledge.cpp
|
|
|
|
TestKernelUnveil.cpp
|
2021-10-22 09:02:11 +00:00
|
|
|
TestMemoryDeviceMmap.cpp
|
2021-09-02 05:44:24 +00:00
|
|
|
TestMunMap.cpp
|
|
|
|
TestProcFS.cpp
|
2021-10-27 22:44:35 +00:00
|
|
|
TestProcFSWrite.cpp
|
2021-11-29 23:10:18 +00:00
|
|
|
TestSigAltStack.cpp
|
2022-07-04 23:45:16 +00:00
|
|
|
TestSigHandler.cpp
|
2021-12-11 22:10:03 +00:00
|
|
|
TestSigWait.cpp
|
2021-09-02 05:44:24 +00:00
|
|
|
)
|
2021-04-27 09:39:32 +00:00
|
|
|
|
2021-09-02 05:44:24 +00:00
|
|
|
foreach(libtest_source IN LISTS LIBTEST_BASED_SOURCES)
|
|
|
|
serenity_test("${libtest_source}" Kernel)
|
2021-04-27 09:39:32 +00:00
|
|
|
endforeach()
|