aboutsummaryrefslogtreecommitdiff
path: root/examples/mouse.py
diff options
context:
space:
mode:
authorSander Vrijders <sander.vrijders@ugent.be>2017-09-13 11:26:53 +0200
committerSander Vrijders <sander.vrijders@ugent.be>2017-09-13 17:18:56 +0200
commit440ab00aa57dd8c7c0076d93011814b7fb25ec76 (patch)
tree3f65d7b4866c4cc6de68929d254fd04c8adb52e7 /examples/mouse.py
parente7a0deed26ec4015e783742da0796a77c589ce55 (diff)
downloadrumba-440ab00aa57dd8c7c0076d93011814b7fb25ec76.tar.gz
rumba-440ab00aa57dd8c7c0076d93011814b7fb25ec76.zip
build: Add continuous integration
This adds CI to Rumba.
Diffstat (limited to 'examples/mouse.py')
-rwxr-xr-x[-rw-r--r--]examples/mouse.py16
1 files changed, 10 insertions, 6 deletions
diff --git a/examples/mouse.py b/examples/mouse.py
index 25e2487..5ff5c6a 100644..100755
--- a/examples/mouse.py
+++ b/examples/mouse.py
@@ -15,6 +15,10 @@ import rumba.prototypes.ouroboros as our
import rumba.prototypes.rlite as rl
import rumba.prototypes.irati as irati
+
+log.set_logging_level('DEBUG')
+
+
n01 = NormalDIF("n01")
e01 = ShimEthDIF("e01")
@@ -92,14 +96,14 @@ n = Node("n",
difs = [n01, e17],
dif_registrations = {n01 : [e17]})
-tb = jfed.Testbed(exp_name = "mouse2",
- cert_file = "/home/sander/cert.pem",
- username = "sander")
+tb = qemu.Testbed(exp_name = "mouse2")
exp = rl.Experiment(tb, nodes = [a, b, c, d, e, f, g, h, i, j, k, l, m, n])
print(exp)
-exp.swap_in()
-exp.install_prototype()
-exp.bootstrap_prototype()
+try:
+ exp.swap_in()
+ exp.bootstrap_prototype()
+finally:
+ exp.swap_out()