distro_test_common

package
v0.108.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 3, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const RandomTestSeed = 0

Variables

This section is empty.

Functions

func TestDistro_KernelOption

func TestDistro_KernelOption(t *testing.T, d distro.Distro)

func TestDistro_OSTreeOptions

func TestDistro_OSTreeOptions(t *testing.T, d distro.Distro)

func TestESP added in v0.104.0

func TestESP(t *testing.T, distros []distro.Distro, ptFunc func(i distro.ImageType) (*disk.PartitionTable, error))

TestESP checks whether all UEFI and hybrid images with a partition table have an ESP partition. It also checks the opposite, i.e. that legacy images don't have an ESP. This test is only performed on image types with a partition table, thus it doesn't run on e.g. installers and ostree commits. distros is a list of distros to test ptFunc is a function that returns an uncustomized partition table for a given image type. This proxy method is needed because the distro.ImageType interface doesn't provide a way to get a partition table.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL