Source code for benchbuild.experiments.empty
"""
The 'empty' Experiment.
This experiment is for debugging purposes. It only prepares the basic
directories for benchbuild. No compilation & no run can be done with it.
"""
from benchbuild.experiment import Experiment
from benchbuild.utils.actions import Download, Configure, MakeBuildDir, Clean
from benchbuild.extensions import RuntimeExtension
[docs]class Empty(Experiment):
"""The empty experiment."""
NAME = "empty"
[docs] def actions_for_project(self, project):
""" Do nothing. """
return [
MakeBuildDir(project),
Download(project),
Configure(project),
Clean(project)
]
[docs]class NoMeasurement(Experiment):
"""Run everything but do not measure anything."""
NAME = "no-measurement"
[docs] def actions_for_project(self, project):
"""Execute all actions but don't do anything as extension."""
project.runtime_extension = RuntimeExtension(project, self)
return self.default_runtime_actions(project)