tests: add shellcheckServices

This commit is contained in:
Erik Arvstedt 2022-09-05 18:12:09 +02:00 committed by Otto Sabart
parent 01fa900633
commit c3b97e6728
No known key found for this signature in database
GPG key ID: 823BAE99F8BE1E3C
4 changed files with 139 additions and 1 deletions

View file

@ -9,8 +9,9 @@ name: testConfig:
vm = makeVM {
name = "nix-bitcoin-${name}";
nodes.machine = {
nodes.machine = { config, ... }: {
imports = [ testConfig ];
virtualisation = {
# Needed because duplicity requires 270 MB of free temp space, regardless of backup size
diskSize = 1024;
@ -20,6 +21,9 @@ name: testConfig:
cores = lib.mkDefault 2;
};
# Run shellcheck on all nix-bitcoin services during machine build time
system.extraDependencies = [ config.test.shellcheckServices ];
};
testScript = nodes: let