498beb54da
Adding a VM integration test setup for tvix-daemon. This test acts as our first milestone: implementing enough daemon operations to be able to add a new store path to tvix-store. The test is expected to fail for now. We don't want to run it on CI yet. Change-Id: I2bd8eb9a07c5de2ef91099e10fcac23c087b880b Reviewed-on: https://cl.tvl.fyi/c/depot/+/11199 Tested-by: BuildkiteCI Reviewed-by: flokli <flokli@flokli.de>
28 lines
790 B
Nix
28 lines
790 B
Nix
{ 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;
|
|
}
|