Merge pull request #277579 from nikstur/openssh-tests-in-separate-derivation
openssh: put tests into passthru
This commit is contained in:
commit
c7411f7d53
@ -78,6 +78,7 @@ in rec {
|
||||
nginx
|
||||
nodejs
|
||||
openssh
|
||||
opensshTest
|
||||
php
|
||||
postgresql
|
||||
python
|
||||
@ -139,6 +140,7 @@ in rec {
|
||||
"nixos.tests.simple"
|
||||
"nixpkgs.jdk"
|
||||
"nixpkgs.tests-stdenv-gcc-stageCompare"
|
||||
"nixpkgs.opensshTest"
|
||||
])
|
||||
];
|
||||
};
|
||||
|
@ -36,7 +36,7 @@
|
||||
, isNixos ? stdenv.hostPlatform.isLinux
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
stdenv.mkDerivation (finalAttrs: {
|
||||
inherit pname version src;
|
||||
|
||||
patches = [
|
||||
@ -111,7 +111,7 @@ stdenv.mkDerivation {
|
||||
|
||||
hardeningEnable = [ "pie" ];
|
||||
|
||||
doCheck = true;
|
||||
doCheck = false;
|
||||
enableParallelChecking = false;
|
||||
nativeCheckInputs = [ openssl ] ++ lib.optional (!stdenv.isDarwin) hostname;
|
||||
preCheck = lib.optionalString (stdenv.hostPlatform == stdenv.buildPlatform) ''
|
||||
@ -181,7 +181,11 @@ stdenv.mkDerivation {
|
||||
inherit withKerberos;
|
||||
tests = {
|
||||
borgbackup-integration = nixosTests.borgbackup;
|
||||
openssh = nixosTests.openssh;
|
||||
nixosTest = nixosTests.openssh;
|
||||
openssh = finalAttrs.finalPackage.overrideAttrs (previousAttrs: {
|
||||
pname = previousAttrs.pname + "-test";
|
||||
doCheck = true;
|
||||
});
|
||||
};
|
||||
};
|
||||
|
||||
@ -194,4 +198,4 @@ stdenv.mkDerivation {
|
||||
maintainers = (extraMeta.maintainers or []) ++ (with maintainers; [ eelco aneeshusa ]);
|
||||
mainProgram = "ssh";
|
||||
} // extraMeta;
|
||||
}
|
||||
})
|
||||
|
@ -11235,6 +11235,8 @@ with pkgs;
|
||||
etcDir = "/etc/ssh";
|
||||
};
|
||||
|
||||
opensshTest = openssh.tests.openssh;
|
||||
|
||||
opensshWithKerberos = openssh.override {
|
||||
withKerberos = true;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user