run-tests: allow defining scenarios via cmdline args

This simplifies running self-contained scenarios for testing and debugging.
This commit is contained in:
Erik Arvstedt 2021-01-30 10:47:01 +01:00
parent fc40776689
commit 44546561fc
No known key found for this signature in database
GPG key ID: 33312B944DD97846
2 changed files with 28 additions and 4 deletions

View file

@ -55,5 +55,11 @@ c systemctl status bitcoind
# Explore a single feature
./run-tests.sh --scenario electrs container
# Run a command in a container
./run-tests.sh --scenario '{
services.clightning.enable = true;
nix-bitcoin.nodeinfo.enable = true;
}' container --run c nodeinfo
```
See [`run-tests.sh`](../test/run-tests.sh) for a complete documentation.