depot/third_party/nixpkgs/nixos/tests/photonvision.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

21 lines
393 B
Nix

import ./make-test-python.nix ({ pkgs, lib, ... }:
{
name = "photonvision";
nodes = {
machine = { pkgs, ... }: {
services.photonvision = {
enable = true;
};
};
};
testScript = ''
start_all()
machine.wait_for_unit("photonvision.service")
machine.wait_for_open_port(5800)
'';
meta.maintainers = with lib.maintainers; [ max-niederman ];
})