require

package
v1.3.5 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: BSD-3-Clause Imports: 18 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 added in v1.1.0

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 added in v1.1.0

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

CroupsV2Delegated checks that the controller is delegated to users.

func CgroupsV2Unified added in v1.1.0

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 found in one the path defined in the PATH environment variable, if not found the current test is skipped with a message.

func DMTCP added in v1.0.0

func DMTCP(t *testing.T)

DMTCP checks that a DMTCP stack is available

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 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 RPMMacro added in v1.2.0

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