Skip to content
edgesync All Files in sim/
Login

All Files in sim/

Files in directory /sim in any check-in


sim

Integration simulation tests for EdgeSync. Real NATS, real Fossil, real leaf and bridge binaries — wrapped in a deterministic harness with a TCP fault-injection proxy.

Lives in the root module: github.com/danmestas/EdgeSync/sim. (Deterministic single-threaded sim tests live in libfossil's dst/ — see ADR notes in the root README.md.)

What it does

How to run

make sim         # 1 seed, normal severity, ~1m
make sim-full    # 16 seeds × 3 severities (normal/adversarial/hostile), ~30m
make test-interop  # Tier-1 + Tier-2, requires `fossil` binary on PATH
make test-iroh   # build iroh-sidecar then run iroh tests

Direct: cd sim && go test . -run TestSimulation -sim.seed=N -sim.severity=hostile -timeout=120s.

Where it fits

Sim is the integration-tier test bench: it boots real binaries with fault injection. Faster deterministic single-threaded tests (DST) live in libfossil. Per-module unit tests live alongside their code (leaf/..., bridge/...).

See docs/architecture/testing-strategy.md for the test pyramid.