Add stress tests

This commit is contained in:
Lucian Petrut
2026-09-09 13:51:06 +00:00
parent a28b2c4b93
commit 94e63f96ad
5 changed files with 93 additions and 1 deletions
+9
View File
@@ -69,6 +69,7 @@ VDDK-shaped handle.
| `openvixdisklib/fastlz.py` | FastLZ NFC adapter (pip `pyfastlz`) |
| `tests/integration/` | Live pytest suite against a lab vCenter |
| `tests/perf/` | Throughput comparison of openvixdisklib vs VDDK |
| `tests/stress/` | Repeated connect/open/close leak check |
| `tests/integration/vixdisklib.py` | Native VDDK wrapper used only to cross-check |
| `docs/` | Protocol notes and reverse-engineering steps |
@@ -114,6 +115,14 @@ plain and FastLZ):
tox -e perf
```
Repeat ``connect`` / ``open`` / write-read one sector / ``close`` /
``disconnect`` 200 times (one process, sequential, like many VMs) and
assert the fd count does not grow:
```bash
tox -e stress
```
VDDK cross-check tests skip when `libvixDiskLib` is not loadable from
`.vddk`. `tox -e integration` sets `LD_LIBRARY_PATH` to that directory
and clears `LD_PRELOAD`. For a direct pytest run, do the same.