From a4bc7e0b10f6cd3b93547f1dd20707e20aac4f7b Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Tue, 7 Jul 2026 12:38:42 +0200 Subject: scripts/check.sh: Compute the list of checks instead of hard-coding it --- scripts/check_get_tests.nix | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 scripts/check_get_tests.nix (limited to 'scripts/check_get_tests.nix') diff --git a/scripts/check_get_tests.nix b/scripts/check_get_tests.nix new file mode 100644 index 0000000..a39d300 --- /dev/null +++ b/scripts/check_get_tests.nix @@ -0,0 +1,16 @@ +let + get = input: (builtins.fetchTree input.locked).outPath; + + lock = (builtins.fromJSON (builtins.readFile ../flake.lock)).nodes; + + flake-compat = import (get lock.flake-compat) {src = ../.;}; + pkgs = import (get lock.nixpkgs) {}; + inherit (pkgs) lib; + + inherit (flake-compat) outputs; +in + lib.strings.concatStringsSep "\n" + (builtins.attrNames + (lib.filterAttrs + (name: test: test.meta.broken == false) + outputs.checks.x86_64-linux)) -- cgit v1.3.1