瀏覽代碼

Tests: Establish root Tests directory, move Userland/Tests there

With the goal of centralizing all tests in the system, this is a
first step to establish a Tests sub-tree. It will contain all of
the unit tests and test harnesses for the various components in the
system.
Brian Gianforcaro 4 年之前
父節點
當前提交
fd0dbd1ebf
共有 49 個文件被更改,包括 1 次插入1 次删除
  1. 1 0
      CMakeLists.txt
  2. 0 0
      Tests/CMakeLists.txt
  3. 0 0
      Tests/Kernel/CMakeLists.txt
  4. 0 0
      Tests/Kernel/TestKernelFilePermissions.cpp
  5. 0 0
      Tests/Kernel/TestKernelPledge.cpp
  6. 0 0
      Tests/Kernel/TestKernelUnveil.cpp
  7. 0 0
      Tests/Kernel/bind-local-socket-to-symlink.cpp
  8. 0 0
      Tests/Kernel/bxvga-mmap-kernel-into-userspace.cpp
  9. 0 0
      Tests/Kernel/crash-fcntl-invalid-cmd.cpp
  10. 0 0
      Tests/Kernel/elf-execve-mmap-race.cpp
  11. 0 0
      Tests/Kernel/elf-symbolication-kernel-read-exploit.cpp
  12. 0 0
      Tests/Kernel/fuzz-syscalls.cpp
  13. 0 0
      Tests/Kernel/kill-pidtid-confusion.cpp
  14. 0 0
      Tests/Kernel/mmap-write-into-running-programs-executable-file.cpp
  15. 0 0
      Tests/Kernel/munmap-multi-region-unmapping.cpp
  16. 0 0
      Tests/Kernel/nanosleep-race-outbuf-munmap.cpp
  17. 0 0
      Tests/Kernel/null-deref-close-during-select.cpp
  18. 0 0
      Tests/Kernel/null-deref-crash-during-pthread_join.cpp
  19. 0 0
      Tests/Kernel/path-resolution-race.cpp
  20. 0 0
      Tests/Kernel/pthread-cond-timedwait-example.cpp
  21. 0 0
      Tests/Kernel/setpgid-across-sessions-without-leader.cpp
  22. 0 0
      Tests/Kernel/stress-truncate.cpp
  23. 0 0
      Tests/Kernel/stress-writeread.cpp
  24. 0 0
      Tests/Kernel/uaf-close-while-blocked-in-read.cpp
  25. 0 0
      Tests/Kernel/unveil-symlinks.cpp
  26. 0 0
      Tests/LibC/CMakeLists.txt
  27. 0 0
      Tests/LibC/TestLibCDirEnt.cpp
  28. 0 0
      Tests/LibC/TestLibCExec.cpp
  29. 0 0
      Tests/LibC/TestLibCMkTemp.cpp
  30. 0 0
      Tests/LibC/TestLibCTime.cpp
  31. 0 0
      Tests/LibC/accuracy-strtod.cpp
  32. 0 0
      Tests/LibC/memmem-tests.cpp
  33. 0 0
      Tests/LibC/overlong_realpath.cpp
  34. 0 0
      Tests/LibC/qsort-sorts-and-copies.cpp
  35. 0 0
      Tests/LibC/scanf.cpp
  36. 0 0
      Tests/LibC/snprintf-correctness.cpp
  37. 0 0
      Tests/LibC/stack-smash.cpp
  38. 0 0
      Tests/LibC/strlcpy-correctness.cpp
  39. 0 0
      Tests/LibGfx/BenchmarkGfxPainter.cpp
  40. 0 0
      Tests/LibGfx/CMakeLists.txt
  41. 0 0
      Tests/LibGfx/TestFontHandling.cpp
  42. 0 0
      Tests/LibGfx/TestImageDecoder.cpp
  43. 0 0
      Tests/LibM/CMakeLists.txt
  44. 0 0
      Tests/LibM/test-math.cpp
  45. 0 0
      Tests/LibPthread/CMakeLists.txt
  46. 0 0
      Tests/LibPthread/TestLibPthreadSpinLocks.cpp
  47. 0 0
      Tests/UserspaceEmulator/CMakeLists.txt
  48. 0 0
      Tests/UserspaceEmulator/write-oob.cpp
  49. 0 1
      Userland/CMakeLists.txt

