Compare commits

...

2 Commits

Author SHA1 Message Date
Michael Hoang
01c9432cc5 checks/installation: don't hardcode system 2025-03-31 16:20:54 +09:00
Michael Hoang
f62e9db126 wip! fix all checks on aarch64-linux 2025-03-31 16:20:54 +09:00
2 changed files with 5 additions and 6 deletions

View File

@@ -23,7 +23,6 @@
environment.etc."install-successful".text = "ok"; environment.etc."install-successful".text = "ok";
nixpkgs.hostPlatform = "x86_64-linux";
boot.consoleLogLevel = lib.mkForce 100; boot.consoleLogLevel = lib.mkForce 100;
boot.kernelParams = [ "boot.shell_on_fail" ]; boot.kernelParams = [ "boot.shell_on_fail" ];
@@ -89,9 +88,9 @@
let let
dependencies = [ dependencies = [
self self
self.nixosConfigurations.test-install-machine.config.system.build.toplevel self.clanInternals.machines.${pkgs.hostPlatform.system}.test-install-machine.config.system.build.toplevel
self.nixosConfigurations.test-install-machine.config.system.build.diskoScript self.clanInternals.machines.${pkgs.hostPlatform.system}.test-install-machine.config.system.build.diskoScript
self.nixosConfigurations.test-install-machine.config.system.clan.deployment.file self.clanInternals.machines.${pkgs.hostPlatform.system}.test-install-machine.config.system.clan.deployment.file
pkgs.bash.drvPath pkgs.bash.drvPath
pkgs.stdenv.drvPath pkgs.stdenv.drvPath
pkgs.nixos-anywhere pkgs.nixos-anywhere
@@ -120,7 +119,7 @@
# vm-test-run-test-installation> new_machine: QEMU running (pid 80) # vm-test-run-test-installation> new_machine: QEMU running (pid 80)
# vm-test-run-test-installation> new_machine: Guest root shell did not produce any data yet... # vm-test-run-test-installation> new_machine: Guest root shell did not produce any data yet...
# vm-test-run-test-installation> new_machine: To debug, enter the VM and run 'systemctl status backdoor.service'. # vm-test-run-test-installation> new_machine: To debug, enter the VM and run 'systemctl status backdoor.service'.
checks = pkgs.lib.mkIf (pkgs.stdenv.isLinux && !pkgs.stdenv.isAarch64) { checks = pkgs.lib.mkIf pkgs.stdenv.isLinux {
test-installation = (import ../lib/test-base.nix) { test-installation = (import ../lib/test-base.nix) {
name = "test-installation"; name = "test-installation";
nodes.target = { nodes.target = {

View File

@@ -23,7 +23,7 @@
... ...
}: }:
{ {
checks = pkgs.lib.mkIf (pkgs.stdenv.isLinux && !pkgs.stdenv.isAarch64) { checks = pkgs.lib.mkIf pkgs.stdenv.isLinux {
test-morph = (import ../lib/test-base.nix) { test-morph = (import ../lib/test-base.nix) {
name = "morph"; name = "morph";