python: add bindings and test example
PATCH 1/1 python: add bindings and test example
This patch introduces a python directory with some python examples. This is still in some experimental state to provide some dlm testing framework by using libdlm.
--- python/README | 7 + python/bindings/__init__.py | 0 python/bindings/dlm.py | 244 ++++++++++++++++++++++++++++++++ python/tests/dlm.py | 1 + python/tests/recovery_interrupt | 60 ++++++++ 5 files changed, 312 insertions(+) create mode 100644 python/README create mode 100644 python/bindings/__init__.py create mode 100644 python/bindings/dlm.py create mode 120000 python/tests/dlm.py create mode 100755 python/tests/recovery_interrupt
python/README new file +7 -0
@@ -0,0 +1,7 @@ +This directory contains python bindings to libdlm and short written tests in python to test dlm functionality. +NOTE: the bindings are still experimental and only used for testing now. + +Future work: + - look into pytest + - add ebpf examples + - look into MPI for barrier()
python/bindings/__init__.py new file +0 -0
python/bindings/dlm.py new file +244 -0
244 lines not on this page · raw message
python/tests/dlm.py new file +1 -0
@@ -0,0 +1 @@ +../bindings/dlm.py
python/tests/recovery_interrupt new file +60 -0
60 lines not on this page · raw message
Signature · 1 line
2.27.0