graylog: expose NixOS test via passthru

With this change, our ofborg CI will run the integration test as well if
a PR changes the `graylog` package.
This commit is contained in:
Maximilian Bosch 2020-10-13 10:48:57 +02:00
parent 33b7529b01
commit 6baf442a9e
No known key found for this signature in database
GPG key ID: 091DBF4D1FC46B8E

View file

@ -1,4 +1,4 @@
{ stdenv, fetchurl, makeWrapper, jre_headless }:
{ stdenv, fetchurl, makeWrapper, jre_headless, nixosTests }:
stdenv.mkDerivation rec {
pname = "graylog";
@ -15,6 +15,8 @@ stdenv.mkDerivation rec {
buildInputs = [ makeWrapper ];
makeWrapperArgs = [ "--prefix" "PATH" ":" "${jre_headless}/bin" ];
passthru.tests = { inherit (nixosTests) graylog; };
installPhase = ''
mkdir -p $out
cp -r {graylog.jar,lib,bin,plugin} $out