package
4.0.0+incompatible
Repository: https://github.com/rctl/u-root.git
Documentation: pkg.go.dev

# README

Integration Tests

This tests core use cases for u-root such as:

  • retrieving and kexec'ing a Linux kernel,
  • uinit (user init), and
  • running unit tests requiring root privileges.

Usage

Run the tests with:

go test

When the QEMU arch is not amd64, set the UROOT_TESTARCH variable. For example:

UROOT_TESTARCH=arm go test

Currently, only amd64 and arm are supported.

Requirements

  • QEMU
    • Path and arguments must be set with UROOT_QEMU.
    • Example: export UROOT_QEMU="$HOME/bin/qemu-system-x86_64 -L ."
  • Linux kernel
    • Path and arguments must be set with UROOT_KERNEL.
    • Example: export UROOT_KERNEL="$HOME/linux/arch/x86_64/boot/bzImage"

# Packages

No description provided by the author

# Functions

No description provided by the author
No description provided by the author
SkipWithoutQEMU skips the test when the QEMU environment variables are not set.
TestArch returns the architecture under test.

# Structs

Options are integration test options.