Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 1.12 KB

README.md

File metadata and controls

22 lines (16 loc) · 1.12 KB

Running the tests

This file documents the process of building and running the test suite.

Prerequisites

Besides all the core library requirements for building a UEFI app, the tests have additional requirements:

  • QEMU: the most recent version of QEMU is recommended.
  • Python 3: at least version 3.6 is required.
  • OVMF: You need to extract the firmware files into the uefi-test-runner directory.
    • For x86_64: OVMF_CODE.fd and OVMF_VARS.fd
    • For AArch64: QEMU_EFI-pflash.raw and vars-template-pflash.raw Alternatively, install OVMF using your distro's package manager and change the paths in the script file. Note: if your distro's OVMF version is too old / does not provide these files, you can download Gerd Hoffmann's builds and extract them in the local directory.

Build and run in QEMU

Use cargo xtask run to build uefi-test-runner and run it in QEMU. See the top-level README for more details of cargo xtask.