mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-09-11 07:15:54 +03:00
nixos/tests/photonvision: init
This commit is contained in:
parent
3609e216a4
commit
ea7101783c
@ -679,6 +679,7 @@ in {
|
|||||||
pgjwt = handleTest ./pgjwt.nix {};
|
pgjwt = handleTest ./pgjwt.nix {};
|
||||||
pgmanage = handleTest ./pgmanage.nix {};
|
pgmanage = handleTest ./pgmanage.nix {};
|
||||||
phosh = handleTest ./phosh.nix {};
|
phosh = handleTest ./phosh.nix {};
|
||||||
|
photonvision = handleTest ./photonvision.nix {};
|
||||||
photoprism = handleTest ./photoprism.nix {};
|
photoprism = handleTest ./photoprism.nix {};
|
||||||
php = handleTest ./php {};
|
php = handleTest ./php {};
|
||||||
php81 = handleTest ./php { php = pkgs.php81; };
|
php81 = handleTest ./php { php = pkgs.php81; };
|
||||||
|
21
nixos/tests/photonvision.nix
Normal file
21
nixos/tests/photonvision.nix
Normal file
@ -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 ];
|
||||||
|
})
|
||||||
|
|
@ -5,6 +5,7 @@
|
|||||||
, temurin-jre-bin-11
|
, temurin-jre-bin-11
|
||||||
, bash
|
, bash
|
||||||
, suitesparse
|
, suitesparse
|
||||||
|
, nixosTests
|
||||||
}:
|
}:
|
||||||
|
|
||||||
stdenv.mkDerivation rec {
|
stdenv.mkDerivation rec {
|
||||||
@ -39,6 +40,10 @@ stdenv.mkDerivation rec {
|
|||||||
runHook postInstall
|
runHook postInstall
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
passthru.tests = {
|
||||||
|
starts-web-server = nixosTests.photonvision;
|
||||||
|
};
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "The free, fast, and easy-to-use computer vision solution for the FIRST Robotics Competition";
|
description = "The free, fast, and easy-to-use computer vision solution for the FIRST Robotics Competition";
|
||||||
homepage = "https://photonvision.org/";
|
homepage = "https://photonvision.org/";
|
||||||
|
Loading…
Reference in New Issue
Block a user