Skip to contentSkip to conversation

python: add bindings and test example

PATCH New Alexander Aring 1 participant 1 message Sep 17, 2021

lore
Share & tools
lore
#0 lore raw

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
new file mode 100644
index 00000000..b598a53d
@@ -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
new file mode 100644
index 00000000..e69de29b
python/bindings/dlm.py new file +244 -0

244 lines not on this page · raw message

python/tests/dlm.py new file +1 -0
new file mode 120000
index 00000000..057a99c5
@@ -0,0 +1 @@
+../bindings/dlm.py
\ No newline@end of file
python/tests/recovery_interrupt new file +60 -0

60 lines not on this page · raw message

Signature · 1 line
2.27.0