git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #50233 from Ekleog/fix-test-system

Fix meta.tests system

commitdf9334b646565723b2454a421cbf8b819bfed08e authorJohn Ericson <git@JohnEricson.me> dateSun 11 Nov 2018, 19:05 (8 years ago) parentc94ccfd6aedf6a
33 files changed+392−320
doc/meta.xml+14−15 nixos/lib/build-vms.nix+1−3 nixos/lib/testing.nix+2−4 nixos/modules/installer/tools/nixos-build-vms/build-vms.nix+5−1 nixos/release.nix+14−216 nixos/tests/all-tests.nix+214 nixos/tests/boot.nix+5−2 nixos/tests/buildbot.nix+5−2 nixos/tests/certmgr.nix+5−2 nixos/tests/chromium.nix+3−2 nixos/tests/cloud-init.nix+5−2 nixos/tests/ec2.nix+5−2 nixos/tests/elk.nix+8−2 nixos/tests/gitea.nix+5−2 nixos/tests/installer.nix+5−2 nixos/tests/kafka.nix+6−2 nixos/tests/keymap.nix+5−2 nixos/tests/kubernetes/base.nix+5−2 nixos/tests/make-test.nix+6−2 nixos/tests/networking.nix+3−1 nixos/tests/nextcloud/default.nix+7−4 nixos/tests/postgresql.nix+7−2 nixos/tests/predictable-interface-names.nix+5−2 nixos/tests/rspamd.nix+7−2 nixos/tests/rsyslogd.nix+6−2 nixos/tests/run-in-machine.nix+5−2 nixos/tests/sddm.nix+5−2 nixos/tests/virtualbox.nix+8−3 nixos/tests/zfs.nix+5−2 pkgs/servers/mail/dovecot/default.nix+3−6 pkgs/servers/mail/opensmtpd/default.nix+3−6 pkgs/stdenv/generic/check-meta.nix+5−4 pkgs/top-level/all-packages.nix+5−17
doc/meta.xml+14−15
@@ -255,12 +255,22 @@ meta.platforms = stdenv.lib.platforms.linux;
255255 <varname>tests</varname>
256256 </term>
257257 <listitem>
258+ <warning>
259+ <para>
260+ This attribute is special in that it is not actually under the
261+ <literal>meta</literal> attribute set but rather under the
262+ <literal>passthru</literal> attribute set. This is due to a current
263+ limitation of Nix, and will change as soon as Nixpkgs will be able to
264+ depend on a new enough version of Nix. See
265+ <link xlink:href="https://github.com/NixOS/nix/issues/2532">the relevant
266+ issue</link> for more details.
267+ </para>
268+ </warning>
258269 <para>
259270 An attribute set with as values tests. A test is a derivation, which
260271 builds successfully when the test passes, and fails to build otherwise. A
261− derivation that is a test requires some <literal>meta</literal> elements
262− to be defined: <literal>needsVMSupport</literal> (automatically filled-in
263− for NixOS tests) and <literal>timeout</literal>.
272+ derivation that is a test needs to have <literal>meta.timeout</literal>
273+ defined.
264274 </para>
265275 <para>
266276 The NixOS tests are available as <literal>nixosTests</literal> in
@@ -270,7 +280,7 @@ meta.platforms = stdenv.lib.platforms.linux;
270280{ /* ... */, nixosTests }:
271281{
272282 # ...
273− meta.tests = {
283+ passthru.tests = {
274284 basic-functionality-and-dovecot-integration = nixosTests.opensmtpd;
275285 };
276286}
@@ -294,17 +304,6 @@ meta.platforms = stdenv.lib.platforms.linux;
294304 </para>
295305 </listitem>
296306 </varlistentry>
297− <varlistentry>
298− <term>
299− <varname>needsVMSupport</varname>
300− </term>
301− <listitem>
302− <para>
303− A boolan that states whether the derivation requires build-time support
304− for Virtual Machine to build successfully.
305− </para>
306− </listitem>
307− </varlistentry>
308307 <varlistentry>
309308 <term>
310309 <varname>hydraPlatforms</varname>
nixos/lib/build-vms.nix+1−3
@@ -1,6 +1,4 @@
1−{ system, minimal ? false, config ? {} }:
2−
3−let pkgs = import ../.. { inherit system config; }; in
1+{ system, pkgs, minimal ? false, config ? {} }:
42
53with pkgs.lib;
64with import ../lib/qemu-flags.nix { inherit pkgs; };
nixos/lib/testing.nix+2−4
@@ -1,6 +1,6 @@
1−{ system, minimal ? false, config ? {} }:
1+{ system, pkgs, minimal ? false, config ? {} }:
22
3−with import ./build-vms.nix { inherit system minimal config; };
3+with import ./build-vms.nix { inherit system pkgs minimal config; };
44with pkgs;
55
66let
@@ -70,8 +70,6 @@ in rec {
7070 mv $i $out/coverage-data/$(dirname $(dirname $i))
7171 done
7272 '';
73−
74− meta.needsVMSupport = true;
7573 };
7674
7775
nixos/modules/installer/tools/nixos-build-vms/build-vms.nix+5−1
@@ -1,9 +1,13 @@
11{ system ? builtins.currentSystem
2+, config ? {}
23, networkExpr
34}:
45
56let nodes = import networkExpr; in
67
7−with import ../../../../lib/testing.nix { inherit system; };
8+with import ../../../../lib/testing.nix {
9+ inherit system;
10+ pkgs = import ../.. { inherit system config; }
11+};
812
913(makeTest { inherit nodes; testScript = ""; }).driver
nixos/release.nix+14−216
@@ -14,28 +14,19 @@ let
1414 versionSuffix =
1515 (if stableBranch then "." else "pre") + "${toString nixpkgs.revCount}.${nixpkgs.shortRev}";
1616
17− importTest = fn: args: system: import fn ({
18− inherit system;
19− } // args);
20−
21− # Note: only supportedSystems are considered.
22− callTestOnMatchingSystems = systems: fn: args:
23− forMatchingSystems
24− (intersectLists supportedSystems systems)
25− (system: hydraJob (importTest fn args system));
26− callTest = callTestOnMatchingSystems supportedSystems;
27−
28− callSubTests = callSubTestsOnMatchingSystems supportedSystems;
29− callSubTestsOnMatchingSystems = systems: fn: args: let
30− discover = attrs: let
31− subTests = filterAttrs (const (hasAttr "test")) attrs;
32− in mapAttrs (const (t: hydraJob t.test)) subTests;
33−
34− discoverForSystem = system: mapAttrs (_: test: {
35− ${system} = test;
36− }) (discover (importTest fn args system));
37−
38− in foldAttrs mergeAttrs {} (map discoverForSystem (intersectLists systems supportedSystems));
17+ # Run the tests for each platform. You can run a test by doing
18+ # e.g. ‘nix-build -A tests.login.x86_64-linux’, or equivalently,
19+ # ‘nix-build tests/login.nix -A result’.
20+ allTestsForSystem = system:
21+ import ./tests/all-tests.nix {
22+ inherit system;
23+ pkgs = import nixpkgs { inherit system; };
24+ callTest = t: {
25+ ${system} = hydraJob t.test;
26+ };
27+ };
28+ allTests =
29+ foldAttrs recursiveUpdate {} (map allTestsForSystem supportedSystems);
3930
4031 pkgs = import nixpkgs { system = "x86_64-linux"; };
4132
@@ -245,200 +236,7 @@ in rec {
245236 };
246237 */
247238
248−
249− # Run the tests for each platform. You can run a test by doing
250− # e.g. ‘nix-build -A tests.login.x86_64-linux’, or equivalently,
251− # ‘nix-build tests/login.nix -A result’.
252− tests.atd = callTest tests/atd.nix {};
253− tests.acme = callTest tests/acme.nix {};
254− tests.avahi = callTest tests/avahi.nix {};
255− tests.beegfs = callTest tests/beegfs.nix {};
256− tests.upnp = callTest tests/upnp.nix {};
257− tests.bittorrent = callTest tests/bittorrent.nix {};
258− tests.bind = callTest tests/bind.nix {};
259− #tests.blivet = callTest tests/blivet.nix {}; # broken since 2017-07024
260− tests.boot = callSubTests tests/boot.nix {};
261− tests.boot-stage1 = callTest tests/boot-stage1.nix {};
262− tests.borgbackup = callTest tests/borgbackup.nix {};
263− tests.buildbot = callSubTests tests/buildbot.nix {};
264− tests.cadvisor = callTestOnMatchingSystems ["x86_64-linux"] tests/cadvisor.nix {};
265− tests.ceph = callTestOnMatchingSystems ["x86_64-linux"] tests/ceph.nix {};
266− tests.certmgr = callSubTests tests/certmgr.nix {};
267− tests.cfssl = callTestOnMatchingSystems ["x86_64-linux"] tests/cfssl.nix {};
268− tests.chromium = (callSubTestsOnMatchingSystems ["x86_64-linux"] tests/chromium.nix {}).stable or {};
269− tests.cjdns = callTest tests/cjdns.nix {};
270− tests.cloud-init = callTest tests/cloud-init.nix {};
271− tests.codimd = callTest tests/codimd.nix {};
272− tests.containers-ipv4 = callTest tests/containers-ipv4.nix {};
273− tests.containers-ipv6 = callTest tests/containers-ipv6.nix {};
274− tests.containers-bridge = callTest tests/containers-bridge.nix {};
275− tests.containers-imperative = callTest tests/containers-imperative.nix {};
276− tests.containers-extra_veth = callTest tests/containers-extra_veth.nix {};
277− tests.containers-physical_interfaces = callTest tests/containers-physical_interfaces.nix {};
278− tests.containers-restart_networking = callTest tests/containers-restart_networking.nix {};
279− tests.containers-tmpfs = callTest tests/containers-tmpfs.nix {};
280− tests.containers-hosts = callTest tests/containers-hosts.nix {};
281− tests.containers-macvlans = callTest tests/containers-macvlans.nix {};
282− tests.couchdb = callTest tests/couchdb.nix {};
283− tests.deluge = callTest tests/deluge.nix {};
284− tests.dhparams = callTest tests/dhparams.nix {};
285− tests.docker = callTestOnMatchingSystems ["x86_64-linux"] tests/docker.nix {};
286− tests.docker-tools = callTestOnMatchingSystems ["x86_64-linux"] tests/docker-tools.nix {};
287− tests.docker-tools-overlay = callTestOnMatchingSystems ["x86_64-linux"] tests/docker-tools-overlay.nix {};
288− tests.docker-edge = callTestOnMatchingSystems ["x86_64-linux"] tests/docker-edge.nix {};
289− tests.docker-preloader = callTestOnMatchingSystems ["x86_64-linux"] tests/docker-preloader.nix {};
290− tests.docker-registry = callTest tests/docker-registry.nix {};
291− tests.dovecot = callTest tests/dovecot.nix {};
292− tests.dnscrypt-proxy = callTestOnMatchingSystems ["x86_64-linux"] tests/dnscrypt-proxy.nix {};
293− tests.ecryptfs = callTest tests/ecryptfs.nix {};
294− tests.etcd = callTestOnMatchingSystems ["x86_64-linux"] tests/etcd.nix {};
295− tests.ec2-nixops = (callSubTestsOnMatchingSystems ["x86_64-linux"] tests/ec2.nix {}).boot-ec2-nixops or {};
296− # ec2-config doesn't work in a sandbox as the simulated ec2 instance needs network access
297− #tests.ec2-config = (callSubTestsOnMatchingSystems ["x86_64-linux"] tests/ec2.nix {}).boot-ec2-config or {};
298− tests.elk = callSubTestsOnMatchingSystems ["x86_64-linux"] tests/elk.nix {};
299− tests.env = callTest tests/env.nix {};
300− tests.ferm = callTest tests/ferm.nix {};
301− tests.firefox = callTest tests/firefox.nix {};
302− tests.flatpak = callTest tests/flatpak.nix {};
303− tests.firewall = callTest tests/firewall.nix {};
304− tests.fsck = callTest tests/fsck.nix {};
305− tests.fwupd = callTest tests/fwupd.nix {};
306− tests.gdk-pixbuf = callTest tests/gdk-pixbuf.nix {};
307− tests.gitea = callSubTests tests/gitea.nix {};
308− tests.gitlab = callTest tests/gitlab.nix {};
309− tests.gitolite = callTest tests/gitolite.nix {};
310− tests.gjs = callTest tests/gjs.nix {};
311− tests.gocd-agent = callTest tests/gocd-agent.nix {};
312− tests.gocd-server = callTest tests/gocd-server.nix {};
313− tests.gnome3 = callTest tests/gnome3.nix {};
314− tests.gnome3-gdm = callTest tests/gnome3-gdm.nix {};
315− tests.grafana = callTest tests/grafana.nix {};
316− tests.graphite = callTest tests/graphite.nix {};
317− tests.hadoop.hdfs = callTestOnMatchingSystems [ "x86_64-linux" ] tests/hadoop/hdfs.nix {};
318− tests.hadoop.yarn = callTestOnMatchingSystems [ "x86_64-linux" ] tests/hadoop/yarn.nix {};
319− tests.hardened = callTest tests/hardened.nix { };
320− tests.haproxy = callTest tests/haproxy.nix {};
321− tests.hibernate = callTest tests/hibernate.nix {};
322− tests.hitch = callTest tests/hitch {};
323− tests.home-assistant = callTest tests/home-assistant.nix { };
324− tests.hound = callTest tests/hound.nix {};
325− tests.hocker-fetchdocker = callTest tests/hocker-fetchdocker {};
326− tests.hydra = callTest tests/hydra {};
327− tests.i3wm = callTest tests/i3wm.nix {};
328− tests.iftop = callTest tests/iftop.nix {};
329− tests.initrd-network-ssh = callTest tests/initrd-network-ssh {};
330− tests.installer = callSubTests tests/installer.nix {};
331− tests.influxdb = callTest tests/influxdb.nix {};
332− tests.ipv6 = callTest tests/ipv6.nix {};
333− tests.jenkins = callTest tests/jenkins.nix {};
334− tests.ostree = callTest tests/ostree.nix {};
335− tests.osquery = callTest tests/osquery.nix {};
336− tests.plasma5 = callTest tests/plasma5.nix {};
337− tests.plotinus = callTest tests/plotinus.nix {};
338− tests.keymap = callSubTests tests/keymap.nix {};
339− tests.incron = callTest tests/incron.nix {};
340− tests.initrdNetwork = callTest tests/initrd-network.nix {};
341− tests.kafka = callSubTests tests/kafka.nix {};
342− tests.kernel-latest = callTest tests/kernel-latest.nix {};
343− tests.kernel-lts = callTest tests/kernel-lts.nix {};
344− tests.kubernetes.dns = callSubTestsOnMatchingSystems ["x86_64-linux"] tests/kubernetes/dns.nix {};
345− ## kubernetes.e2e should eventually replace kubernetes.rbac when it works
346− #tests.kubernetes.e2e = callSubTestsOnMatchingSystems ["x86_64-linux"] tests/kubernetes/e2e.nix {};
347− tests.kubernetes.rbac = callSubTestsOnMatchingSystems ["x86_64-linux"] tests/kubernetes/rbac.nix {};
348− tests.latestKernel.login = callTest tests/login.nix { latestKernel = true; };
349− tests.ldap = callTest tests/ldap.nix {};
350− #tests.lightdm = callTest tests/lightdm.nix {};
351− tests.login = callTest tests/login.nix {};
352− #tests.logstash = callTest tests/logstash.nix {};
353− tests.mathics = callTest tests/mathics.nix {};
354− tests.matrix-synapse = callTest tests/matrix-synapse.nix {};
355− tests.memcached = callTest tests/memcached.nix {};
356− tests.mesos = callTest tests/mesos.nix {};
357− tests.misc = callTest tests/misc.nix {};
358− tests.mongodb = callTest tests/mongodb.nix {};
359− tests.mpd = callTest tests/mpd.nix {};
360− tests.mumble = callTest tests/mumble.nix {};
361− tests.munin = callTest tests/munin.nix {};
362− tests.mutableUsers = callTest tests/mutable-users.nix {};
363− tests.mysql = callTest tests/mysql.nix {};
364− tests.mysqlBackup = callTest tests/mysql-backup.nix {};
365− tests.mysqlReplication = callTest tests/mysql-replication.nix {};
366− tests.nat.firewall = callTest tests/nat.nix { withFirewall = true; };
367− tests.nat.firewall-conntrack = callTest tests/nat.nix { withFirewall = true; withConntrackHelpers = true; };
368− tests.nat.standalone = callTest tests/nat.nix { withFirewall = false; };
369− tests.netdata = callTest tests/netdata.nix { };
370− tests.networking.networkd = callSubTests tests/networking.nix { networkd = true; };
371− tests.networking.scripted = callSubTests tests/networking.nix { networkd = false; };
372− tests.nextcloud = callSubTests tests/nextcloud { };
373− # TODO: put in networking.nix after the test becomes more complete
374− tests.networkingProxy = callTest tests/networking-proxy.nix {};
375− tests.nexus = callTest tests/nexus.nix { };
376− tests.nfs3 = callTest tests/nfs.nix { version = 3; };
377− tests.nfs4 = callTest tests/nfs.nix { version = 4; };
378− tests.nginx = callTest tests/nginx.nix { };
379− tests.nghttpx = callTest tests/nghttpx.nix { };
380− tests.nix-ssh-serve = callTest tests/nix-ssh-serve.nix { };
381− tests.novacomd = callTestOnMatchingSystems ["x86_64-linux"] tests/novacomd.nix { };
382− tests.leaps = callTest tests/leaps.nix { };
383− tests.nsd = callTest tests/nsd.nix {};
384− tests.openssh = callTest tests/openssh.nix {};
385− tests.openldap = callTest tests/openldap.nix {};
386− tests.opensmtpd = callTest tests/opensmtpd.nix {};
387− tests.owncloud = callTest tests/owncloud.nix {};
388− tests.pam-oath-login = callTest tests/pam-oath-login.nix {};
389− tests.peerflix = callTest tests/peerflix.nix {};
390− tests.php-pcre = callTest tests/php-pcre.nix {};
391− tests.postgresql = callSubTests tests/postgresql.nix {};
392− tests.pgmanage = callTest tests/pgmanage.nix {};
393− tests.postgis = callTest tests/postgis.nix {};
394− tests.powerdns = callTest tests/powerdns.nix {};
395− tests.pgjwt = callTest tests/pgjwt.nix {};
396− tests.predictable-interface-names = callSubTests tests/predictable-interface-names.nix {};
397− tests.printing = callTest tests/printing.nix {};
398− tests.prometheus = callTest tests/prometheus.nix {};
399− tests.prometheus-exporters = callTest tests/prometheus-exporters.nix {};
400− tests.prosody = callTest tests/prosody.nix {};
401− tests.proxy = callTest tests/proxy.nix {};
402− tests.quagga = callTest tests/quagga.nix {};
403− tests.quake3 = callTest tests/quake3.nix {};
404− tests.rabbitmq = callTest tests/rabbitmq.nix {};
405− tests.radicale = callTest tests/radicale.nix {};
406− tests.redmine = callTest tests/redmine.nix {};
407− tests.rspamd = callSubTests tests/rspamd.nix {};
408− tests.rsyslogd = callSubTests tests/rsyslogd.nix {};
409− tests.runInMachine = callTest tests/run-in-machine.nix {};
410− tests.rxe = callTest tests/rxe.nix {};
411− tests.samba = callTest tests/samba.nix {};
412− tests.sddm = callSubTests tests/sddm.nix {};
413− tests.simple = callTest tests/simple.nix {};
414− tests.slim = callTest tests/slim.nix {};
415− tests.slurm = callTest tests/slurm.nix {};
416− tests.smokeping = callTest tests/smokeping.nix {};
417− tests.snapper = callTest tests/snapper.nix {};
418− tests.solr = callTest tests/solr.nix {};
419− #tests.statsd = callTest tests/statsd.nix {}; # statsd is broken: #45946
420− tests.strongswan-swanctl = callTest tests/strongswan-swanctl.nix {};
421− tests.sudo = callTest tests/sudo.nix {};
422− tests.systemd = callTest tests/systemd.nix {};
423− tests.switchTest = callTest tests/switch-test.nix {};
424− tests.taskserver = callTest tests/taskserver.nix {};
425− tests.tomcat = callTest tests/tomcat.nix {};
426− tests.tor = callTest tests/tor.nix {};
427− tests.transmission = callTest tests/transmission.nix {};
428− tests.udisks2 = callTest tests/udisks2.nix {};
429− tests.vault = callTest tests/vault.nix {};
430− tests.virtualbox = callSubTestsOnMatchingSystems ["x86_64-linux"] tests/virtualbox.nix {};
431− tests.wordpress = callTest tests/wordpress.nix {};
432− tests.xautolock = callTest tests/xautolock.nix {};
433− tests.xdg-desktop-portal = callTest tests/xdg-desktop-portal.nix {};
434− tests.xfce = callTest tests/xfce.nix {};
435− tests.xmonad = callTest tests/xmonad.nix {};
436− tests.xrdp = callTest tests/xrdp.nix {};
437− tests.xss-lock = callTest tests/xss-lock.nix {};
438− tests.yabar = callTest tests/yabar.nix {};
439− tests.zookeeper = callTest tests/zookeeper.nix {};
440− tests.morty = callTest tests/morty.nix { };
441− tests.bcachefs = callTest tests/bcachefs.nix { };
239+ tests = allTests;
442240
443241 /* Build a bunch of typical closures so that Hydra can keep track of
444242 the evolution of closure sizes. */
nixos/tests/all-tests.nixnew file+214
@@ -0,0 +1,214 @@
1+{ system, pkgs, callTest }:
2+# The return value of this function will be an attrset with arbitrary depth and
3+# the `anything` returned by callTest at its test leafs.
4+# The tests not supported by `system` will be replaced with `{}`, so that
5+# `passthru.tests` can contain links to those without breaking on architectures
6+# where said tests are unsupported.
7+# Example callTest that just extracts the derivation from the test:
8+# callTest = t: t.test;
9+
10+with pkgs.lib;
11+
12+let
13+ discoverTests = val:
14+ if !isAttrs val then val
15+ else if hasAttr "test" val then callTest val
16+ else mapAttrs (n: s: discoverTests s) val;
17+ handleTest = path: args:
18+ discoverTests (import path ({ inherit system pkgs; } // args));
19+ handleTestOn = systems: path: args:
20+ if elem system systems then handleTest path args
21+ else {};
22+in
23+{
24+ acme = handleTestOn ["x86_64-linux"] ./acme.nix {};
25+ atd = handleTest ./atd.nix {};
26+ avahi = handleTest ./avahi.nix {};
27+ bcachefs = handleTestOn ["x86_64-linux"] ./bcachefs.nix {}; # linux-4.18.2018.10.12 is unsupported on aarch64
28+ beegfs = handleTestOn ["x86_64-linux"] ./beegfs.nix {}; # beegfs is unsupported on aarch64
29+ bind = handleTest ./bind.nix {};
30+ bittorrent = handleTest ./bittorrent.nix {};
31+ #blivet = handleTest ./blivet.nix {}; # broken since 2017-07024
32+ boot = handleTestOn ["x86_64-linux"] ./boot.nix {}; # syslinux is unsupported on aarch64
33+ boot-stage1 = handleTest ./boot-stage1.nix {};
34+ borgbackup = handleTest ./borgbackup.nix {};
35+ buildbot = handleTest ./buildbot.nix {};
36+ cadvisor = handleTestOn ["x86_64-linux"] ./cadvisor.nix {};
37+ ceph = handleTestOn ["x86_64-linux"] ./ceph.nix {};
38+ certmgr = handleTest ./certmgr.nix {};
39+ cfssl = handleTestOn ["x86_64-linux"] ./cfssl.nix {};
40+ chromium = (handleTestOn ["x86_64-linux"] ./chromium.nix {}).stable or {};
41+ cjdns = handleTest ./cjdns.nix {};
42+ cloud-init = handleTest ./cloud-init.nix {};
43+ codimd = handleTest ./codimd.nix {};
44+ containers-bridge = handleTest ./containers-bridge.nix {};
45+ containers-extra_veth = handleTest ./containers-extra_veth.nix {};
46+ containers-hosts = handleTest ./containers-hosts.nix {};
47+ containers-imperative = handleTest ./containers-imperative.nix {};
48+ containers-ipv4 = handleTest ./containers-ipv4.nix {};
49+ containers-ipv6 = handleTest ./containers-ipv6.nix {};
50+ containers-macvlans = handleTest ./containers-macvlans.nix {};
51+ containers-physical_interfaces = handleTest ./containers-physical_interfaces.nix {};
52+ containers-restart_networking = handleTest ./containers-restart_networking.nix {};
53+ containers-tmpfs = handleTest ./containers-tmpfs.nix {};
54+ #couchdb = handleTest ./couchdb.nix {}; # spidermonkey-1.8.5 is marked as broken
55+ deluge = handleTest ./deluge.nix {};
56+ dhparams = handleTest ./dhparams.nix {};
57+ dnscrypt-proxy = handleTestOn ["x86_64-linux"] ./dnscrypt-proxy.nix {};
58+ docker = handleTestOn ["x86_64-linux"] ./docker.nix {};
59+ docker-edge = handleTestOn ["x86_64-linux"] ./docker-edge.nix {};
60+ docker-preloader = handleTestOn ["x86_64-linux"] ./docker-preloader.nix {};
61+ docker-registry = handleTest ./docker-registry.nix {};
62+ docker-tools = handleTestOn ["x86_64-linux"] ./docker-tools.nix {};
63+ docker-tools-overlay = handleTestOn ["x86_64-linux"] ./docker-tools-overlay.nix {};
64+ dovecot = handleTest ./dovecot.nix {};
65+ # ec2-config doesn't work in a sandbox as the simulated ec2 instance needs network access
66+ #ec2-config = (handleTestOn ["x86_64-linux"] ./ec2.nix {}).boot-ec2-config or {};
67+ ec2-nixops = (handleTestOn ["x86_64-linux"] ./ec2.nix {}).boot-ec2-nixops or {};
68+ ecryptfs = handleTest ./ecryptfs.nix {};
69+ elk = handleTestOn ["x86_64-linux"] ./elk.nix {};
70+ env = handleTest ./env.nix {};
71+ etcd = handleTestOn ["x86_64-linux"] ./etcd.nix {};
72+ ferm = handleTest ./ferm.nix {};
73+ firefox = handleTest ./firefox.nix {};
74+ firewall = handleTest ./firewall.nix {};
75+ flatpak = handleTest ./flatpak.nix {};
76+ fsck = handleTest ./fsck.nix {};
77+ fwupd = handleTestOn ["x86_64-linux"] ./fwupd.nix {}; # libsmbios is unsupported on aarch64
78+ gdk-pixbuf = handleTest ./gdk-pixbuf.nix {};
79+ gitea = handleTest ./gitea.nix {};
80+ gitlab = handleTest ./gitlab.nix {};
81+ gitolite = handleTest ./gitolite.nix {};
82+ gjs = handleTest ./gjs.nix {};
83+ gnome3 = handleTestOn ["x86_64-linux"] ./gnome3.nix {}; # libsmbios is unsupported on aarch64
84+ gnome3-gdm = handleTestOn ["x86_64-linux"] ./gnome3-gdm.nix {}; # libsmbios is unsupported on aarch64
85+ gocd-agent = handleTest ./gocd-agent.nix {};
86+ gocd-server = handleTest ./gocd-server.nix {};
87+ grafana = handleTest ./grafana.nix {};
88+ graphite = handleTest ./graphite.nix {};
89+ hadoop.hdfs = handleTestOn [ "x86_64-linux" ] ./hadoop/hdfs.nix {};
90+ hadoop.yarn = handleTestOn [ "x86_64-linux" ] ./hadoop/yarn.nix {};
91+ haproxy = handleTest ./haproxy.nix {};
92+ #hardened = handleTest ./hardened.nix {}; # broken due useSandbox = true
93+ hibernate = handleTest ./hibernate.nix {};
94+ hitch = handleTest ./hitch {};
95+ hocker-fetchdocker = handleTest ./hocker-fetchdocker {};
96+ home-assistant = handleTest ./home-assistant.nix {};
97+ hound = handleTest ./hound.nix {};
98+ hydra = handleTest ./hydra {};
99+ i3wm = handleTest ./i3wm.nix {};
100+ iftop = handleTest ./iftop.nix {};
101+ incron = handleTest tests/incron.nix {};
102+ influxdb = handleTest ./influxdb.nix {};
103+ initrd-network-ssh = handleTest ./initrd-network-ssh {};
104+ initrdNetwork = handleTest ./initrd-network.nix {};
105+ installer = handleTest ./installer.nix {};
106+ ipv6 = handleTest ./ipv6.nix {};
107+ jenkins = handleTest ./jenkins.nix {};
108+ kafka = handleTest ./kafka.nix {};
109+ kernel-latest = handleTest ./kernel-latest.nix {};
110+ kernel-lts = handleTest ./kernel-lts.nix {};
111+ keymap = handleTest ./keymap.nix {};
112+ kubernetes.dns = handleTestOn ["x86_64-linux"] ./kubernetes/dns.nix {};
113+ # kubernetes.e2e should eventually replace kubernetes.rbac when it works
114+ #kubernetes.e2e = handleTestOn ["x86_64-linux"] ./kubernetes/e2e.nix {};
115+ kubernetes.rbac = handleTestOn ["x86_64-linux"] ./kubernetes/rbac.nix {};
116+ latestKernel.login = handleTest ./login.nix { latestKernel = true; };
117+ ldap = handleTest ./ldap.nix {};
118+ leaps = handleTest ./leaps.nix {};
119+ #lightdm = handleTest ./lightdm.nix {};
120+ login = handleTest ./login.nix {};
121+ #logstash = handleTest ./logstash.nix {};
122+ mathics = handleTest ./mathics.nix {};
123+ matrix-synapse = handleTest ./matrix-synapse.nix {};
124+ memcached = handleTest ./memcached.nix {};
125+ mesos = handleTest ./mesos.nix {};
126+ misc = handleTest ./misc.nix {};
127+ mongodb = handleTest ./mongodb.nix {};
128+ morty = handleTest ./morty.nix {};
129+ mpd = handleTest ./mpd.nix {};
130+ mumble = handleTest ./mumble.nix {};
131+ munin = handleTest ./munin.nix {};
132+ mutableUsers = handleTest ./mutable-users.nix {};
133+ mysql = handleTest ./mysql.nix {};
134+ mysqlBackup = handleTest ./mysql-backup.nix {};
135+ mysqlReplication = handleTest ./mysql-replication.nix {};
136+ nat.firewall = handleTest ./nat.nix { withFirewall = true; };
137+ nat.firewall-conntrack = handleTest ./nat.nix { withFirewall = true; withConntrackHelpers = true; };
138+ nat.standalone = handleTest ./nat.nix { withFirewall = false; };
139+ netdata = handleTest ./netdata.nix {};
140+ networking.networkd = handleTest ./networking.nix { networkd = true; };
141+ networking.scripted = handleTest ./networking.nix { networkd = false; };
142+ # TODO: put in networking.nix after the test becomes more complete
143+ networkingProxy = handleTest ./networking-proxy.nix {};
144+ nextcloud = handleTest ./nextcloud {};
145+ nexus = handleTest ./nexus.nix {};
146+ nfs3 = handleTest ./nfs.nix { version = 3; };
147+ nfs4 = handleTest ./nfs.nix { version = 4; };
148+ nghttpx = handleTest ./nghttpx.nix {};
149+ nginx = handleTest ./nginx.nix {};
150+ nix-ssh-serve = handleTest ./nix-ssh-serve.nix {};
151+ novacomd = handleTestOn ["x86_64-linux"] ./novacomd.nix {};
152+ nsd = handleTest ./nsd.nix {};
153+ openldap = handleTest ./openldap.nix {};
154+ opensmtpd = handleTest ./opensmtpd.nix {};
155+ openssh = handleTest ./openssh.nix {};
156+ osquery = handleTest ./osquery.nix {};
157+ ostree = handleTest ./ostree.nix {};
158+ owncloud = handleTest ./owncloud.nix {};
159+ pam-oath-login = handleTest ./pam-oath-login.nix {};
160+ peerflix = handleTest ./peerflix.nix {};
161+ pgjwt = handleTest ./pgjwt.nix {};
162+ pgmanage = handleTest ./pgmanage.nix {};
163+ php-pcre = handleTest ./php-pcre.nix {};
164+ plasma5 = handleTest ./plasma5.nix {};
165+ plotinus = handleTest ./plotinus.nix {};
166+ postgis = handleTest ./postgis.nix {};
167+ postgresql = handleTest ./postgresql.nix {};
168+ powerdns = handleTest ./powerdns.nix {};
169+ predictable-interface-names = handleTest ./predictable-interface-names.nix {};
170+ printing = handleTest ./printing.nix {};
171+ prometheus = handleTest ./prometheus.nix {};
172+ prometheus-exporters = handleTest ./prometheus-exporters.nix {};
173+ prosody = handleTest ./prosody.nix {};
174+ proxy = handleTest ./proxy.nix {};
175+ quagga = handleTest ./quagga.nix {};
176+ quake3 = handleTest ./quake3.nix {};
177+ rabbitmq = handleTest ./rabbitmq.nix {};
178+ radicale = handleTest ./radicale.nix {};
179+ redmine = handleTest ./redmine.nix {};
180+ rspamd = handleTest ./rspamd.nix {};
181+ rsyslogd = handleTest ./rsyslogd.nix {};
182+ runInMachine = handleTest ./run-in-machine.nix {};
183+ rxe = handleTest ./rxe.nix {};
184+ samba = handleTest ./samba.nix {};
185+ sddm = handleTest ./sddm.nix {};
186+ simple = handleTest ./simple.nix {};
187+ slim = handleTest ./slim.nix {};
188+ slurm = handleTest ./slurm.nix {};
189+ smokeping = handleTest ./smokeping.nix {};
190+ snapper = handleTest ./snapper.nix {};
191+ solr = handleTest ./solr.nix {};
192+ #statsd = handleTest ./statsd.nix {}; # statsd is broken: #45946
193+ strongswan-swanctl = handleTest ./strongswan-swanctl.nix {};
194+ sudo = handleTest ./sudo.nix {};
195+ switchTest = handleTest ./switch-test.nix {};
196+ systemd = handleTest ./systemd.nix {};
197+ taskserver = handleTest ./taskserver.nix {};
198+ tomcat = handleTest ./tomcat.nix {};
199+ tor = handleTest ./tor.nix {};
200+ transmission = handleTest ./transmission.nix {};
201+ udisks2 = handleTest ./udisks2.nix {};
202+ upnp = handleTest ./upnp.nix {};
203+ vault = handleTest ./vault.nix {};
204+ virtualbox = handleTestOn ["x86_64-linux"] ./virtualbox.nix {};
205+ wordpress = handleTest ./wordpress.nix {};
206+ xautolock = handleTest ./xautolock.nix {};
207+ xdg-desktop-portal = handleTest ./xdg-desktop-portal.nix {};
208+ xfce = handleTest ./xfce.nix {};
209+ xmonad = handleTest ./xmonad.nix {};
210+ xrdp = handleTest ./xrdp.nix {};
211+ xss-lock = handleTest ./xss-lock.nix {};
212+ yabar = handleTest ./yabar.nix {};
213+ zookeeper = handleTest ./zookeeper.nix {};
214+}
nixos/tests/boot.nix+5−2
@@ -1,6 +1,9 @@
1−{ system ? builtins.currentSystem }:
1+{ system ? builtins.currentSystem,
2+ config ? {},
3+ pkgs ? import ../.. { inherit system config; }
4+}:
25
3−with import ../lib/testing.nix { inherit system; };
6+with import ../lib/testing.nix { inherit system pkgs; };
47with pkgs.lib;
58
69let
nixos/tests/buildbot.nix+5−2
@@ -1,6 +1,9 @@
1−{ system ? builtins.currentSystem }:
1+{ system ? builtins.currentSystem,
2+ config ? {},
3+ pkgs ? import ../.. { inherit system config; }
4+}:
25
3−with import ../lib/testing.nix { inherit system; };
6+with import ../lib/testing.nix { inherit system pkgs; };
47
58let
69 # Test ensures buildbot master comes up correctly and workers can connect
nixos/tests/certmgr.nix+5−2
@@ -1,6 +1,9 @@
1−{ system ? builtins.currentSystem }:
1+{ system ? builtins.currentSystem,
2+ config ? {},
3+ pkgs ? import ../.. { inherit system config; }
4+}:
25
3−with import ../lib/testing.nix { inherit system; };
6+with import ../lib/testing.nix { inherit system pkgs; };
47let
58 mkSpec = { host, service ? null, action }: {
69 inherit action;
nixos/tests/chromium.nix+3−2
@@ -1,5 +1,6 @@
11{ system ? builtins.currentSystem
2−, pkgs ? import ../.. { inherit system; }
2+, config ? {}
3+, pkgs ? import ../.. { inherit system config; }
34, channelMap ? {
45 stable = pkgs.chromium;
56 beta = pkgs.chromiumBeta;
@@ -7,7 +8,7 @@
78 }
89}:
910
10−with import ../lib/testing.nix { inherit system; };
11+with import ../lib/testing.nix { inherit system pkgs; };
1112with pkgs.lib;
1213
1314mapAttrs (channel: chromiumPkg: makeTest rec {
nixos/tests/cloud-init.nix+5−2
@@ -1,6 +1,9 @@
1−{ system ? builtins.currentSystem }:
1+{ system ? builtins.currentSystem,
2+ config ? {},
3+ pkgs ? import ../.. { inherit system config; }
4+}:
25
3−with import ../lib/testing.nix { inherit system; };
6+with import ../lib/testing.nix { inherit system pkgs; };
47with pkgs.lib;
58
69let
nixos/tests/ec2.nix+5−2
@@ -1,6 +1,9 @@
1−{ system ? builtins.currentSystem }:
1+{ system ? builtins.currentSystem,
2+ config ? {},
3+ pkgs ? import ../.. { inherit system config; }
4+}:
25
3−with import ../lib/testing.nix { inherit system; };
6+with import ../lib/testing.nix { inherit system pkgs; };
47with pkgs.lib;
58
69let
nixos/tests/elk.nix+8−2
@@ -1,6 +1,12 @@
1−{ system ? builtins.currentSystem, enableUnfree ? false }:
2−with import ../lib/testing.nix { inherit system; };
1+{ system ? builtins.currentSystem,
2+ config ? {},
3+ pkgs ? import ../.. { inherit system config; },
4+ enableUnfree ? false
5+}:
6+
7+with import ../lib/testing.nix { inherit system pkgs; };
38with pkgs.lib;
9+
410let
511 esUrl = "http://localhost:9200";
612
nixos/tests/gitea.nix+5−2
@@ -1,6 +1,9 @@
1−{ system ? builtins.currentSystem }:
1+{ system ? builtins.currentSystem,
2+ config ? {},
3+ pkgs ? import ../.. { inherit system config; }
4+}:
25
3−with import ../lib/testing.nix { inherit system; };
6+with import ../lib/testing.nix { inherit system pkgs; };
47with pkgs.lib;
58
69{
nixos/tests/installer.nix+5−2
@@ -1,6 +1,9 @@
1−{ system ? builtins.currentSystem }:
1+{ system ? builtins.currentSystem,
2+ config ? {},
3+ pkgs ? import ../.. { inherit system config; }
4+}:
25
3−with import ../lib/testing.nix { inherit system; };
6+with import ../lib/testing.nix { inherit system pkgs; };
47with pkgs.lib;
58
69let
nixos/tests/kafka.nix+6−2
@@ -1,5 +1,9 @@
1−{ system ? builtins.currentSystem }:
2−with import ../lib/testing.nix { inherit system; };
1+{ system ? builtins.currentSystem,
2+ config ? {},
3+ pkgs ? import ../.. { inherit system config; }
4+}:
5+
6+with import ../lib/testing.nix { inherit system pkgs; };
37with pkgs.lib;
48
59let
nixos/tests/keymap.nix+5−2
@@ -1,6 +1,9 @@
1−{ system ? builtins.currentSystem }:
1+{ system ? builtins.currentSystem,
2+ config ? {},
3+ pkgs ? import ../.. { inherit system config; }
4+}:
25
3−with import ../lib/testing.nix { inherit system; };
6+with import ../lib/testing.nix { inherit system pkgs; };
47
58let
69 readyFile = "/tmp/readerReady";
nixos/tests/kubernetes/base.nix+5−2
@@ -1,6 +1,9 @@
1−{ system ? builtins.currentSystem }:
1+{ system ? builtins.currentSystem,
2+ config ? {},
3+ pkgs ? import ../.. { inherit system config; }
4+}:
25
3−with import ../../lib/testing.nix { inherit system; };
6+with import ../../lib/testing.nix { inherit system pkgs; };
47with pkgs.lib;
58
69let
nixos/tests/make-test.nix+6−2
@@ -1,5 +1,9 @@
1−f: { system ? builtins.currentSystem, ... } @ args:
1+f: {
2+ system ? builtins.currentSystem,
3+ pkgs ? import ../.. { inherit system; config = {}; },
4+ ...
5+} @ args:
26
3−with import ../lib/testing.nix { inherit system; };
7+with import ../lib/testing.nix { inherit system pkgs; };
48
59makeTest (if pkgs.lib.isFunction f then f (args // { inherit pkgs; inherit (pkgs) lib; }) else f)
nixos/tests/networking.nix+3−1
@@ -1,8 +1,10 @@
11{ system ? builtins.currentSystem
2+, config ? {}
3+, pkgs ? import ../.. { inherit system config; },
24# bool: whether to use networkd in the tests
35, networkd }:
46
5−with import ../lib/testing.nix { inherit system; };
7+with import ../lib/testing.nix { inherit system pkgs; };
68with pkgs.lib;
79
810let
nixos/tests/nextcloud/default.nix+7−4
@@ -1,6 +1,9 @@
1−{ system ? builtins.currentSystem }:
1+{ system ? builtins.currentSystem,
2+ config ? {},
3+ pkgs ? import ../../.. { inherit system config; }
4+}:
25{
3− basic = import ./basic.nix { inherit system; };
4− with-postgresql-and-redis = import ./with-postgresql-and-redis.nix { inherit system; };
5− with-mysql-and-memcached = import ./with-mysql-and-memcached.nix { inherit system; };
6+ basic = import ./basic.nix { inherit system pkgs; };
7+ with-postgresql-and-redis = import ./with-postgresql-and-redis.nix { inherit system pkgs; };
8+ with-mysql-and-memcached = import ./with-mysql-and-memcached.nix { inherit system pkgs; };
69}
nixos/tests/postgresql.nix+7−2
@@ -1,6 +1,11 @@
1−{ system ? builtins.currentSystem }:
2−with import ../lib/testing.nix { inherit system; };
1+{ system ? builtins.currentSystem,
2+ config ? {},
3+ pkgs ? import ../.. { inherit system config; }
4+}:
5+
6+with import ../lib/testing.nix { inherit system pkgs; };
37with pkgs.lib;
8+
49let
510 postgresql-versions = pkgs.callPackages ../../pkgs/servers/sql/postgresql { };
611 test-sql = pkgs.writeText "postgresql-test" ''
nixos/tests/predictable-interface-names.nix+5−2
@@ -1,7 +1,10 @@
1−{ system ? builtins.currentSystem }:
1+{ system ? builtins.currentSystem,
2+ config ? {},
3+ pkgs ? import ../.. { inherit system config; }
4+}:
25
36let
4− inherit (import ../lib/testing.nix { inherit system; }) makeTest pkgs;
7+ inherit (import ../lib/testing.nix { inherit system pkgs; }) makeTest;
58in pkgs.lib.listToAttrs (pkgs.lib.crossLists (predictable: withNetworkd: {
69 name = pkgs.lib.optionalString (!predictable) "un" + "predictable"
710 + pkgs.lib.optionalString withNetworkd "Networkd";
nixos/tests/rspamd.nix+7−2
@@ -1,6 +1,11 @@
1−{ system ? builtins.currentSystem }:
2−with import ../lib/testing.nix { inherit system; };
1+{ system ? builtins.currentSystem,
2+ config ? {},
3+ pkgs ? import ../.. { inherit system config; }
4+}:
5+
6+with import ../lib/testing.nix { inherit system pkgs; };
37with pkgs.lib;
8+
49let
510 initMachine = ''
611 startAll
nixos/tests/rsyslogd.nix+6−2
@@ -1,7 +1,11 @@
1−{ system ? builtins.currentSystem }:
1+{ system ? builtins.currentSystem,
2+ config ? {},
3+ pkgs ? import ../.. { inherit system config; }
4+}:
25
3−with import ../lib/testing.nix { inherit system; };
6+with import ../lib/testing.nix { inherit system pkgs; };
47with pkgs.lib;
8+
59{
610 test1 = makeTest {
711 name = "rsyslogd-test1";
nixos/tests/run-in-machine.nix+5−2
@@ -1,6 +1,9 @@
1−{ system ? builtins.currentSystem }:
1+{ system ? builtins.currentSystem,
2+ config ? {},
3+ pkgs ? import ../.. { inherit system config; }
4+}:
25
3−with import ../lib/testing.nix { inherit system; };
6+with import ../lib/testing.nix { inherit system pkgs; };
47
58let
69 output = runInMachine {
nixos/tests/sddm.nix+5−2
@@ -1,6 +1,9 @@
1−{ system ? builtins.currentSystem }:
1+{ system ? builtins.currentSystem,
2+ config ? {},
3+ pkgs ? import ../.. { inherit system config; }
4+}:
25
3−with import ../lib/testing.nix { inherit system; };
6+with import ../lib/testing.nix { inherit system pkgs; };
47
58let
69 inherit (pkgs) lib;
nixos/tests/virtualbox.nix+8−3
@@ -1,6 +1,11 @@
1−{ system ? builtins.currentSystem, debug ? false, enableUnfree ? false }:
2−
3−with import ../lib/testing.nix { inherit system; };
1+{ system ? builtins.currentSystem,
2+ config ? {},
3+ pkgs ? import ../.. { inherit system config; },
4+ debug ? false,
5+ enableUnfree ? false
6+}:
7+
8+with import ../lib/testing.nix { inherit system pkgs; };
49with pkgs.lib;
510
611let
nixos/tests/zfs.nix+5−2
@@ -1,6 +1,9 @@
1−{ system ? builtins.currentSystem }:
1+{ system ? builtins.currentSystem,
2+ config ? {},
3+ pkgs ? import ../.. { inherit system config; }
4+}:
25
3−with import ../lib/testing.nix { inherit system; };
6+with import ../lib/testing.nix { inherit system pkgs; };
47
58let
69
pkgs/servers/mail/dovecot/default.nix+3−6
@@ -68,11 +68,8 @@ stdenv.mkDerivation rec {
6868 description = "Open source IMAP and POP3 email server written with security primarily in mind";
6969 maintainers = with stdenv.lib.maintainers; [ peti rickynils fpletz ];
7070 platforms = stdenv.lib.platforms.unix;
71− # https://github.com/NixOS/nixpkgs/issues/50230 must be resolved before
72− # this can be enabled.
73− #
74− # tests = {
75− # opensmtpd-interaction = nixosTests.opensmtpd;
76− # };
71+ };
72+ passthru.tests = {
73+ opensmtpd-interaction = nixosTests.opensmtpd;
7774 };
7875}
pkgs/servers/mail/opensmtpd/default.nix+3−6
@@ -61,11 +61,8 @@ stdenv.mkDerivation rec {
6161 license = licenses.isc;
6262 platforms = platforms.linux;
6363 maintainers = with maintainers; [ rickynils obadz ekleog ];
64− # https://github.com/NixOS/nixpkgs/issues/50230 must be resolved before
65− # this can be enabled.
66− #
67− # tests = {
68− # basic-functionality-and-dovecot-interaction = nixosTests.opensmtpd;
69− # };
64+ };
65+ passthru.tests = {
66+ basic-functionality-and-dovecot-interaction = nixosTests.opensmtpd;
7067 };
7168}
pkgs/stdenv/generic/check-meta.nix+5−4
@@ -166,14 +166,15 @@ let
166166 hydraPlatforms = listOf str;
167167 broken = bool;
168168 # TODO: refactor once something like Profpatsch's types-simple will land
169+ # This is currently dead code due to https://github.com/NixOS/nix/issues/2532
169170 tests = attrsOf (mkOptionType {
170171 name = "test";
171− check = x: isDerivation x &&
172− x ? meta.timeout &&
173− x ? meta.needsVMSupport;
172+ check = x: x == {} || ( # Accept {} for tests that are unsupported
173+ isDerivation x &&
174+ x ? meta.timeout
175+ );
174176 merge = lib.options.mergeOneOption;
175177 });
176− needsVMSupport = bool;
177178 timeout = int;
178179
179180 # Weirder stuff that doesn't appear in the documentation?
pkgs/top-level/all-packages.nix+5−17
@@ -73,23 +73,11 @@ with pkgs;
7373
7474 ### Push NixOS tests inside the fixed point
7575
76− nixosTests =
77− let
78− # TODO(Ericson2314,ekleog): Check this will work correctly with cross-
79− system = builtins.currentSystem;
80− rawTests = (import ../../nixos/release.nix {
81− nixpkgs = pkgs;
82− }).tests;
83− testNames = builtins.attrNames rawTests;
84− filteredList = builtins.filter
85− (test: rawTests.${test} ? ${system})
86− testNames;
87− finalList = map
88− (test: { name = test; value = rawTests.${test}.${system}; })
89− filteredList;
90− finalTests = builtins.listToAttrs finalList;
91− in
92− finalTests;
76+ nixosTests = import ../../nixos/tests/all-tests.nix {
77+ inherit pkgs;
78+ system = stdenv.hostPlatform.system;
79+ callTest = t: t.test;
80+ };
9381
9482 ### BUILD SUPPORT
9583