From a8697a6254b76c6face64c68c72ffff92147060b Mon Sep 17 00:00:00 2001 From: derped Date: Sat, 30 Nov 2024 17:19:03 +0100 Subject: [PATCH] Allow selecting a subset of tests. --- default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/default.nix b/default.nix index 9bab938..4c6ced4 100644 --- a/default.nix +++ b/default.nix @@ -19,7 +19,8 @@ in program = (pkgs.writeScript "nix-unit" '' #!/usr/bin/env bash - ${nix-unit}/bin/nix-unit --flake '.#tests' + TEST_TARGET="tests''${1:+.}''${1}"; + ${nix-unit}/bin/nix-unit --flake ".#''${TEST_TARGET}"; '').outPath; }; };