add test for remote ssh commands

This commit is contained in:
Jörg Thalheim
2023-08-09 16:38:08 +02:00
parent f8f9cd457a
commit a17baa4861
8 changed files with 356 additions and 4 deletions

View File

@@ -16,6 +16,8 @@
, pytest
, pytest-cov
, pytest-subprocess
, openssh
, stdenv
, wheel
}:
let
@@ -26,6 +28,8 @@ let
pytest-cov
pytest-subprocess
mypy
openssh
stdenv.cc
];
checkPython = python3.withPackages (_ps: dependencies ++ testDependencies);
@@ -50,7 +54,7 @@ python3.pkgs.buildPythonPackage {
'';
clan-pytest = runCommand "clan-tests"
{
nativeBuildInputs = [ age zerotierone bubblewrap sops nix ];
nativeBuildInputs = [ age zerotierone bubblewrap sops nix openssh stdenv.cc ];
} ''
cp -r ${./.} ./src
chmod +w -R ./src