From e5d772910319dc4ac5942a07a62ee138e8322455 Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sun, 28 Mar 2021 12:46:24 +0300 Subject: test: add first bumper-specific bindings and step functions --- subplot/bumper.py | 9 +++++++++ subplot/bumper.yaml | 2 ++ 2 files changed, 11 insertions(+) create mode 100644 subplot/bumper.py create mode 100644 subplot/bumper.yaml diff --git a/subplot/bumper.py b/subplot/bumper.py new file mode 100644 index 0000000..66d2564 --- /dev/null +++ b/subplot/bumper.py @@ -0,0 +1,9 @@ +import os + + +def install_bumper(ctx): + runcmd_prepend_to_path = globals()["runcmd_prepend_to_path"] + srcdir = globals()["srcdir"] + + # Add the directory with built Rust binaries to the path. + runcmd_prepend_to_path(ctx, dirname=os.path.join(srcdir, "target", "debug")) diff --git a/subplot/bumper.yaml b/subplot/bumper.yaml new file mode 100644 index 0000000..f74c28e --- /dev/null +++ b/subplot/bumper.yaml @@ -0,0 +1,2 @@ +- given: "an installed Bumper" + function: install_bumper -- cgit v1.2.1