tree: 0e70176eaae5ddc5b05b08308761fbc3d28bc942 [path history] [tgz]
  1. bad-syscall/
  2. bti/
  3. c11-condvar/
  4. c11-mutex/
  5. c11-thread/
  6. channel/
  7. channel-write-etc/
  8. clock/
  9. condition-generic/
  10. debug/
  11. elf-tls/
  12. event-pair/
  13. fifo/
  14. fpu/
  15. futex/
  16. handle-close/
  17. handle-dup/
  18. handle-info/
  19. handle-transfer/
  20. handle-wait/
  21. interrupt/
  22. job/
  23. memory-mapping/
  24. object-child/
  25. object-info/
  26. pager/
  27. port/
  28. process/
  29. profile/
  30. pthread/
  31. pthread-barrier/
  32. pthread-tls/
  33. resource/
  34. socket/
  35. stack/
  36. sync-completion/
  37. sync-condition/
  38. sync-mutex/
  39. system-event/
  40. threads/
  41. time/
  42. vmar/
  43. vmo/
  44. BUILD.gn
  45. main.c
  46. README.md
zircon/system/utest/core/README.md

utest/core

The “core” tests exist for one main purpose: To test basic functionality when things like devmgr aren't working.

If the kernel is told to run core-tests instead of devmgr, these tests will run without any userspace device manager, device drivers, io plumbing, etc.

Example usage

fx set bringup.x64 --with-base //garnet/packages/tests:zircon  # or bringup.arm64
fx build
fx qemu -z out/default.zircon/user-x64-clang/obj/system/utest/core/core-tests.zbi

Notes

The tests here are for “core” functionality (channels, etc.), but not all “core” functionality can go here. For example, you can‘t start a process in your test with launchpad because core tests are for when that functionality isn’t working. Core tests can't use fdio and launchpad uses fdio.

Since these tests can't use fdio core/main.c stubs out the needed functions from fdio.