Add fault injection steps to CONTRIBUTING.md

This commit is contained in:
Pekka Enberg
2025-08-19 09:15:49 +03:00
parent 89d152a060
commit 0a6c54100f

View File

@@ -211,6 +211,21 @@ Once Maturin is installed, you can build the crate and install it as a Python mo
cd bindings/python && maturin develop
```
## Fault injection with unreliable libc
First, build the unreliable libc:
```
cd testing/unreliable-libc
make
```
The run the stress testing tool with fault injection enabled:
```
RUST_BACKTRACE=1 LD_PRELOAD=./testing/unreliable-libc/unreliable-libc.so cargo run -p turso_stress -- --nr-iterations 10000
```
## Antithesis
Antithesis is a testing platform for finding bugs with reproducibility. In