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

View File

@ -1,4 +1,4 @@
{ lib, stdenv, fetchFromGitHub, coreutils }:
{ lib, stdenv, fetchFromGitHub, coreutils, nixosTests }:
stdenv.mkDerivation rec {
pname = "3proxy";
@ -17,6 +17,10 @@ stdenv.mkDerivation rec {
"DESTDIR=${placeholder "out"}"
];
passthru.tests = {
smoke-test = nixosTests._3proxy;
};
meta = with lib; {
description = "Tiny free proxy server";
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 {
name = "opentracker-2018-05-26";
@ -23,6 +23,10 @@ stdenv.mkDerivation {
runHook postInstall
'';
passthru.tests = {
bittorrent-integration = nixosTests.bittorrent;
};
meta = with lib; {
homepage = "https://erdgeist.org/arts/software/opentracker/";
license = licenses.beerware;

View File

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

View File

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

View File

@ -1,5 +1,6 @@
{ fetchurl, fetchpatch, lib, stdenv, pkg-config, libdaemon, dbus, perlPackages
, expat, gettext, intltool, glib, libiconv, writeShellScriptBin, libevent
, nixosTests
, gtk3Support ? false, gtk3 ? null
, qt4 ? null
, qt4Support ? false
@ -77,6 +78,11 @@ stdenv.mkDerivation rec {
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; {
description = "mDNS/DNS-SD implementation";
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 {
pname = "atd";
@ -18,6 +18,10 @@ buildDunePackage rec {
doCheck = true;
passthru.tests = {
smoke-test = nixosTests.atd;
};
meta = with lib; {
homepage = "https://github.com/mjambon/atd";
description = "Syntax for cross-language type definitions";

View File

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

View File

@ -6,6 +6,7 @@
, geckodriver
, urllib3
, xorg
, nixosTests
}:
@ -47,6 +48,10 @@ buildPythonPackage rec {
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; {
description = "The selenium package is used to automate web browser interaction from Python";
homepage = "http://www.seleniumhq.org";

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,6 +1,7 @@
{ buildGoPackage
, fetchFromGitHub
, lib
, nixosTests
}:
let
@ -17,6 +18,10 @@ in buildGoPackage {
sha256 = "1piwzzfqsdx6s2niczzp4mf4r3qn9nfdgpn7882g52cmmm0vzks2";
};
passthru.tests = {
smoke-test = nixosTests.acme;
};
meta = {
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";

View File

@ -1,5 +1,5 @@
{ 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 }:
assert fuseSupport -> fuse3 != null;
@ -39,6 +39,10 @@ stdenv.mkDerivation {
installFlags = [ "PREFIX=${placeholder "out"}" ];
passthru.tests = {
smoke-test = nixosTests.bcachefs;
};
meta = with lib; {
description = "Tool for managing bcachefs filesystems";
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
@ -55,7 +56,7 @@ let
in
runCommand "bees-service" {
(runCommand "bees-service" {
inherit bash bees coreutils;
utillinux = util-linux; # 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
chmod +x "$out"/bin/bees-service-wrapper
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
, which, iproute2, gnused, coreutils, gawk, makeWrapper
, nixosTests
}:
let
@ -30,6 +31,10 @@ stdenv.mkDerivation rec {
done
'';
passthru.tests = {
bittorrent-integration = nixosTests.bittorrent;
};
meta = with lib; {
homepage = "http://miniupnp.free.fr/";
description = "A daemon that implements the UPnP Internet Gateway Device (IGD) specification";

View File

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