blob: e70690ee02c5f832a395f399af0755e0ea987371 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
{ depot, pkgs, lib, ... }:
let
nixosTestDrv = pkgs.nixosTest {
name = "tvix-daemon-vm-test";
nodes.machine = { config, pkgs, ... }: {
environment.systemPackages = [
(pkgs.writers.writeBashBin "poke-daemon" ''
NIX_REMOTE=unix:///nix/var/nix/daemon-socket/socket nix-instantiate -E '"''${/etc/nscd.conf}"'
'')
];
systemd.services.nix-daemon.serviceConfig.ExecStart = [
""
"${depot.users.picnoir.tvix-daemon.tvix-daemon}/bin/tvix-daemon"
];
};
testScript = ''
machine.wait_for_unit("multi-user.target")
machine.succeed("poke-daemon")
'';
};
in
nixosTestDrv // {
# The test fails for now. TOREMOVE when we reach the stage where we
# can add stuff to the store.
meta.ci.skip = true;
}
|