testsuite

package
v0.1.5 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2016 License: LGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const ScriptWorkerSh = `#!/usr/bin/env bash
echo $@
printenv
`

ScriptWorkerSh is a script that sends sys.argv and environ back to Box to test Boxes

Variables

This section is empty.

Functions

func RegisterSuite

func RegisterSuite(boxConstructor BoxConstructor, opts isolate.Profile, skipCheck SkipCheck)

RegisterSuite registers a new suite for a provided box

Types

type BoxConstructor

type BoxConstructor func(c *check.C) (isolate.Box, error)

BoxConstructor returns a Box to be tested

type BoxSuite

type BoxSuite struct {
	Constructor BoxConstructor
	SkipCheck
	isolate.Box
	// contains filtered or unexported fields
}

BoxSuite is a suite with specification tests for various Box implementations

func (*BoxSuite) SetUpSuite

func (suite *BoxSuite) SetUpSuite(c *check.C)

SetUpSuite sets up the gocheck test suite.

func (*BoxSuite) TearDownSuite added in v0.1.5

func (suite *BoxSuite) TearDownSuite(c *check.C)

TearDownSuite closes the Box

func (*BoxSuite) TestSpawn

func (suite *BoxSuite) TestSpawn(c *check.C)

TestSpawn spool code, spawns special worker.sh to verify if env and args are set correctly and output is collected properly

type SkipCheck

type SkipCheck func() (reason string)

SkipCheck returns a reason to skip the suite

var NeverSkip SkipCheck = func() string { return "" }

NeverSkip is predifened SkipCheck to mark a tester never skipped

Jump to

Keyboard shortcuts

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