Merge pull request #118442 from Ekleog/nixos-tests

Add nixos tests with names starting by A or B to all relevant packages
This commit is contained in:
Léo Gaspard 2021-05-09 00:37:26 +02:00 committed by GitHub
commit 08b00c20e0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
19 changed files with 94 additions and 10 deletions

View File

@ -16,6 +16,7 @@
, python3 , python3
, qrencode , qrencode
, libevent , libevent
, nixosTests
, withGui , withGui
, withWallet ? true , withWallet ? true
}: }:
@ -81,6 +82,10 @@ stdenv.mkDerivation rec {
enableParallelBuilding = true; enableParallelBuilding = true;
passthru.tests = {
smoke-test = nixosTests.bitcoind;
};
meta = { meta = {
description = "Peer-to-peer electronic cash system"; description = "Peer-to-peer electronic cash system";
longDescription = '' longDescription = ''

View File

@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, coreutils }: { lib, stdenv, fetchFromGitHub, coreutils, nixosTests }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
pname = "3proxy"; pname = "3proxy";
@ -17,6 +17,10 @@ stdenv.mkDerivation rec {
"DESTDIR=${placeholder "out"}" "DESTDIR=${placeholder "out"}"
]; ];
passthru.tests = {
smoke-test = nixosTests._3proxy;
};
meta = with lib; { meta = with lib; {
description = "Tiny free proxy server"; description = "Tiny free proxy server";
homepage = "https://github.com/z3APA3A/3proxy"; homepage = "https://github.com/z3APA3A/3proxy";

View File

@ -1,4 +1,4 @@
{ lib, stdenv, fetchgit, libowfat, zlib }: { lib, stdenv, fetchgit, libowfat, zlib, nixosTests }:
stdenv.mkDerivation { stdenv.mkDerivation {
name = "opentracker-2018-05-26"; name = "opentracker-2018-05-26";
@ -23,6 +23,10 @@ stdenv.mkDerivation {
runHook postInstall runHook postInstall
''; '';
passthru.tests = {
bittorrent-integration = nixosTests.bittorrent;
};
meta = with lib; { meta = with lib; {
homepage = "https://erdgeist.org/arts/software/opentracker/"; homepage = "https://erdgeist.org/arts/software/opentracker/";
license = licenses.beerware; license = licenses.beerware;

View File

@ -17,6 +17,7 @@
, wrapGAppsHook , wrapGAppsHook
, enableQt ? false , enableQt ? false
, qt5 , qt5
, nixosTests
, enableSystemd ? stdenv.isLinux , enableSystemd ? stdenv.isLinux
, enableDaemon ? true , enableDaemon ? true
, enableCli ? true , enableCli ? true
@ -74,6 +75,10 @@ in stdenv.mkDerivation {
NIX_LDFLAGS = lib.optionalString stdenv.isDarwin "-framework CoreFoundation"; NIX_LDFLAGS = lib.optionalString stdenv.isDarwin "-framework CoreFoundation";
passthru.tests = {
smoke-test = nixosTests.bittorrent;
};
meta = { meta = {
description = "A fast, easy and free BitTorrent client"; description = "A fast, easy and free BitTorrent client";
longDescription = '' longDescription = ''

View File

@ -14,6 +14,7 @@
, withpcre2 ? true , withpcre2 ? true
, sendEmailSupport , sendEmailSupport
, darwin , darwin
, nixosTests
, withLibsecret ? false , withLibsecret ? false
, pkg-config, glib, libsecret , pkg-config, glib, libsecret
, gzip # needed at runtime by gitweb.cgi , gzip # needed at runtime by gitweb.cgi
@ -334,6 +335,9 @@ stdenv.mkDerivation {
stripDebugList = [ "lib" "libexec" "bin" "share/git/contrib/credential/libsecret" ]; stripDebugList = [ "lib" "libexec" "bin" "share/git/contrib/credential/libsecret" ];
passthru.tests = {
buildbot-integration = nixosTests.buildbot;
};
meta = { meta = {
homepage = "https://git-scm.com/"; homepage = "https://git-scm.com/";

View File

@ -1,5 +1,6 @@
{ fetchurl, fetchpatch, lib, stdenv, pkg-config, libdaemon, dbus, perlPackages { fetchurl, fetchpatch, lib, stdenv, pkg-config, libdaemon, dbus, perlPackages
, expat, gettext, intltool, glib, libiconv, writeShellScriptBin, libevent , expat, gettext, intltool, glib, libiconv, writeShellScriptBin, libevent
, nixosTests
, gtk3Support ? false, gtk3 ? null , gtk3Support ? false, gtk3 ? null
, qt4 ? null , qt4 ? null
, qt4Support ? false , qt4Support ? false
@ -77,6 +78,11 @@ stdenv.mkDerivation rec {
ln -s avahi-compat-howl.pc $out/lib/pkgconfig/howl.pc ln -s avahi-compat-howl.pc $out/lib/pkgconfig/howl.pc
*/ */
passthru.tests = {
smoke-test = nixosTests.avahi;
smoke-test-resolved = nixosTests.avahi-with-resolved;
};
meta = with lib; { meta = with lib; {
description = "mDNS/DNS-SD implementation"; description = "mDNS/DNS-SD implementation";
homepage = "http://avahi.org"; homepage = "http://avahi.org";

View File

@ -1,4 +1,4 @@
{ lib, menhir, easy-format, fetchurl, buildDunePackage, which, re }: { lib, menhir, easy-format, fetchurl, buildDunePackage, which, re, nixosTests }:
buildDunePackage rec { buildDunePackage rec {
pname = "atd"; pname = "atd";
@ -18,6 +18,10 @@ buildDunePackage rec {
doCheck = true; doCheck = true;
passthru.tests = {
smoke-test = nixosTests.atd;
};
meta = with lib; { meta = with lib; {
homepage = "https://github.com/mjambon/atd"; homepage = "https://github.com/mjambon/atd";
description = "Syntax for cross-language type definitions"; description = "Syntax for cross-language type definitions";

View File

@ -1,5 +1,5 @@
{ lib, buildPythonPackage, fetchPypi, buildbot, setuptoolsTrial, mock, twisted, { lib, buildPythonPackage, fetchPypi, buildbot, setuptoolsTrial, mock, twisted,
future, coreutils }: future, coreutils, nixosTests }:
buildPythonPackage (rec { buildPythonPackage (rec {
pname = "buildbot-worker"; pname = "buildbot-worker";
@ -19,6 +19,10 @@ buildPythonPackage (rec {
--replace /usr/bin/tail "${coreutils}/bin/tail" --replace /usr/bin/tail "${coreutils}/bin/tail"
''; '';
passthru.tests = {
smoke-test = nixosTests.buildbot;
};
meta = with lib; { meta = with lib; {
homepage = "https://buildbot.net/"; homepage = "https://buildbot.net/";
description = "Buildbot Worker Daemon"; description = "Buildbot Worker Daemon";

View File

@ -6,6 +6,7 @@
, geckodriver , geckodriver
, urllib3 , urllib3
, xorg , xorg
, nixosTests
}: }:
@ -47,6 +48,10 @@ buildPythonPackage rec {
cp -v x_ignore_nofocus.so selenium/webdriver/firefox/${if stdenv.is64bit then "amd64" else "x86"}/ cp -v x_ignore_nofocus.so selenium/webdriver/firefox/${if stdenv.is64bit then "amd64" else "x86"}/
''; '';
passthru.tests = {
testing-bitwarden = nixosTests.bitwarden;
};
meta = with lib; { meta = with lib; {
description = "The selenium package is used to automate web browser interaction from Python"; description = "The selenium package is used to automate web browser interaction from Python";
homepage = "http://www.seleniumhq.org"; homepage = "http://www.seleniumhq.org";

View File

@ -1,5 +1,6 @@
{ fetchFromGitHub, lib, buildGoModule, { fetchFromGitHub, lib, buildGoModule,
makeWrapper, coreutils, git, openssh, bash, gnused, gnugrep }: makeWrapper, coreutils, git, openssh, bash, gnused, gnugrep,
nixosTests }:
buildGoModule rec { buildGoModule rec {
name = "buildkite-agent-${version}"; name = "buildkite-agent-${version}";
version = "3.29.0"; version = "3.29.0";
@ -30,6 +31,10 @@ buildGoModule rec {
--prefix PATH : '${lib.makeBinPath [ openssh git coreutils gnused gnugrep ]}' --prefix PATH : '${lib.makeBinPath [ openssh git coreutils gnused gnugrep ]}'
''; '';
passthru.tests = {
smoke-test = nixosTests.buildkite-agents;
};
meta = with lib; { meta = with lib; {
description = "Build runner for buildkite.com"; description = "Build runner for buildkite.com";
longDescription = '' longDescription = ''

View File

@ -1,4 +1,4 @@
{ lib, stdenv, fetchurl, installShellFiles }: { lib, stdenv, fetchurl, installShellFiles, nixosTests }:
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
version = "1.12"; version = "1.12";
@ -19,6 +19,10 @@ stdenv.mkDerivation rec {
installManPage doc/beanstalkd.1 installManPage doc/beanstalkd.1
''; '';
passthru.tests = {
smoke-test = nixosTests.beanstalkd;
};
meta = with lib; { meta = with lib; {
homepage = "http://kr.github.io/beanstalkd/"; homepage = "http://kr.github.io/beanstalkd/";
description = "A simple, fast work queue"; description = "A simple, fast work queue";

View File

@ -9,6 +9,7 @@
, snappy , snappy
, zeromq , zeromq
, zlib , zlib
, nixosTests
}: }:
buildGoModule rec { buildGoModule rec {
@ -54,6 +55,10 @@ buildGoModule rec {
cp -r $src/static/css/ $out/share/ cp -r $src/static/css/ $out/share/
''; '';
passthru.tests = {
smoke-test = nixosTests.blockbook-frontend;
};
meta = with lib; { meta = with lib; {
description = "Trezor address/account balance backend"; description = "Trezor address/account balance backend";
homepage = "https://github.com/trezor/blockbook"; homepage = "https://github.com/trezor/blockbook";

View File

@ -1,4 +1,5 @@
{ lib, stdenv, fetchurl, perl, zlib, apr, aprutil, pcre, libiconv, lynx { lib, stdenv, fetchurl, perl, zlib, apr, aprutil, pcre, libiconv, lynx
, nixosTests
, proxySupport ? true , proxySupport ? true
, sslSupport ? true, openssl , sslSupport ? true, openssl
, http2Support ? true, nghttp2 , http2Support ? true, nghttp2
@ -85,6 +86,9 @@ stdenv.mkDerivation rec {
passthru = { passthru = {
inherit apr aprutil sslSupport proxySupport ldapSupport luaSupport lua5; inherit apr aprutil sslSupport proxySupport ldapSupport luaSupport lua5;
tests = {
acme-integration = nixosTests.acme;
};
}; };
meta = with lib; { meta = with lib; {

View File

@ -145,6 +145,7 @@ stdenv.mkDerivation {
tests = { tests = {
inherit (nixosTests) nginx nginx-auth nginx-etag nginx-pubhtml nginx-sandbox nginx-sso; inherit (nixosTests) nginx nginx-auth nginx-etag nginx-pubhtml nginx-sandbox nginx-sso;
variants = lib.recurseIntoAttrs nixosTests.nginx-variants; variants = lib.recurseIntoAttrs nixosTests.nginx-variants;
acme-integration = nixosTests.acme;
}; };
}; };

View File

@ -1,6 +1,7 @@
{ buildGoPackage { buildGoPackage
, fetchFromGitHub , fetchFromGitHub
, lib , lib
, nixosTests
}: }:
let let
@ -17,6 +18,10 @@ in buildGoPackage {
sha256 = "1piwzzfqsdx6s2niczzp4mf4r3qn9nfdgpn7882g52cmmm0vzks2"; sha256 = "1piwzzfqsdx6s2niczzp4mf4r3qn9nfdgpn7882g52cmmm0vzks2";
}; };
passthru.tests = {
smoke-test = nixosTests.acme;
};
meta = { meta = {
homepage = "https://github.com/letsencrypt/pebble"; homepage = "https://github.com/letsencrypt/pebble";
description = "A miniature version of Boulder, Pebble is a small RFC 8555 ACME test server not suited for a production CA"; description = "A miniature version of Boulder, Pebble is a small RFC 8555 ACME test server not suited for a production CA";

View File

@ -1,5 +1,5 @@
{ lib, stdenv, fetchFromGitHub, pkg-config, attr, libuuid, libscrypt, libsodium, keyutils { lib, stdenv, fetchFromGitHub, pkg-config, attr, libuuid, libscrypt, libsodium, keyutils
, liburcu, zlib, libaio, udev, zstd, lz4, valgrind, python3Packages , liburcu, zlib, libaio, udev, zstd, lz4, valgrind, python3Packages, nixosTests
, fuseSupport ? false, fuse3 ? null }: , fuseSupport ? false, fuse3 ? null }:
assert fuseSupport -> fuse3 != null; assert fuseSupport -> fuse3 != null;
@ -39,6 +39,10 @@ stdenv.mkDerivation {
installFlags = [ "PREFIX=${placeholder "out"}" ]; installFlags = [ "PREFIX=${placeholder "out"}" ];
passthru.tests = {
smoke-test = nixosTests.bcachefs;
};
meta = with lib; { meta = with lib; {
description = "Tool for managing bcachefs filesystems"; description = "Tool for managing bcachefs filesystems";
homepage = "https://bcachefs.org/"; homepage = "https://bcachefs.org/";

View File

@ -1,4 +1,5 @@
{ lib, stdenv, runCommand, fetchFromGitHub, bash, btrfs-progs, coreutils, python3Packages, util-linux }: { lib, stdenv, runCommand, fetchFromGitHub, bash, btrfs-progs, coreutils
, python3Packages, util-linux, nixosTests }:
let let
@ -55,7 +56,7 @@ let
in in
runCommand "bees-service" { (runCommand "bees-service" {
inherit bash bees coreutils; inherit bash bees coreutils;
utillinux = util-linux; # needs to be a valid shell variable name utillinux = util-linux; # needs to be a valid shell variable name
btrfsProgs = btrfs-progs; # needs to be a valid shell variable name btrfsProgs = btrfs-progs; # needs to be a valid shell variable name
@ -64,4 +65,8 @@ runCommand "bees-service" {
substituteAll ${./bees-service-wrapper} "$out"/bin/bees-service-wrapper substituteAll ${./bees-service-wrapper} "$out"/bin/bees-service-wrapper
chmod +x "$out"/bin/bees-service-wrapper chmod +x "$out"/bin/bees-service-wrapper
ln -s ${bees}/bin/beesd "$out"/bin/beesd ln -s ${bees}/bin/beesd "$out"/bin/beesd
'' '').overrideAttrs (old: {
passthru.tests = {
smoke-test = nixosTests.bees;
};
})

View File

@ -1,5 +1,6 @@
{ stdenv, lib, fetchurl, iptables, libuuid, pkg-config { stdenv, lib, fetchurl, iptables, libuuid, pkg-config
, which, iproute2, gnused, coreutils, gawk, makeWrapper , which, iproute2, gnused, coreutils, gawk, makeWrapper
, nixosTests
}: }:
let let
@ -30,6 +31,10 @@ stdenv.mkDerivation rec {
done done
''; '';
passthru.tests = {
bittorrent-integration = nixosTests.bittorrent;
};
meta = with lib; { meta = with lib; {
homepage = "http://miniupnp.free.fr/"; homepage = "http://miniupnp.free.fr/";
description = "A daemon that implements the UPnP Internet Gateway Device (IGD) specification"; description = "A daemon that implements the UPnP Internet Gateway Device (IGD) specification";

View File

@ -22,6 +22,7 @@
, withKerberos ? true , withKerberos ? true
, libkrb5 , libkrb5
, libfido2 , libfido2
, nixosTests
, withFIDO ? stdenv.hostPlatform.isUnix && !stdenv.hostPlatform.isMusl , withFIDO ? stdenv.hostPlatform.isUnix && !stdenv.hostPlatform.isMusl
, linkOpenssl ? true , linkOpenssl ? true
}: }:
@ -111,6 +112,10 @@ stdenv.mkDerivation rec {
"sysconfdir=\${out}/etc/ssh" "sysconfdir=\${out}/etc/ssh"
]; ];
passthru.tests = {
borgbackup-integration = nixosTests.borgbackup;
};
meta = { meta = {
description = "An implementation of the SSH protocol${extraDesc}"; description = "An implementation of the SSH protocol${extraDesc}";
homepage = "https://www.openssh.com/"; homepage = "https://www.openssh.com/";