This file documents the process of building and running the test suite.
Besides all the requirements for building a UEFI app, you will also need:
- QEMU: the most recent version of QEMU is recommended.
- Python 3: at least version 3.6 is required.
- OVMF:
You need to extract
OVMF_CODE.fd
andOVMF_VARS.fd
to the same directory as thebuild.py
file. 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.
It's as simple as running the build.py
script with the ``run` argument:
./build.py run
Available commands:
build
: only buildrun
: (re)build and rundoc
: generate documentationclippy
: run Clippy
Available options:
--verbose
: enables verbose mode, prints commands before running them--headless
: enables headless mode, which runs QEMU without a GUI--release
: builds the code with optimizations enabled