[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
37/376: Add a test for the SSH substituter
From: |
Ludovic Courtès |
Subject: |
37/376: Add a test for the SSH substituter |
Date: |
Wed, 28 Jan 2015 22:03:53 +0000 |
civodul pushed a commit to tag 1.8
in repository guix.
commit 66dbc0fdeebf509c5d919e9c12b2645136d6deeb
Author: Eelco Dolstra <address@hidden>
Date: Thu Jul 10 01:50:29 2014 +0200
Add a test for the SSH substituter
---
tests/nix-copy-closure.nix | 13 +++++++++++--
1 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/tests/nix-copy-closure.nix b/tests/nix-copy-closure.nix
index bfd7084..1418c65 100644
--- a/tests/nix-copy-closure.nix
+++ b/tests/nix-copy-closure.nix
@@ -4,7 +4,7 @@
with import <nixpkgs/nixos/lib/testing.nix> { inherit system; };
-makeTest (let pkgA = pkgs.aterm; pkgB = pkgs.wget; in {
+makeTest (let pkgA = pkgs.aterm; pkgB = pkgs.wget; pkgC = pkgs.hello; in {
nodes =
{ client =
@@ -12,13 +12,14 @@ makeTest (let pkgA = pkgs.aterm; pkgB = pkgs.wget; in {
{ virtualisation.writableStore = true;
virtualisation.pathsInNixDB = [ pkgA ];
nix.package = nix;
+ nix.binaryCaches = [ ];
};
server =
{ config, pkgs, ... }:
{ services.openssh.enable = true;
virtualisation.writableStore = true;
- virtualisation.pathsInNixDB = [ pkgB ];
+ virtualisation.pathsInNixDB = [ pkgB pkgC ];
nix.package = nix;
};
};
@@ -49,6 +50,14 @@ makeTest (let pkgA = pkgs.aterm; pkgB = pkgs.wget; in {
$client->fail("nix-store --check-validity ${pkgB}");
$client->succeed("nix-copy-closure --from server --gzip ${pkgB} >&2");
$client->succeed("nix-store --check-validity ${pkgB}");
+
+ # Copy the closure of package C via the SSH substituter.
+ $client->fail("nix-store -r ${pkgC}");
+ $client->succeed(
+ "nix-store --option use-ssh-substituter true"
+ . " --option ssh-substituter-hosts address@hidden"
+ . " -r ${pkgC} >&2");
+ $client->succeed("nix-store --check-validity ${pkgC}");
'';
})
- 27/376: Add importNative primop, (continued)
- 27/376: Add importNative primop, Ludovic Courtès, 2015/01/28
- 29/376: Merge branch 'shlevy-import-native', Ludovic Courtès, 2015/01/28
- 20/376: == operator: Ignore string context, Ludovic Courtès, 2015/01/28
- 30/376: allow-arbitrary-code-during-evaluation -> allow-unsafe-native-code-during-evaluation, Ludovic Courtès, 2015/01/28
- 32/376: Style fix, Ludovic Courtès, 2015/01/28
- 24/376: Drop ImportError and FindError, Ludovic Courtès, 2015/01/28
- 31/376: Add `--json` argument to `nix-instantiate`, Ludovic Courtès, 2015/01/28
- 33/376: Manual: html -> xhtml, Ludovic Courtès, 2015/01/28
- 25/376: Fix bogus warnings about dumping large paths, Ludovic Courtès, 2015/01/28
- 36/376: Fix compilation error on some versions of GCC, Ludovic Courtès, 2015/01/28
- 37/376: Add a test for the SSH substituter,
Ludovic Courtès <=
- 38/376: Fix security hole in ‘nix-store --serve’, Ludovic Courtès, 2015/01/28
- 35/376: Don't build on Ubuntu 10.10, Ludovic Courtès, 2015/01/28
- 34/376: Add builtin function ‘fromJSON’, Ludovic Courtès, 2015/01/28
- 41/376: nix-copy-closure: Restore compression and the progress viewer, Ludovic Courtès, 2015/01/28
- 40/376: Remove maybeVfork, Ludovic Courtès, 2015/01/28
- 39/376: nix-copy-closure: Fix race condition, Ludovic Courtès, 2015/01/28
- 23/376: findFile: Realise the context of the path attributes, Ludovic Courtès, 2015/01/28
- 44/376: nix-copy-closure: Fix --dry-run, Ludovic Courtès, 2015/01/28
- 46/376: Fix use of sysread, Ludovic Courtès, 2015/01/28
- 45/376: nix-copy-closure -s: Do substitutions via ‘nix-store --serve’, Ludovic Courtès, 2015/01/28