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:
parent
3114862518
commit
92d90e2aeb
3 changed files with 12 additions and 0 deletions
|
|
@ -220,6 +220,12 @@
|
||||||
'';
|
'';
|
||||||
repl-completion = nixpkgsFor.${system}.native.callPackage ./tests/repl-completion.nix { };
|
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.
|
Checks for our packaging expressions.
|
||||||
This shouldn't build anything significant; just check that things
|
This shouldn't build anything significant; just check that things
|
||||||
|
|
|
||||||
|
|
@ -54,6 +54,7 @@ flake-registry = $TEST_ROOT/registry.json
|
||||||
show-trace = true
|
show-trace = true
|
||||||
include nix.conf.extra
|
include nix.conf.extra
|
||||||
trusted-users = $(whoami)
|
trusted-users = $(whoami)
|
||||||
|
${_NIX_TEST_EXTRA_CONFIG:-}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
cat > "$NIX_CONF_DIR"/nix.conf.extra <<EOF
|
cat > "$NIX_CONF_DIR"/nix.conf.extra <<EOF
|
||||||
|
|
|
||||||
|
|
@ -26,6 +26,9 @@
|
||||||
|
|
||||||
# For running the functional tests against a different pre-built Nix.
|
# For running the functional tests against a different pre-built Nix.
|
||||||
test-daemon ? null,
|
test-daemon ? null,
|
||||||
|
|
||||||
|
# Whether to run tests with lazy trees enabled.
|
||||||
|
lazyTrees ? false
|
||||||
}:
|
}:
|
||||||
|
|
||||||
let
|
let
|
||||||
|
|
@ -95,6 +98,8 @@ mkMesonDerivation (
|
||||||
mkdir $out
|
mkdir $out
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
_NIX_TEST_EXTRA_CONFIG = lib.optionalString lazyTrees "lazy-trees = true";
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
platforms = lib.platforms.unix;
|
platforms = lib.platforms.unix;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue