diff --git a/.github/workflows/flake_unittests.yml b/.github/workflows/flake_evaltests.yml similarity index 81% rename from .github/workflows/flake_unittests.yml rename to .github/workflows/flake_evaltests.yml index 1c8ce8ca..893d1751 100644 --- a/.github/workflows/flake_unittests.yml +++ b/.github/workflows/flake_evaltests.yml @@ -1,4 +1,4 @@ -name: Nix Flake Unit Tests +name: Nix Flake Eval Tests on: push: @@ -34,7 +34,7 @@ jobs: access-tokens = github.com=${{ secrets.GITHUB_TOKEN }} experimental-features = nix-command flakes - - name: Run Nix Flake Unit Tests + - name: Run Nix Flake Eval Tests run: | - echo 'Flake Unit Tests' - nix eval .#unitTests --show-trace --print-build-logs --verbose + echo 'Flake Eval Tests' + nix eval .#evalTests --show-trace --print-build-logs --verbose diff --git a/outputs/README.md b/outputs/README.md index a989d2a1..94d7f425 100644 --- a/outputs/README.md +++ b/outputs/README.md @@ -12,7 +12,7 @@ otherwise, it will be difficult to manage and maintain them. Unit Tests for all flake outputs(only NixOS systems currently). ```bash -nix eval .#unitTests --show-trace --print-build-logs --verbose +nix eval .#evalTests --show-trace --print-build-logs --verbose ``` ## Overview diff --git a/outputs/aarch64-linux/default.nix b/outputs/aarch64-linux/default.nix index 7653b4c3..c800eee1 100644 --- a/outputs/aarch64-linux/default.nix +++ b/outputs/aarch64-linux/default.nix @@ -31,7 +31,7 @@ in inherit data; # for debugging purposes # NixOS's unit tests. - unitTests = haumea.lib.loadEvalTests { + evalTests = haumea.lib.loadEvalTests { src = ./tests; inputs = args // {inherit outputs;}; }; diff --git a/outputs/default.nix b/outputs/default.nix index ef2e1248..a3f48513 100644 --- a/outputs/default.nix +++ b/outputs/default.nix @@ -53,7 +53,7 @@ in { debugAttrs = {inherit nixosSystems darwinSystems allSystems allSystemNames;}; # Unit Tests for all NixOS systems. - unitTests = lib.lists.all (it: it.unitTests == {}) nixosSystemValues; + evalTests = lib.lists.all (it: it.evalTests == {}) nixosSystemValues; # NixOS Hosts nixosConfigurations = diff --git a/outputs/riscv64-linux/default.nix b/outputs/riscv64-linux/default.nix index 7653b4c3..c800eee1 100644 --- a/outputs/riscv64-linux/default.nix +++ b/outputs/riscv64-linux/default.nix @@ -31,7 +31,7 @@ in inherit data; # for debugging purposes # NixOS's unit tests. - unitTests = haumea.lib.loadEvalTests { + evalTests = haumea.lib.loadEvalTests { src = ./tests; inputs = args // {inherit outputs;}; }; diff --git a/outputs/x86_64-linux/default.nix b/outputs/x86_64-linux/default.nix index a5c56b14..92a0923a 100644 --- a/outputs/x86_64-linux/default.nix +++ b/outputs/x86_64-linux/default.nix @@ -30,7 +30,7 @@ in inherit data; # for debugging purposes # NixOS's unit tests. - unitTests = haumea.lib.loadEvalTests { + evalTests = haumea.lib.loadEvalTests { src = ./tests; inputs = args // {inherit outputs;}; };