test

package
v0.16.3 Latest Latest
Warning

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

Go to latest
Published: May 7, 2021 License: GPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute added in v0.16.0

func Execute(dir, command string,
	stdin io.Reader, stdout, stderr io.Writer,
	timeLimit time.Duration, memoryLimit uint64) (time.Duration, uint64, error)

Execute runs the command with resource restrictions.

func SelectSubmissionFile added in v0.16.0

func SelectSubmissionFile(submissionFilePath *string, cnf *conf.Conf) string

SelectSubmissionFile returns template of submission file to use, based on configured templates and passed 'submissionFilePath' value. 'submissionFilePath' must point to a valid file, if specified.

func Test

func Test(submissionFilePath, checkerScript string,
	timeLimit time.Duration, memoryLimit uint64,
	inputStreamFile, outputStreamFile string,
	testingMode string, cnf *conf.Conf)

Test tests

Types

This section is empty.

Jump to

Keyboard shortcuts

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