tree: afd2df51903cdfa249f7dc2ea18d530c389f154e [path history] [tgz]
  1. boot_test.gni
  2. create_efi_partition_config.py
  3. kernel_zbi_test.gni
  4. OWNERS
  5. README.md
  6. rebase_metadata_paths.py
  7. zbi_test.gni
  8. zbi_test_executable.gni
build/testing/boot_tests/README.md

Boot Tests

Boot tests are a useful framework for exercising code in low-level environments (e.g., early kernel or userspace boot) where mechanisms for command/control or data exfiltration are hard to come by. In this framing, a test is specified by a set of images to boot (e.g., via a product bundle), execution amounts to booting the images, and the determination of success is indicated by a magic ‘success string’ being printed to serial at some point during or after the boot process, after the relevant logic has successfully executed.

Templates that define boot tests wrap boot_test().

For reasons particular to automated testing, all boot tests are expected be aggregated under the //bundles/boot_tests/BUILD.gn. Once in your dependency graph, boot tests can be executed locally with fx run-boot-test.