mirror of
https://github.com/NixOS/nix.git
synced 2025-11-13 22:12:43 +01:00
When `NIX_DAEMON_PACKAGE` is set, make all the tests use the Nix daemon.
That way we can test every piece of Nix functionality both with and
without the daemon.
Tests for which using the daemon isn’t possible or doesn’t make sens can
selectively be disabled with `needLocalStore`
(cherry picked from commit addacfce4a)
11 lines
269 B
Bash
11 lines
269 B
Bash
source common.sh
|
|
|
|
# 27ce722638 required some incompatible changes to the nix file, so skip this
|
|
# tests for the older versions
|
|
requireDaemonNewerThan "2.4pre20210622"
|
|
|
|
clearStore
|
|
|
|
outPath=$(nix-build structured-attrs.nix --no-out-link)
|
|
|
|
[[ $(cat $outPath/foo) = bar ]]
|