Merge fort-nix/nix-bitcoin#586: Misc. improvements
addfa8ec6btest: support `run`, `debug` commands in basic NixOS tests (Erik Arvstedt)ae733d887etests/clightning-replication: reuse `pkgs` instance (Erik Arvstedt)6cbd0d93aetests: rename `clightningReplication` -> `clightning-replication` (Erik Arvstedt)85310b533asecrets: use type `lines` for `generateSecretsCmds` (Erik Arvstedt)bc2f66d4f1bitcoind, liquid: increase start/stop timeouts (Erik Arvstedt)519ae31202netns-isolation: improve formatting (Erik Arvstedt)a1023696e6netns-isolation: reserve netns id for mempool (Erik Arvstedt)34fe8675bdadd option `nix-bitcoin.pkgOverlays` (Erik Arvstedt)a3bdecb10bhelper: add start-bash-session.sh (Erik Arvstedt)690a8f6256nodeinfo: extract fn `mkInfoLong` (Erik Arvstedt)2af642f56aimprove comments (Erik Arvstedt)5634f08873rtl: make `extraConfig` recursively mergeable (Erik Arvstedt)b76728a1ectreewide: use bool literals for systemd (Erik Arvstedt) Pull request description: ACKs for top commit: jonasnick: ACKaddfa8ec6bTree-SHA512: 46f779f8477b566ffc6d0dfb024f2098757f509b2b3e0cbb509cf3308de7029e913f6e6c3d6d3d226cc72f8a5031fd5586b2efdf7c2d9d15f4bdd7ed08b27425
This commit is contained in:
commit
475af2d6cb
20 changed files with 91 additions and 54 deletions
|
|
@ -1,4 +1,4 @@
|
|||
# You can run this test via `run-tests.sh -s clightningReplication`
|
||||
# You can run this test via `run-tests.sh -s clightning-replication`
|
||||
|
||||
makeTestVM: pkgs:
|
||||
with pkgs.lib;
|
||||
|
|
@ -14,6 +14,8 @@ let
|
|||
clientBaseConfig = {
|
||||
imports = [ ../modules/modules.nix ];
|
||||
|
||||
nixpkgs.pkgs = pkgs;
|
||||
|
||||
nix-bitcoin.generateSecrets = true;
|
||||
|
||||
services.clightning = {
|
||||
|
|
@ -54,7 +56,9 @@ makeTestVM {
|
|||
services.clightning.replication.encrypt = true;
|
||||
};
|
||||
|
||||
server = { ... }: {
|
||||
server = {
|
||||
nixpkgs.pkgs = pkgs;
|
||||
|
||||
environment.etc."ssh-host-key" = {
|
||||
source = keys.server;
|
||||
mode = "400";
|
||||
|
|
|
|||
|
|
@ -27,4 +27,9 @@ let
|
|||
inherit (test) meta passthru;
|
||||
} // test;
|
||||
in
|
||||
runTest
|
||||
runTest // {
|
||||
# A VM runner for interactive use
|
||||
run = pkgs.writers.writeBashBin "run-vm" ''
|
||||
. ${./run-vm.sh} ${runTest.driver} "$@"
|
||||
'';
|
||||
}
|
||||
|
|
|
|||
|
|
@ -52,11 +52,6 @@ let
|
|||
];
|
||||
};
|
||||
|
||||
# A VM runner for interactive use
|
||||
run = pkgs.writers.writeBashBin "run-vm" ''
|
||||
. ${./run-vm.sh} ${test.driver} "$@"
|
||||
'';
|
||||
|
||||
mkContainer = legacyInstallDirs:
|
||||
extra-container.lib.buildContainers {
|
||||
inherit system legacyInstallDirs;
|
||||
|
|
@ -139,7 +134,6 @@ let
|
|||
in
|
||||
test // {
|
||||
inherit
|
||||
run
|
||||
vm
|
||||
container
|
||||
# For NixOS with `system.stateVersion` <22.05
|
||||
|
|
|
|||
|
|
@ -272,7 +272,7 @@ buildable=(
|
|||
full
|
||||
regtest
|
||||
hardened
|
||||
clightningReplication
|
||||
clightning-replication
|
||||
lndPruned
|
||||
)
|
||||
buildable() { buildTests buildable "$@"; }
|
||||
|
|
|
|||
|
|
@ -404,7 +404,7 @@ in {
|
|||
) scenarios;
|
||||
in
|
||||
{
|
||||
clightningReplication = import ./clightning-replication.nix makeTestVM pkgs;
|
||||
clightning-replication = import ./clightning-replication.nix makeTestVM pkgs;
|
||||
} // mainTests;
|
||||
|
||||
tests = makeTests scenarios;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue