diff options
author | Lars Wirzenius <liw@liw.fi> | 2021-03-28 12:46:24 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2021-03-28 12:56:51 +0300 |
commit | e5d772910319dc4ac5942a07a62ee138e8322455 (patch) | |
tree | e61202e44f6183bc9db1bfd95be7aaae86a0677d | |
parent | c3980edbea7638dfd88369a712495bee9a5f6384 (diff) | |
download | bumper-rs-e5d772910319dc4ac5942a07a62ee138e8322455.tar.gz |
test: add first bumper-specific bindings and step functions
-rw-r--r-- | subplot/bumper.py | 9 | ||||
-rw-r--r-- | subplot/bumper.yaml | 2 |
2 files changed, 11 insertions, 0 deletions
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 |