testutils

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2016 License: Apache-2.0, CC-BY-SA-4.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ArchivesDir holds the location of the available rootfs
	ArchivesDir = filepath.Join("test-artifacts", "archives")
	// BundlesRoot holds the location where OCI Bundles are stored
	BundlesRoot = filepath.Join("test-artifacts", "oci-bundles")
	// OutputDirFormat holds the standard format used when creating a
	// new test output directory
	OutputDirFormat = filepath.Join("test-artifacts", "runs", "%s")
	// RefOciSpecsPath holds the path to the generic OCI config
	RefOciSpecsPath = filepath.Join(BundlesRoot, "config.json")
	// StateDir holds the path to the directory used by the containerd
	// started by tests
	StateDir = "/run/containerd-bench-test"
)

Functions

func CreateBundle

func CreateBundle(source, name string) error

CreateBundle generates a valid OCI bundle from the given rootfs

func CreateBusyboxBundle

func CreateBusyboxBundle(name string) error

CreateBusyboxBundle generates a bundle based on the busybox rootfs

func GenerateReferenceSpecs

func GenerateReferenceSpecs(destination string) error

GenerateReferenceSpecs generates a default OCI specs via `runc spec`

func GetTestOutDir

func GetTestOutDir() string

GetTestOutDir returns the output directory for testing and benchmark artifacts

Types

This section is empty.

Jump to

Keyboard shortcuts

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