From 67ef2657ff6e3e8ece62a7a08b4231573a052a15 Mon Sep 17 00:00:00 2001 From: Sergei Zimmerman Date: Thu, 14 Aug 2025 19:22:35 +0300 Subject: [PATCH] lib/tests/test-with-nix: run misc.nix tests in the derivation This would have allowed us to catch to fromTOML regression in [1] without waiting for the dogfooding on master, since previously these tests [2] were not run for the Nix/Lix under test - only the host nix. [1]: https://github.com/NixOS/nix/pull/13741 [2]: https://github.com/NixOS/nixpkgs/pull/433710 --- lib/tests/test-with-nix.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/tests/test-with-nix.nix b/lib/tests/test-with-nix.nix index ebbe5e0ae5cd..36db15ab32c8 100644 --- a/lib/tests/test-with-nix.nix +++ b/lib/tests/test-with-nix.nix @@ -71,6 +71,9 @@ pkgs.runCommand "nixpkgs-lib-tests-nix-${nix.version}" echo "Running lib/tests/systems.nix" [[ $(nix-instantiate --eval --strict lib/tests/systems.nix | tee /dev/stderr) == '[ ]' ]]; + echo "Running lib/tests/misc.nix" + [[ $(nix-instantiate --eval --strict lib/tests/misc.nix | tee /dev/stderr) == '[ ]' ]]; + mkdir $out echo success > $out/${nix.version} ''