testutils

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2017 License: Apache-2.0, CC-BY-SA-4.0 Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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