Skip to content

Latest commit

 

History

History
36 lines (25 loc) · 1.25 KB

README.md

File metadata and controls

36 lines (25 loc) · 1.25 KB

Running the tests

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

Prerequisites

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 and OVMF_VARS.fd to the same directory as the build.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.

Steps

It's as simple as running the build.py script with the ``run` argument:

./build.py run

Available commands:

  • build: only build
  • run: (re)build and run
  • doc: generate documentation
  • clippy: 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