kola

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2016 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	QEMUOptions platform.QEMUOptions // glue to set platform options from main
	GCEOptions  platform.GCEOptions  // glue to set platform options from main
	AWSOptions  platform.AWSOptions  // glue to set platform options from main

	TestParallelism int //glue var to set test parallelism from main

	Skip = errors.New("test skipped")
)

Functions

func RegisterTestOption

func RegisterTestOption(name, option string)

RegisterTestOption registers any options that need visibility inside a Test. Panics if existing option is already registered. Each test has global view of options.

func RunTest

func RunTest(t *register.Test, pltfrm string) error

RunTest is a harness for running a single test. It is used by RunTests but can also be used directly by binaries that aim to run a single test.

func RunTests

func RunTests(pattern, pltfrm string) error

RunTests is a harness for running multiple tests in parallel. Filters tests based on a glob pattern and by platform. Has access to all tests either registered in this package or by imported packages that register tests in their init() function.

Types

type NativeRunner

type NativeRunner func(funcName string, m platform.Machine) error

NativeRunner is a closure passed to all kola test functions and used to run native go functions directly on kola machines. It is necessary glue until kola does introspection.

Directories

Path Synopsis
tests

Jump to

Keyboard shortcuts

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