aboutsummaryrefslogtreecommitdiff
path: root/rumba/elements
diff options
context:
space:
mode:
authorDimitri Staessens <dimitri@ouroboros.rocks>2019-04-02 15:57:15 +0200
committerDimitri Staessens <dimitri.staessens@ugent.be>2019-04-04 10:17:16 +0200
commit788589ae595d7a757209556ae2ca4a789db0929d (patch)
tree2a520b70c25719af30a55fca37e804d563df6dcf /rumba/elements
parente85ae32074022f8212b01cb4b8829b7d16b8a23e (diff)
downloadrumba-788589ae595d7a757209556ae2ca4a789db0929d.tar.gz
rumba-788589ae595d7a757209556ae2ca4a789db0929d.zip
experiment: Add build_options and add_packages
This adds parameters build_options and add_packages that allows passing additional packages to install and a string of flags that can be processed by the prototypes. In the case of the Ouroboros prototype, it passes CMake build options.
Diffstat (limited to 'rumba/elements')
-rw-r--r--rumba/elements/experimentation.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/rumba/elements/experimentation.py b/rumba/elements/experimentation.py
index 92d39f5..bbb3310 100644
--- a/rumba/elements/experimentation.py
+++ b/rumba/elements/experimentation.py
@@ -111,6 +111,8 @@ class Experiment(object):
nodes=None,
git_repo=None,
git_branch=None,
+ build_options=None,
+ add_packages=[],
log_dir=None,
prototype_logs=None,
enrollment_strategy='minimal',
@@ -121,6 +123,8 @@ class Experiment(object):
:param nodes: The list of nodes in the experiment.
:param git_repo: The git repository of the prototype.
:param git_branch: The git branch of the repository.
+ :param build_options: Options for building the prototype.
+ :param add_packages: Additional packages to be installed.
:param log_dir: Where to log output of the experiment.
:param prototype_logs: Where the prototype logs its output.
:param enrollment_strategy: Can be 'full-mesh', 'minimal' or 'manual'.
@@ -138,6 +142,8 @@ class Experiment(object):
self.server_decorator = server_decorator
self.git_repo = git_repo
self.git_branch = git_branch
+ self.build_options = build_options
+ self.add_packages = add_packages
self.testbed = testbed
# the strategy employed for completing the enrollment phase in
# the different DIFs