lix/tests/remote-store-old-daemon.sh
regnat 5716345adf Add a test ensuring compatibility with an old daemon
This requires adding `nix` to its own closure which is a bit unfortunate,
but as it is optional (the test will be disabled if `OUTER_NIX` is unset) it
shouldn't be too much of an issue.

(Ideally this should go in another derivation so that we can build Nix and run
the test independently, but as the tests are running in the same derivation
as the build it's a bit complicated to do so).
2021-03-16 14:20:41 +01:00

8 lines
251 B
Bash

# Test that the new Nix can properly talk to an old daemon.
# If `$OUTER_NIX` isn't set (e.g. when bootsraping), just skip this test
if [[ -n "$OUTER_NIX" ]]; then
export NIX_DAEMON_COMMAND=$OUTER_NIX/bin/nix-daemon
source remote-store.sh
fi