feat(peer-cli): add just recipe for scenario matrix
Add a peer-cli-tests just recipe as the public entry point for the existing extended scenario runner. The recipe depends on peer-cli-image, so Docker uses its normal layer cache to decide whether the image needs rebuilding before the Python harness runs. This gives contributors one memorable command for the full S1-S47 matrix while still allowing selected scenarios as positional arguments. The underlying runner continues to own container topology and JSONL command/event handling. Test Plan: - just --list - just --dry-run peer-cli-tests S39 S40 - git diff --check Refs: PEER_CLI_SCENARIOS.md
This commit is contained in:
@@ -9,6 +9,7 @@ and writes JSONL events, results, and errors to stdout.
|
|||||||
```bash
|
```bash
|
||||||
just peer-cli-build
|
just peer-cli-build
|
||||||
just peer-cli-image
|
just peer-cli-image
|
||||||
|
just peer-cli-tests
|
||||||
just peer-cli-run alpha
|
just peer-cli-run alpha
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -47,6 +47,9 @@ peer-cli-image:
|
|||||||
mkdir -p "$DOCKER_CONFIG"
|
mkdir -p "$DOCKER_CONFIG"
|
||||||
docker build -f crates/lanspread-peer-cli/Dockerfile -t lanspread-peer-cli:dev .
|
docker build -f crates/lanspread-peer-cli/Dockerfile -t lanspread-peer-cli:dev .
|
||||||
|
|
||||||
|
peer-cli-tests *SCENARIOS: peer-cli-image
|
||||||
|
python3 crates/lanspread-peer-cli/scripts/run_extended_scenarios.py {{ SCENARIOS }}
|
||||||
|
|
||||||
# macvlan: each peer container gets its own MAC/IP on the real LAN.
|
# macvlan: each peer container gets its own MAC/IP on the real LAN.
|
||||||
# Override on the command line if your LAN differs, e.g.
|
# Override on the command line if your LAN differs, e.g.
|
||||||
# just LANSPREAD_PARENT_IFACE=enp4s0 LANSPREAD_SUBNET=10.0.0.0/24 LANSPREAD_GATEWAY=10.0.0.1 peer-cli-net
|
# just LANSPREAD_PARENT_IFACE=enp4s0 LANSPREAD_SUBNET=10.0.0.0/24 LANSPREAD_GATEWAY=10.0.0.1 peer-cli-net
|
||||||
|
|||||||
Reference in New Issue
Block a user