Add Aarch64 tests and include multiple test images. (#9)

This commit is contained in:
Ramses 2023-04-27 14:57:00 +02:00 committed by GitHub
parent 804f9b947f
commit af43744006
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 175 additions and 133 deletions

View file

@ -186,16 +186,23 @@
}).shellHook;
};
checks = {
inherit
# Build the crate as part of `nix flake check` for convenience
system-manager
system-manager-clippy
system-manager-test;
basicTest = import ./test/nix/modules {
checks =
let
# The Aarch64 VM tests seem to hang on garnix, we disable them for now
enableVmTests = system != flake-utils.lib.system.aarch64-linux;
in
{
inherit
# Build the crate as part of `nix flake check` for convenience
system-manager
system-manager-clippy
system-manager-test;
} //
pkgs.lib.optionalAttrs enableVmTests (import ./test/nix/modules {
inherit system;
inherit (pkgs) lib;
system-manager = self;
};
};
}));
});
})
);
}