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
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.