Commit 20278036 authored by John Titor's avatar John Titor Committed by Masum Reza
Browse files

nixosTest.lact: init

parent 81fc14bc
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -714,6 +714,7 @@ in
  kthxbye = runTest ./kthxbye.nix;
  kubernetes = handleTestOn [ "x86_64-linux" ] ./kubernetes { };
  kubo = import ./kubo { inherit recurseIntoAttrs runTest; };
  lact = runTest ./lact.nix;
  ladybird = runTest ./ladybird.nix;
  languagetool = runTest ./languagetool.nix;
  lanraragi = runTest ./lanraragi.nix;

nixos/tests/lact.nix

0 → 100644
+18 −0
Original line number Diff line number Diff line
{ pkgs, ... }:
{
  name = "lact";
  meta = {
    inherit (pkgs.lact.meta) maintainers;
  };

  nodes.machine =
    { config, pkgs, ... }:
    {
      services.lact.enable = true;
    };

  testScript = ''
    machine.wait_for_unit("lactd.service")
    machine.wait_for_file("/run/lactd.sock")
  '';
}
+4 −0
Original line number Diff line number Diff line
@@ -14,6 +14,7 @@
  coreutils,
  systemdMinimal,
  nix-update-script,
  nixosTests,
  hwdata,
  fuse3,
  autoAddDriverRunpath,
@@ -117,6 +118,9 @@ rustPlatform.buildRustPackage (finalAttrs: {
  '';

  passthru.updateScript = nix-update-script { };
  passthru.tests = {
    inherit (nixosTests) lact;
  };

  meta = {
    description = "Linux GPU Configuration Tool for AMD and NVIDIA";