benchbuild.projects.test.test module

class benchbuild.projects.test.test.TestProject(experiment, name=NOTHING, domain=NOTHING, group=NOTHING, src_file=NOTHING, container=NOTHING, version=NOTHING, builddir=NOTHING, testdir=NOTHING, cflags=NOTHING, ldflags=NOTHING, run_f=NOTHING, run_uuid=NOTHING, compiler_extension=NOTHING, runtime_extension=None)[source]

Bases: benchbuild.project.Project

Test project that does nothing.

DOMAIN = 'test'
GROUP = 'test'
NAME = 'test'
SRC_FILE = 'test.cpp'
VERSION = '1.0'
compile()[source]

Compile the project.

run_tests(runner)[source]

Run the tests of this project.

Clients override this method to provide customized run-time tests.

Parameters:
  • experiment – The experiment we run this project under
  • run – A function that takes the run command.
class benchbuild.projects.test.test.TestProjectRuntimeFail(experiment, name=NOTHING, domain=NOTHING, group=NOTHING, src_file=NOTHING, container=NOTHING, version=NOTHING, builddir=NOTHING, testdir=NOTHING, cflags=NOTHING, ldflags=NOTHING, run_f=NOTHING, run_uuid=NOTHING, compiler_extension=NOTHING, runtime_extension=None)[source]

Bases: benchbuild.project.Project

Test project that _always_ fails at runtime.

DOMAIN = 'test'
GROUP = 'test'
NAME = 'test-fail'
SRC_FILE = 'test.cpp'
VERSION = '1.0'
compile()[source]

Compile the project.

run_tests(runner)[source]

Run the tests of this project.

Clients override this method to provide customized run-time tests.

Parameters:
  • experiment – The experiment we run this project under
  • run – A function that takes the run command.