test: support run, debug commands in basic NixOS tests

Currently, this only affects the basic NixOS test `clightning-replication`.
This commit is contained in:
Erik Arvstedt 2022-12-12 11:57:15 +01:00
parent ae733d887e
commit addfa8ec6b
No known key found for this signature in database
GPG Key ID: 33312B944DD97846
2 changed files with 6 additions and 7 deletions

View File

@ -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} "$@"
'';
}

View File

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