lol

Merge pull request #118442 from Ekleog/nixos-tests

Add nixos tests with names starting by A or B to all relevant packages

authored by

Léo Gaspard and committed by
GitHub
08b00c20 7f1a670e

+94 -10
+5
pkgs/applications/blockchains/bitcoin.nix
··· 16 16 , python3 17 17 , qrencode 18 18 , libevent 19 + , nixosTests 19 20 , withGui 20 21 , withWallet ? true 21 22 }: ··· 80 81 ++ optional withGui "QT_PLUGIN_PATH=${qtbase}/${qtbase.qtPluginPrefix}"; 81 82 82 83 enableParallelBuilding = true; 84 + 85 + passthru.tests = { 86 + smoke-test = nixosTests.bitcoind; 87 + }; 83 88 84 89 meta = { 85 90 description = "Peer-to-peer electronic cash system";
+5 -1
pkgs/applications/networking/3proxy/default.nix
··· 1 - { lib, stdenv, fetchFromGitHub, coreutils }: 1 + { lib, stdenv, fetchFromGitHub, coreutils, nixosTests }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 pname = "3proxy"; ··· 16 16 "INSTALL=${coreutils}/bin/install" 17 17 "DESTDIR=${placeholder "out"}" 18 18 ]; 19 + 20 + passthru.tests = { 21 + smoke-test = nixosTests._3proxy; 22 + }; 19 23 20 24 meta = with lib; { 21 25 description = "Tiny free proxy server";
+5 -1
pkgs/applications/networking/p2p/opentracker/default.nix
··· 1 - { lib, stdenv, fetchgit, libowfat, zlib }: 1 + { lib, stdenv, fetchgit, libowfat, zlib, nixosTests }: 2 2 3 3 stdenv.mkDerivation { 4 4 name = "opentracker-2018-05-26"; ··· 22 22 install -D opentracker.conf.sample $out/share/doc/opentracker.conf.sample 23 23 runHook postInstall 24 24 ''; 25 + 26 + passthru.tests = { 27 + bittorrent-integration = nixosTests.bittorrent; 28 + }; 25 29 26 30 meta = with lib; { 27 31 homepage = "https://erdgeist.org/arts/software/opentracker/";
+5
pkgs/applications/networking/p2p/transmission/default.nix
··· 17 17 , wrapGAppsHook 18 18 , enableQt ? false 19 19 , qt5 20 + , nixosTests 20 21 , enableSystemd ? stdenv.isLinux 21 22 , enableDaemon ? true 22 23 , enableCli ? true ··· 73 74 ; 74 75 75 76 NIX_LDFLAGS = lib.optionalString stdenv.isDarwin "-framework CoreFoundation"; 77 + 78 + passthru.tests = { 79 + smoke-test = nixosTests.bittorrent; 80 + }; 76 81 77 82 meta = { 78 83 description = "A fast, easy and free BitTorrent client";
+4
pkgs/applications/version-management/git-and-tools/git/default.nix
··· 14 14 , withpcre2 ? true 15 15 , sendEmailSupport 16 16 , darwin 17 + , nixosTests 17 18 , withLibsecret ? false 18 19 , pkg-config, glib, libsecret 19 20 , gzip # needed at runtime by gitweb.cgi ··· 334 335 335 336 stripDebugList = [ "lib" "libexec" "bin" "share/git/contrib/credential/libsecret" ]; 336 337 338 + passthru.tests = { 339 + buildbot-integration = nixosTests.buildbot; 340 + }; 337 341 338 342 meta = { 339 343 homepage = "https://git-scm.com/";
+6
pkgs/development/libraries/avahi/default.nix
··· 1 1 { fetchurl, fetchpatch, lib, stdenv, pkg-config, libdaemon, dbus, perlPackages 2 2 , expat, gettext, intltool, glib, libiconv, writeShellScriptBin, libevent 3 + , nixosTests 3 4 , gtk3Support ? false, gtk3 ? null 4 5 , qt4 ? null 5 6 , qt4Support ? false ··· 76 77 ln -s avahi-compat-howl $out/include/howl 77 78 ln -s avahi-compat-howl.pc $out/lib/pkgconfig/howl.pc 78 79 */ 80 + 81 + passthru.tests = { 82 + smoke-test = nixosTests.avahi; 83 + smoke-test-resolved = nixosTests.avahi-with-resolved; 84 + }; 79 85 80 86 meta = with lib; { 81 87 description = "mDNS/DNS-SD implementation";
+5 -1
pkgs/development/ocaml-modules/atd/default.nix
··· 1 - { lib, menhir, easy-format, fetchurl, buildDunePackage, which, re }: 1 + { lib, menhir, easy-format, fetchurl, buildDunePackage, which, re, nixosTests }: 2 2 3 3 buildDunePackage rec { 4 4 pname = "atd"; ··· 17 17 propagatedBuildInputs = [ easy-format re ]; 18 18 19 19 doCheck = true; 20 + 21 + passthru.tests = { 22 + smoke-test = nixosTests.atd; 23 + }; 20 24 21 25 meta = with lib; { 22 26 homepage = "https://github.com/mjambon/atd";
+5 -1
pkgs/development/python-modules/buildbot/worker.nix
··· 1 1 { lib, buildPythonPackage, fetchPypi, buildbot, setuptoolsTrial, mock, twisted, 2 - future, coreutils }: 2 + future, coreutils, nixosTests }: 3 3 4 4 buildPythonPackage (rec { 5 5 pname = "buildbot-worker"; ··· 18 18 substituteInPlace buildbot_worker/scripts/logwatcher.py \ 19 19 --replace /usr/bin/tail "${coreutils}/bin/tail" 20 20 ''; 21 + 22 + passthru.tests = { 23 + smoke-test = nixosTests.buildbot; 24 + }; 21 25 22 26 meta = with lib; { 23 27 homepage = "https://buildbot.net/";
+5
pkgs/development/python-modules/selenium/default.nix
··· 6 6 , geckodriver 7 7 , urllib3 8 8 , xorg 9 + , nixosTests 9 10 }: 10 11 11 12 ··· 46 47 x_ignore_nofocus.o 47 48 cp -v x_ignore_nofocus.so selenium/webdriver/firefox/${if stdenv.is64bit then "amd64" else "x86"}/ 48 49 ''; 50 + 51 + passthru.tests = { 52 + testing-bitwarden = nixosTests.bitwarden; 53 + }; 49 54 50 55 meta = with lib; { 51 56 description = "The selenium package is used to automate web browser interaction from Python";
+6 -1
pkgs/development/tools/continuous-integration/buildkite-agent/default.nix
··· 1 1 { fetchFromGitHub, lib, buildGoModule, 2 - makeWrapper, coreutils, git, openssh, bash, gnused, gnugrep }: 2 + makeWrapper, coreutils, git, openssh, bash, gnused, gnugrep, 3 + nixosTests }: 3 4 buildGoModule rec { 4 5 name = "buildkite-agent-${version}"; 5 6 version = "3.29.0"; ··· 29 30 wrapProgram $out/bin/buildkite-agent \ 30 31 --prefix PATH : '${lib.makeBinPath [ openssh git coreutils gnused gnugrep ]}' 31 32 ''; 33 + 34 + passthru.tests = { 35 + smoke-test = nixosTests.buildkite-agents; 36 + }; 32 37 33 38 meta = with lib; { 34 39 description = "Build runner for buildkite.com";
+5 -1
pkgs/servers/beanstalkd/default.nix
··· 1 - { lib, stdenv, fetchurl, installShellFiles }: 1 + { lib, stdenv, fetchurl, installShellFiles, nixosTests }: 2 2 3 3 stdenv.mkDerivation rec { 4 4 version = "1.12"; ··· 18 18 postInstall = '' 19 19 installManPage doc/beanstalkd.1 20 20 ''; 21 + 22 + passthru.tests = { 23 + smoke-test = nixosTests.beanstalkd; 24 + }; 21 25 22 26 meta = with lib; { 23 27 homepage = "http://kr.github.io/beanstalkd/";
+5
pkgs/servers/blockbook/default.nix
··· 9 9 , snappy 10 10 , zeromq 11 11 , zlib 12 + , nixosTests 12 13 }: 13 14 14 15 buildGoModule rec { ··· 53 54 cp -r $src/static/templates/ $out/share/ 54 55 cp -r $src/static/css/ $out/share/ 55 56 ''; 57 + 58 + passthru.tests = { 59 + smoke-test = nixosTests.blockbook-frontend; 60 + }; 56 61 57 62 meta = with lib; { 58 63 description = "Trezor address/account balance backend";
+4
pkgs/servers/http/apache-httpd/2.4.nix
··· 1 1 { lib, stdenv, fetchurl, perl, zlib, apr, aprutil, pcre, libiconv, lynx 2 + , nixosTests 2 3 , proxySupport ? true 3 4 , sslSupport ? true, openssl 4 5 , http2Support ? true, nghttp2 ··· 85 86 86 87 passthru = { 87 88 inherit apr aprutil sslSupport proxySupport ldapSupport luaSupport lua5; 89 + tests = { 90 + acme-integration = nixosTests.acme; 91 + }; 88 92 }; 89 93 90 94 meta = with lib; {
+1
pkgs/servers/http/nginx/generic.nix
··· 145 145 tests = { 146 146 inherit (nixosTests) nginx nginx-auth nginx-etag nginx-pubhtml nginx-sandbox nginx-sso; 147 147 variants = lib.recurseIntoAttrs nixosTests.nginx-variants; 148 + acme-integration = nixosTests.acme; 148 149 }; 149 150 }; 150 151
+5
pkgs/tools/admin/pebble/default.nix
··· 1 1 { buildGoPackage 2 2 , fetchFromGitHub 3 3 , lib 4 + , nixosTests 4 5 }: 5 6 6 7 let ··· 15 16 repo = pname; 16 17 rev = version; 17 18 sha256 = "1piwzzfqsdx6s2niczzp4mf4r3qn9nfdgpn7882g52cmmm0vzks2"; 19 + }; 20 + 21 + passthru.tests = { 22 + smoke-test = nixosTests.acme; 18 23 }; 19 24 20 25 meta = {
+5 -1
pkgs/tools/filesystems/bcachefs-tools/default.nix
··· 1 1 { lib, stdenv, fetchFromGitHub, pkg-config, attr, libuuid, libscrypt, libsodium, keyutils 2 - , liburcu, zlib, libaio, udev, zstd, lz4, valgrind, python3Packages 2 + , liburcu, zlib, libaio, udev, zstd, lz4, valgrind, python3Packages, nixosTests 3 3 , fuseSupport ? false, fuse3 ? null }: 4 4 5 5 assert fuseSupport -> fuse3 != null; ··· 38 38 ''; 39 39 40 40 installFlags = [ "PREFIX=${placeholder "out"}" ]; 41 + 42 + passthru.tests = { 43 + smoke-test = nixosTests.bcachefs; 44 + }; 41 45 42 46 meta = with lib; { 43 47 description = "Tool for managing bcachefs filesystems";
+8 -3
pkgs/tools/filesystems/bees/default.nix
··· 1 - { lib, stdenv, runCommand, fetchFromGitHub, bash, btrfs-progs, coreutils, python3Packages, util-linux }: 1 + { lib, stdenv, runCommand, fetchFromGitHub, bash, btrfs-progs, coreutils 2 + , python3Packages, util-linux, nixosTests }: 2 3 3 4 let 4 5 ··· 55 56 56 57 in 57 58 58 - runCommand "bees-service" { 59 + (runCommand "bees-service" { 59 60 inherit bash bees coreutils; 60 61 utillinux = util-linux; # needs to be a valid shell variable name 61 62 btrfsProgs = btrfs-progs; # needs to be a valid shell variable name ··· 64 65 substituteAll ${./bees-service-wrapper} "$out"/bin/bees-service-wrapper 65 66 chmod +x "$out"/bin/bees-service-wrapper 66 67 ln -s ${bees}/bin/beesd "$out"/bin/beesd 67 - '' 68 + '').overrideAttrs (old: { 69 + passthru.tests = { 70 + smoke-test = nixosTests.bees; 71 + }; 72 + })
+5
pkgs/tools/networking/miniupnpd/default.nix
··· 1 1 { stdenv, lib, fetchurl, iptables, libuuid, pkg-config 2 2 , which, iproute2, gnused, coreutils, gawk, makeWrapper 3 + , nixosTests 3 4 }: 4 5 5 6 let ··· 29 30 wrapProgram $script --set PATH '${scriptBinEnv}:$PATH' 30 31 done 31 32 ''; 33 + 34 + passthru.tests = { 35 + bittorrent-integration = nixosTests.bittorrent; 36 + }; 32 37 33 38 meta = with lib; { 34 39 homepage = "http://miniupnp.free.fr/";
+5
pkgs/tools/networking/openssh/common.nix
··· 22 22 , withKerberos ? true 23 23 , libkrb5 24 24 , libfido2 25 + , nixosTests 25 26 , withFIDO ? stdenv.hostPlatform.isUnix && !stdenv.hostPlatform.isMusl 26 27 , linkOpenssl ? true 27 28 }: ··· 110 111 installFlags = [ 111 112 "sysconfdir=\${out}/etc/ssh" 112 113 ]; 114 + 115 + passthru.tests = { 116 + borgbackup-integration = nixosTests.borgbackup; 117 + }; 113 118 114 119 meta = { 115 120 description = "An implementation of the SSH protocol${extraDesc}";