about summary refs log tree commit diff
path: root/nixos/tests
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2024-03-24 22:05:36 +0100
committerGitHub <noreply@github.com>2024-03-24 22:05:36 +0100
commit0e1cac923d7c9287106e76d565c0d0d7218371f1 (patch)
tree077edc2ff0587c26bc903dd3f4cce69786444ea1 /nixos/tests
parent83a2696de8a93dea32b8d5ba63602f8e3b2edf28 (diff)
parentea7101783c474ba072fa565e3ecc0e5c530ef61b (diff)
downloadnixlib-0e1cac923d7c9287106e76d565c0d0d7218371f1.tar
nixlib-0e1cac923d7c9287106e76d565c0d0d7218371f1.tar.gz
nixlib-0e1cac923d7c9287106e76d565c0d0d7218371f1.tar.bz2
nixlib-0e1cac923d7c9287106e76d565c0d0d7218371f1.tar.lz
nixlib-0e1cac923d7c9287106e76d565c0d0d7218371f1.tar.xz
nixlib-0e1cac923d7c9287106e76d565c0d0d7218371f1.tar.zst
nixlib-0e1cac923d7c9287106e76d565c0d0d7218371f1.zip
Merge pull request #286685 from max-niederman/photonvision
photonvision: init at 2024.2.3
Diffstat (limited to 'nixos/tests')
-rw-r--r--nixos/tests/all-tests.nix1
-rw-r--r--nixos/tests/photonvision.nix21
2 files changed, 22 insertions, 0 deletions
diff --git a/nixos/tests/all-tests.nix b/nixos/tests/all-tests.nix
index 2c08fdba6c98..604ddf5469dd 100644
--- a/nixos/tests/all-tests.nix
+++ b/nixos/tests/all-tests.nix
@@ -695,6 +695,7 @@ in {
   pgmanage = handleTest ./pgmanage.nix {};
   pgvecto-rs = handleTest ./pgvecto-rs.nix {};
   phosh = handleTest ./phosh.nix {};
+  photonvision = handleTest ./photonvision.nix {};
   photoprism = handleTest ./photoprism.nix {};
   php = handleTest ./php {};
   php81 = handleTest ./php { php = pkgs.php81; };
diff --git a/nixos/tests/photonvision.nix b/nixos/tests/photonvision.nix
new file mode 100644
index 000000000000..2cadaa4bc02e
--- /dev/null
+++ b/nixos/tests/photonvision.nix
@@ -0,0 +1,21 @@
+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 ];
+})
+