mirror of
https://github.com/NixOS/nix
synced 2025-07-08 02:43:54 +02:00
tests/functional: Enable more tests in NixOS VM
This commit is contained in:
parent
f0abe4d8f0
commit
648302b833
38 changed files with 71 additions and 104 deletions
|
@ -45,13 +45,18 @@ nix-build -o "$RESULT" check-refs.nix -A test7
|
|||
# test10 should succeed (no disallowed references).
|
||||
nix-build -o "$RESULT" check-refs.nix -A test10
|
||||
|
||||
if isDaemonNewer 2.12pre20230103; then
|
||||
if ! isDaemonNewer 2.16.0; then
|
||||
enableFeatures discard-references
|
||||
restartDaemon
|
||||
if ! isTestOnNixOS; then
|
||||
# If we have full control over our store, we can test some more things.
|
||||
|
||||
if isDaemonNewer 2.12pre20230103; then
|
||||
if ! isDaemonNewer 2.16.0; then
|
||||
enableFeatures discard-references
|
||||
restartDaemon
|
||||
fi
|
||||
|
||||
# test11 should succeed.
|
||||
test11=$(nix-build -o "$RESULT" check-refs.nix -A test11)
|
||||
[[ -z $(nix-store -q --references "$test11") ]]
|
||||
fi
|
||||
|
||||
# test11 should succeed.
|
||||
test11=$(nix-build -o "$RESULT" check-refs.nix -A test11)
|
||||
[[ -z $(nix-store -q --references "$test11") ]]
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue