1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-24 03:09:35 +01:00

Run the Nix test suite with lazy trees enabled

This commit is contained in:
Eelco Dolstra 2025-06-11 22:23:28 +02:00
parent 3114862518
commit 92d90e2aeb
3 changed files with 12 additions and 0 deletions

View file

@ -220,6 +220,12 @@
'';
repl-completion = nixpkgsFor.${system}.native.callPackage ./tests/repl-completion.nix { };
lazyTrees =
nixpkgsFor.${system}.native.nixComponents2.nix-functional-tests.override {
pname = "nix-lazy-trees-tests";
lazyTrees = true;
};
/**
Checks for our packaging expressions.
This shouldn't build anything significant; just check that things

View file

@ -54,6 +54,7 @@ flake-registry = $TEST_ROOT/registry.json
show-trace = true
include nix.conf.extra
trusted-users = $(whoami)
${_NIX_TEST_EXTRA_CONFIG:-}
EOF
cat > "$NIX_CONF_DIR"/nix.conf.extra <<EOF

View file

@ -26,6 +26,9 @@
# For running the functional tests against a different pre-built Nix.
test-daemon ? null,
# Whether to run tests with lazy trees enabled.
lazyTrees ? false
}:
let
@ -95,6 +98,8 @@ mkMesonDerivation (
mkdir $out
'';
_NIX_TEST_EXTRA_CONFIG = lib.optionalString lazyTrees "lazy-trees = true";
meta = {
platforms = lib.platforms.unix;
};