+ 1 - 0
CMakeLists.txt

@@ -222,6 +222,7 @@ include_directories(${CMAKE_CURRENT_BINARY_DIR}/Userland)
 add_subdirectory(AK)
 add_subdirectory(Kernel)
 add_subdirectory(Userland)
+add_subdirectory(Tests)
 
 set(PCI_IDS_GZ_URL https://pci-ids.ucw.cz/v2.2/pci.ids.gz)
 set(PCI_IDS_GZ_PATH ${CMAKE_BINARY_DIR}/pci.ids.gz)

+ 0 - 0
Userland/Tests/CMakeLists.txt → Tests/CMakeLists.txt


+ 0 - 0
Userland/Tests/Kernel/CMakeLists.txt → Tests/Kernel/CMakeLists.txt


+ 0 - 0
Userland/Tests/Kernel/TestKernelFilePermissions.cpp → Tests/Kernel/TestKernelFilePermissions.cpp


+ 0 - 0
Userland/Tests/Kernel/TestKernelPledge.cpp → Tests/Kernel/TestKernelPledge.cpp


+ 0 - 0
Userland/Tests/Kernel/TestKernelUnveil.cpp → Tests/Kernel/TestKernelUnveil.cpp


+ 0 - 0
Userland/Tests/Kernel/bind-local-socket-to-symlink.cpp → Tests/Kernel/bind-local-socket-to-symlink.cpp


+ 0 - 0
Userland/Tests/Kernel/bxvga-mmap-kernel-into-userspace.cpp → Tests/Kernel/bxvga-mmap-kernel-into-userspace.cpp


+ 0 - 0
Userland/Tests/Kernel/crash-fcntl-invalid-cmd.cpp → Tests/Kernel/crash-fcntl-invalid-cmd.cpp


+ 0 - 0
Userland/Tests/Kernel/elf-execve-mmap-race.cpp → Tests/Kernel/elf-execve-mmap-race.cpp


+ 0 - 0
Userland/Tests/Kernel/elf-symbolication-kernel-read-exploit.cpp → Tests/Kernel/elf-symbolication-kernel-read-exploit.cpp


+ 0 - 0
Userland/Tests/Kernel/fuzz-syscalls.cpp → Tests/Kernel/fuzz-syscalls.cpp


+ 0 - 0
Userland/Tests/Kernel/kill-pidtid-confusion.cpp → Tests/Kernel/kill-pidtid-confusion.cpp


+ 0 - 0
Userland/Tests/Kernel/mmap-write-into-running-programs-executable-file.cpp → Tests/Kernel/mmap-write-into-running-programs-executable-file.cpp


+ 0 - 0
Userland/Tests/Kernel/munmap-multi-region-unmapping.cpp → Tests/Kernel/munmap-multi-region-unmapping.cpp


+ 0 - 0
Userland/Tests/Kernel/nanosleep-race-outbuf-munmap.cpp → Tests/Kernel/nanosleep-race-outbuf-munmap.cpp


+ 0 - 0
Userland/Tests/Kernel/null-deref-close-during-select.cpp → Tests/Kernel/null-deref-close-during-select.cpp


+ 0 - 0
Userland/Tests/Kernel/null-deref-crash-during-pthread_join.cpp → Tests/Kernel/null-deref-crash-during-pthread_join.cpp


+ 0 - 0
Userland/Tests/Kernel/path-resolution-race.cpp → Tests/Kernel/path-resolution-race.cpp


+ 0 - 0
Userland/Tests/Kernel/pthread-cond-timedwait-example.cpp → Tests/Kernel/pthread-cond-timedwait-example.cpp


+ 0 - 0
Userland/Tests/Kernel/setpgid-across-sessions-without-leader.cpp → Tests/Kernel/setpgid-across-sessions-without-leader.cpp


+ 0 - 0
Userland/Tests/Kernel/stress-truncate.cpp → Tests/Kernel/stress-truncate.cpp


+ 0 - 0
Userland/Tests/Kernel/stress-writeread.cpp → Tests/Kernel/stress-writeread.cpp


+ 0 - 0
Userland/Tests/Kernel/uaf-close-while-blocked-in-read.cpp → Tests/Kernel/uaf-close-while-blocked-in-read.cpp


+ 0 - 0
Userland/Tests/Kernel/unveil-symlinks.cpp → Tests/Kernel/unveil-symlinks.cpp


+ 0 - 0
Userland/Tests/LibC/CMakeLists.txt → Tests/LibC/CMakeLists.txt


+ 0 - 0
Userland/Tests/LibC/TestLibCDirEnt.cpp → Tests/LibC/TestLibCDirEnt.cpp


+ 0 - 0
Userland/Tests/LibC/TestLibCExec.cpp → Tests/LibC/TestLibCExec.cpp


+ 0 - 0
Userland/Tests/LibC/TestLibCMkTemp.cpp → Tests/LibC/TestLibCMkTemp.cpp


+ 0 - 0
Userland/Tests/LibC/TestLibCTime.cpp → Tests/LibC/TestLibCTime.cpp


+ 0 - 0
Userland/Tests/LibC/accuracy-strtod.cpp → Tests/LibC/accuracy-strtod.cpp


+ 0 - 0
Userland/Tests/LibC/memmem-tests.cpp → Tests/LibC/memmem-tests.cpp


+ 0 - 0
Userland/Tests/LibC/overlong_realpath.cpp → Tests/LibC/overlong_realpath.cpp


+ 0 - 0
Userland/Tests/LibC/qsort-sorts-and-copies.cpp → Tests/LibC/qsort-sorts-and-copies.cpp


+ 0 - 0
Userland/Tests/LibC/scanf.cpp → Tests/LibC/scanf.cpp


+ 0 - 0
Userland/Tests/LibC/snprintf-correctness.cpp → Tests/LibC/snprintf-correctness.cpp


+ 0 - 0
Userland/Tests/LibC/stack-smash.cpp → Tests/LibC/stack-smash.cpp


+ 0 - 0
Userland/Tests/LibC/strlcpy-correctness.cpp → Tests/LibC/strlcpy-correctness.cpp


+ 0 - 0
Userland/Tests/LibGfx/BenchmarkGfxPainter.cpp → Tests/LibGfx/BenchmarkGfxPainter.cpp


+ 0 - 0
Userland/Tests/LibGfx/CMakeLists.txt → Tests/LibGfx/CMakeLists.txt


+ 0 - 0
Userland/Tests/LibGfx/TestFontHandling.cpp → Tests/LibGfx/TestFontHandling.cpp


+ 0 - 0
Userland/Tests/LibGfx/TestImageDecoder.cpp → Tests/LibGfx/TestImageDecoder.cpp


+ 0 - 0
Userland/Tests/LibM/CMakeLists.txt → Tests/LibM/CMakeLists.txt


+ 0 - 0
Userland/Tests/LibM/test-math.cpp → Tests/LibM/test-math.cpp


+ 0 - 0
Userland/Tests/LibPthread/CMakeLists.txt → Tests/LibPthread/CMakeLists.txt


+ 0 - 0
Userland/Tests/LibPthread/TestLibPthreadSpinLocks.cpp → Tests/LibPthread/TestLibPthreadSpinLocks.cpp


+ 0 - 0
Userland/Tests/UserspaceEmulator/CMakeLists.txt → Tests/UserspaceEmulator/CMakeLists.txt


+ 0 - 0
Userland/Tests/UserspaceEmulator/write-oob.cpp → Tests/UserspaceEmulator/write-oob.cpp


+ 0 - 1
Userland/CMakeLists.txt

@@ -9,5 +9,4 @@ add_subdirectory(Libraries)
 add_subdirectory(Applets)
 add_subdirectory(Services)
 add_subdirectory(Shell)
-add_subdirectory(Tests)
 add_subdirectory(Utilities)