diff options
author | Robert Hensing <robert@roberthensing.nl> | 2024-02-14 16:57:43 +0100 |
---|---|---|
committer | Robert Hensing <robert@roberthensing.nl> | 2024-02-26 22:35:14 +0100 |
commit | bb036f248694dbeaf7f69122f701f9d9ff394c4d (patch) | |
tree | 17adeca48697fd1b7e70297736dc597ee76083ec /lib/tests | |
parent | f45844cb558bc261a3a4d91054fba81f5d6fedee (diff) |
lib/tests/release: Test lib.version in isolation
Diffstat (limited to 'lib/tests')
-rw-r--r-- | lib/tests/test-with-nix.nix | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/tests/test-with-nix.nix b/lib/tests/test-with-nix.nix index fd2e7532e697c..9d66b91cab428 100644 --- a/lib/tests/test-with-nix.nix +++ b/lib/tests/test-with-nix.nix @@ -53,6 +53,12 @@ pkgs.runCommand "nixpkgs-lib-tests-nix-${nix.version}" { echo "Running lib/tests/modules.sh" bash lib/tests/modules.sh + echo "Checking lib.version" + nix-instantiate lib -A version --eval || { + echo "lib.version does not evaluate when lib is isolated from the rest of the nixpkgs tree" + exit 1 + } + echo "Running lib/tests/filesystem.sh" TEST_LIB=$PWD/lib bash lib/tests/filesystem.sh |