require

package
v4.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2024 License: BSD-3-Clause Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Arch

func Arch(t *testing.T, arch string)

Arch checks the test machine has the specified architecture. If not, the test is skipped with a message.

func ArchIn

func ArchIn(t *testing.T, archs []string)

ArchIn checks the test machine is one of the specified archs. If not, the test is skipped with a message.

func Cgroups

func Cgroups(t *testing.T)

Cgroups checks that any cgroups version is enabled, if not the current test is skipped with a message.

func CgroupsFreezer

func CgroupsFreezer(t *testing.T)

CgroupsFreezer checks that cgroup freezer subsystem is available, if not the current test is skipped with a message

func CgroupsResourceExists

func CgroupsResourceExists(t *testing.T, controller string, resource string)

CgroupsResourceExists checks that the requested controller and resource exist in the cgroupfs.

func CgroupsV1

func CgroupsV1(t *testing.T)

CgroupsV1 checks that legacy cgroups is enabled, if not the current test is skipped with a message.

func CgroupsV2Delegated

func CgroupsV2Delegated(t *testing.T, controller string)

CroupsV2Delegated checks that the controller is delegated to users.

func CgroupsV2Unified

func CgroupsV2Unified(t *testing.T)

CgroupsV2 checks that cgroups v2 unified mode is enabled, if not the current test is skipped with a message.

func Command

func Command(t *testing.T, command string)

Command checks if the provided command is available (via Singularity's internal bin.FindBin() facility, or else simply on the PATH). If not found, the current test is skipped with a message.

func Filesystem

func Filesystem(t *testing.T, fs string)

Filesystem checks that the current test could use the corresponding filesystem, if the filesystem is not listed in /proc/filesystems, the current test is skipped with a message.

func Kernel

func Kernel(t *testing.T, reqMajor, reqMinor int)

Kernel checks that the kernel version is equal or greater than the minimum specified.

func MkfsExt3

func MkfsExt3(t *testing.T)

MkfsExt3 checks that mkfs.ext3 is available and support -d option to create writable overlay layout.

func Network

func Network(t *testing.T)

Network check that bridge network is supported by system, if not the current test is skipped with a message.

func NvCCLI

func NvCCLI(t *testing.T)

NvCCLI checks that nvidia-container-cli is available

func Nvidia

func Nvidia(t *testing.T)

Nvidia checks that an NVIDIA stack is available

func OneCommand added in v4.1.2

func OneCommand(t *testing.T, commands []string)

OneCommand checks if one of the provided commands is available (via Singularity's internal bin.FindBin() facility, or else simply on the PATH). If none are found, the current test is skipped with a message.

func RPMMacro

func RPMMacro(t *testing.T, name, value string)

func Rocm

func Rocm(t *testing.T)

Rocm checks that a Rocm stack is available

func Seccomp

func Seccomp(t *testing.T)

Seccomp checks that seccomp is enabled, if not the current test is skipped with a message.

func UserNamespace

func UserNamespace(t *testing.T)

UserNamespace checks that the current test could use user namespace, if user namespaces are not enabled or supported, the current test is skipped with a message.

Types

This section is empty.

Jump to

Keyboard shortcuts

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