From 440ab00aa57dd8c7c0076d93011814b7fb25ec76 Mon Sep 17 00:00:00 2001 From: Sander Vrijders Date: Wed, 13 Sep 2017 11:26:53 +0200 Subject: build: Add continuous integration This adds CI to Rumba. --- examples/mouse.py | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) mode change 100644 => 100755 examples/mouse.py (limited to 'examples/mouse.py') diff --git a/examples/mouse.py b/examples/mouse.py old mode 100644 new mode 100755 index 25e2487..5ff5c6a --- 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() -- cgit v1.2.3