tree: bfc412d8b03d50d216c935ce775bdfc7410eaacb [path history] [tgz]
  1. include/
  2. BUILD.gn
  3. README.md
  4. standalone-init.cc
  5. standalone-io.cc
  6. standalone-options.cc
src/zircon/testing/standalone-test/README.md

standalone-test library

This library provides some simple APIs and glue code for test code that is meant to run exclusively as part of a standalone test executable launched directly by userboot. Such tests can't use any normal system services, since there are no other services running at all. Instead, they can directly use the privileged resources and VMOs provided by the kernel. The lib/standalone-test/standalone.h header provides simple C++ functions in the standalone namespace for getting these handles.

Standalone tests like this need to take care to minimize their library dependencies, avoiding anything like fdio that interacts with other system services. Instead, linking in the standalone-test provides some simple replacements for functions like write that send any stdout/stderr text lines as kernel debuglog messages.