1{ system,
2 pkgs,
3
4 # Projects the test configuration into a the desired value; usually
5 # the test runner: `config: config.test`.
6 callTest,
7
8}:
9# The return value of this function will be an attrset with arbitrary depth and
10# the `anything` returned by callTest at its test leafs.
11# The tests not supported by `system` will be replaced with `{}`, so that
12# `passthru.tests` can contain links to those without breaking on architectures
13# where said tests are unsupported.
14# Example callTest that just extracts the derivation from the test:
15# callTest = t: t.test;
16
17with pkgs.lib;
18
19let
20 discoverTests = val:
21 if isAttrs val
22 then
23 if hasAttr "test" val then callTest val
24 else mapAttrs (n: s: discoverTests s) val
25 else if isFunction val
26 then
27 # Tests based on make-test-python.nix will return the second lambda
28 # in that file, which are then forwarded to the test definition
29 # following the `import make-test-python.nix` expression
30 # (if it is a function).
31 discoverTests (val { inherit system pkgs; })
32 else val;
33 handleTest = path: args:
34 discoverTests (import path ({ inherit system pkgs; } // args));
35 handleTestOn = systems: path: args:
36 if elem system systems then handleTest path args
37 else {};
38
39 nixosLib = import ../lib {
40 # Experimental features need testing too, but there's no point in warning
41 # about it, so we enable the feature flag.
42 featureFlags.minimalModules = {};
43 };
44 evalMinimalConfig = module: nixosLib.evalModules { modules = [ module ]; };
45
46 inherit
47 (rec {
48 doRunTest = arg: ((import ../lib/testing-python.nix { inherit system pkgs; }).evalTest {
49 imports = [ arg ];
50 }).config.result;
51 findTests = tree:
52 if tree?recurseForDerivations && tree.recurseForDerivations
53 then
54 mapAttrs
55 (k: findTests)
56 (builtins.removeAttrs tree ["recurseForDerivations"])
57 else callTest tree;
58
59 runTest = arg: let r = doRunTest arg; in findTests r;
60 runTestOn = systems: arg:
61 if elem system systems then runTest arg
62 else {};
63 })
64 runTest
65 runTestOn
66 ;
67
68in {
69 _3proxy = runTest ./3proxy.nix;
70 acme = runTest ./acme.nix;
71 adguardhome = runTest ./adguardhome.nix;
72 aesmd = runTest ./aesmd.nix;
73 agate = runTest ./web-servers/agate.nix;
74 agda = handleTest ./agda.nix {};
75 airsonic = handleTest ./airsonic.nix {};
76 allTerminfo = handleTest ./all-terminfo.nix {};
77 alps = handleTest ./alps.nix {};
78 amazon-init-shell = handleTest ./amazon-init-shell.nix {};
79 apfs = handleTest ./apfs.nix {};
80 apparmor = handleTest ./apparmor.nix {};
81 atd = handleTest ./atd.nix {};
82 atop = handleTest ./atop.nix {};
83 auth-mysql = handleTest ./auth-mysql.nix {};
84 avahi = handleTest ./avahi.nix {};
85 avahi-with-resolved = handleTest ./avahi.nix { networkd = true; };
86 babeld = handleTest ./babeld.nix {};
87 bazarr = handleTest ./bazarr.nix {};
88 bcachefs = handleTestOn ["x86_64-linux" "aarch64-linux"] ./bcachefs.nix {};
89 beanstalkd = handleTest ./beanstalkd.nix {};
90 bees = handleTest ./bees.nix {};
91 bind = handleTest ./bind.nix {};
92 bird = handleTest ./bird.nix {};
93 bitcoind = handleTest ./bitcoind.nix {};
94 bittorrent = handleTest ./bittorrent.nix {};
95 blockbook-frontend = handleTest ./blockbook-frontend.nix {};
96 blocky = handleTest ./blocky.nix {};
97 boot = handleTestOn ["x86_64-linux" "aarch64-linux"] ./boot.nix {};
98 boot-stage1 = handleTest ./boot-stage1.nix {};
99 borgbackup = handleTest ./borgbackup.nix {};
100 botamusique = handleTest ./botamusique.nix {};
101 bpf = handleTestOn ["x86_64-linux" "aarch64-linux"] ./bpf.nix {};
102 breitbandmessung = handleTest ./breitbandmessung.nix {};
103 brscan5 = handleTest ./brscan5.nix {};
104 btrbk = handleTest ./btrbk.nix {};
105 btrbk-no-timer = handleTest ./btrbk-no-timer.nix {};
106 btrbk-section-order = handleTest ./btrbk-section-order.nix {};
107 buildbot = handleTest ./buildbot.nix {};
108 buildkite-agents = handleTest ./buildkite-agents.nix {};
109 caddy = handleTest ./caddy.nix {};
110 cadvisor = handleTestOn ["x86_64-linux"] ./cadvisor.nix {};
111 cage = handleTest ./cage.nix {};
112 cagebreak = handleTest ./cagebreak.nix {};
113 calibre-web = handleTest ./calibre-web.nix {};
114 cassandra_3_0 = handleTest ./cassandra.nix { testPackage = pkgs.cassandra_3_0; };
115 cassandra_3_11 = handleTest ./cassandra.nix { testPackage = pkgs.cassandra_3_11; };
116 ceph-multi-node = handleTestOn ["x86_64-linux"] ./ceph-multi-node.nix {};
117 ceph-single-node = handleTestOn ["x86_64-linux"] ./ceph-single-node.nix {};
118 ceph-single-node-bluestore = handleTestOn ["x86_64-linux"] ./ceph-single-node-bluestore.nix {};
119 certmgr = handleTest ./certmgr.nix {};
120 cfssl = handleTestOn ["aarch64-linux" "x86_64-linux"] ./cfssl.nix {};
121 charliecloud = handleTest ./charliecloud.nix {};
122 chromium = (handleTestOn ["aarch64-linux" "x86_64-linux"] ./chromium.nix {}).stable or {};
123 cinnamon = handleTest ./cinnamon.nix {};
124 cjdns = handleTest ./cjdns.nix {};
125 clickhouse = handleTest ./clickhouse.nix {};
126 cloud-init = handleTest ./cloud-init.nix {};
127 cloud-init-hostname = handleTest ./cloud-init-hostname.nix {};
128 cntr = handleTestOn ["aarch64-linux" "x86_64-linux"] ./cntr.nix {};
129 cockroachdb = handleTestOn ["x86_64-linux"] ./cockroachdb.nix {};
130 collectd = handleTest ./collectd.nix {};
131 consul = handleTest ./consul.nix {};
132 containers-bridge = handleTest ./containers-bridge.nix {};
133 containers-custom-pkgs.nix = handleTest ./containers-custom-pkgs.nix {};
134 containers-ephemeral = handleTest ./containers-ephemeral.nix {};
135 containers-extra_veth = handleTest ./containers-extra_veth.nix {};
136 containers-hosts = handleTest ./containers-hosts.nix {};
137 containers-imperative = handleTest ./containers-imperative.nix {};
138 containers-ip = handleTest ./containers-ip.nix {};
139 containers-macvlans = handleTest ./containers-macvlans.nix {};
140 containers-names = handleTest ./containers-names.nix {};
141 containers-nested = handleTest ./containers-nested.nix {};
142 containers-physical_interfaces = handleTest ./containers-physical_interfaces.nix {};
143 containers-portforward = handleTest ./containers-portforward.nix {};
144 containers-reloadable = handleTest ./containers-reloadable.nix {};
145 containers-restart_networking = handleTest ./containers-restart_networking.nix {};
146 containers-tmpfs = handleTest ./containers-tmpfs.nix {};
147 containers-unified-hierarchy = handleTest ./containers-unified-hierarchy.nix {};
148 convos = handleTest ./convos.nix {};
149 corerad = handleTest ./corerad.nix {};
150 coturn = handleTest ./coturn.nix {};
151 couchdb = handleTest ./couchdb.nix {};
152 cri-o = handleTestOn ["aarch64-linux" "x86_64-linux"] ./cri-o.nix {};
153 custom-ca = handleTest ./custom-ca.nix {};
154 croc = handleTest ./croc.nix {};
155 deluge = handleTest ./deluge.nix {};
156 dendrite = handleTest ./matrix/dendrite.nix {};
157 dex-oidc = handleTest ./dex-oidc.nix {};
158 dhparams = handleTest ./dhparams.nix {};
159 disable-installer-tools = handleTest ./disable-installer-tools.nix {};
160 discourse = handleTest ./discourse.nix {};
161 dnscrypt-proxy2 = handleTestOn ["x86_64-linux"] ./dnscrypt-proxy2.nix {};
162 dnscrypt-wrapper = handleTestOn ["x86_64-linux"] ./dnscrypt-wrapper {};
163 dnsdist = handleTest ./dnsdist.nix {};
164 doas = handleTest ./doas.nix {};
165 docker = handleTestOn ["aarch64-linux" "x86_64-linux"] ./docker.nix {};
166 docker-rootless = handleTestOn ["aarch64-linux" "x86_64-linux"] ./docker-rootless.nix {};
167 docker-registry = handleTest ./docker-registry.nix {};
168 docker-tools = handleTestOn ["x86_64-linux"] ./docker-tools.nix {};
169 docker-tools-cross = handleTestOn ["x86_64-linux" "aarch64-linux"] ./docker-tools-cross.nix {};
170 docker-tools-overlay = handleTestOn ["x86_64-linux"] ./docker-tools-overlay.nix {};
171 documize = handleTest ./documize.nix {};
172 documentation = pkgs.callPackage ../modules/misc/documentation/test.nix { inherit nixosLib; };
173 doh-proxy-rust = handleTest ./doh-proxy-rust.nix {};
174 dokuwiki = handleTest ./dokuwiki.nix {};
175 dolibarr = handleTest ./dolibarr.nix {};
176 domination = handleTest ./domination.nix {};
177 dovecot = handleTest ./dovecot.nix {};
178 drbd = handleTest ./drbd.nix {};
179 earlyoom = handleTestOn ["x86_64-linux"] ./earlyoom.nix {};
180 ec2-config = (handleTestOn ["x86_64-linux"] ./ec2.nix {}).boot-ec2-config or {};
181 ec2-nixops = (handleTestOn ["x86_64-linux"] ./ec2.nix {}).boot-ec2-nixops or {};
182 ecryptfs = handleTest ./ecryptfs.nix {};
183 fscrypt = handleTest ./fscrypt.nix {};
184 ejabberd = handleTest ./xmpp/ejabberd.nix {};
185 elk = handleTestOn ["x86_64-linux"] ./elk.nix {};
186 emacs-daemon = handleTest ./emacs-daemon.nix {};
187 endlessh = handleTest ./endlessh.nix {};
188 endlessh-go = handleTest ./endlessh-go.nix {};
189 engelsystem = handleTest ./engelsystem.nix {};
190 enlightenment = handleTest ./enlightenment.nix {};
191 env = handleTest ./env.nix {};
192 envoy = handleTest ./envoy.nix {};
193 ergo = handleTest ./ergo.nix {};
194 ergochat = handleTest ./ergochat.nix {};
195 etc = pkgs.callPackage ../modules/system/etc/test.nix { inherit evalMinimalConfig; };
196 etcd = handleTestOn ["x86_64-linux"] ./etcd.nix {};
197 etcd-cluster = handleTestOn ["x86_64-linux"] ./etcd-cluster.nix {};
198 etebase-server = handleTest ./etebase-server.nix {};
199 etesync-dav = handleTest ./etesync-dav.nix {};
200 extra-python-packages = handleTest ./extra-python-packages.nix {};
201 fancontrol = handleTest ./fancontrol.nix {};
202 fcitx = handleTest ./fcitx {};
203 fenics = handleTest ./fenics.nix {};
204 ferm = handleTest ./ferm.nix {};
205 firefox = handleTest ./firefox.nix { firefoxPackage = pkgs.firefox; };
206 firefox-esr = handleTest ./firefox.nix { firefoxPackage = pkgs.firefox-esr; }; # used in `tested` job
207 firefox-esr-102 = handleTest ./firefox.nix { firefoxPackage = pkgs.firefox-esr-102; };
208 firejail = handleTest ./firejail.nix {};
209 firewall = handleTest ./firewall.nix {};
210 fish = handleTest ./fish.nix {};
211 flannel = handleTestOn ["x86_64-linux"] ./flannel.nix {};
212 fluentd = handleTest ./fluentd.nix {};
213 fluidd = handleTest ./fluidd.nix {};
214 fontconfig-default-fonts = handleTest ./fontconfig-default-fonts.nix {};
215 freeswitch = handleTest ./freeswitch.nix {};
216 freshrss = handleTest ./freshrss.nix {};
217 frr = handleTest ./frr.nix {};
218 fsck = handleTest ./fsck.nix {};
219 ft2-clone = handleTest ./ft2-clone.nix {};
220 mimir = handleTest ./mimir.nix {};
221 garage = handleTest ./garage.nix {};
222 gerrit = handleTest ./gerrit.nix {};
223 geth = handleTest ./geth.nix {};
224 ghostunnel = handleTest ./ghostunnel.nix {};
225 gitdaemon = handleTest ./gitdaemon.nix {};
226 gitea = handleTest ./gitea.nix {};
227 gitlab = handleTest ./gitlab.nix {};
228 gitolite = handleTest ./gitolite.nix {};
229 gitolite-fcgiwrap = handleTest ./gitolite-fcgiwrap.nix {};
230 glusterfs = handleTest ./glusterfs.nix {};
231 gnome = handleTest ./gnome.nix {};
232 gnome-xorg = handleTest ./gnome-xorg.nix {};
233 go-neb = handleTest ./go-neb.nix {};
234 gobgpd = handleTest ./gobgpd.nix {};
235 gocd-agent = handleTest ./gocd-agent.nix {};
236 gocd-server = handleTest ./gocd-server.nix {};
237 gollum = handleTest ./gollum.nix {};
238 google-oslogin = handleTest ./google-oslogin {};
239 gotify-server = handleTest ./gotify-server.nix {};
240 grafana = handleTest ./grafana {};
241 grafana-agent = handleTest ./grafana-agent.nix {};
242 graphite = handleTest ./graphite.nix {};
243 graylog = handleTest ./graylog.nix {};
244 grocy = handleTest ./grocy.nix {};
245 grub = handleTest ./grub.nix {};
246 gvisor = handleTest ./gvisor.nix {};
247 hadoop = import ./hadoop { inherit handleTestOn; package=pkgs.hadoop; };
248 hadoop_3_2 = import ./hadoop { inherit handleTestOn; package=pkgs.hadoop_3_2; };
249 hadoop2 = import ./hadoop { inherit handleTestOn; package=pkgs.hadoop2; };
250 haka = handleTest ./haka.nix {};
251 haste-server = handleTest ./haste-server.nix {};
252 haproxy = handleTest ./haproxy.nix {};
253 hardened = handleTest ./hardened.nix {};
254 healthchecks = handleTest ./web-apps/healthchecks.nix {};
255 hbase2 = handleTest ./hbase.nix { package=pkgs.hbase2; };
256 hbase_2_4 = handleTest ./hbase.nix { package=pkgs.hbase_2_4; };
257 hbase3 = handleTest ./hbase.nix { package=pkgs.hbase3; };
258 hedgedoc = handleTest ./hedgedoc.nix {};
259 herbstluftwm = handleTest ./herbstluftwm.nix {};
260 installed-tests = pkgs.recurseIntoAttrs (handleTest ./installed-tests {});
261 invidious = handleTest ./invidious.nix {};
262 oci-containers = handleTestOn ["aarch64-linux" "x86_64-linux"] ./oci-containers.nix {};
263 odoo = handleTest ./odoo.nix {};
264 # 9pnet_virtio used to mount /nix partition doesn't support
265 # hibernation. This test happens to work on x86_64-linux but
266 # not on other platforms.
267 hibernate = handleTestOn ["x86_64-linux"] ./hibernate.nix {};
268 hibernate-systemd-stage-1 = handleTestOn ["x86_64-linux"] ./hibernate.nix { systemdStage1 = true; };
269 hitch = handleTest ./hitch {};
270 hledger-web = handleTest ./hledger-web.nix {};
271 hocker-fetchdocker = handleTest ./hocker-fetchdocker {};
272 hockeypuck = handleTest ./hockeypuck.nix { };
273 home-assistant = handleTest ./home-assistant.nix {};
274 hostname = handleTest ./hostname.nix {};
275 hound = handleTest ./hound.nix {};
276 hub = handleTest ./git/hub.nix {};
277 hydra = handleTest ./hydra {};
278 i3wm = handleTest ./i3wm.nix {};
279 icingaweb2 = handleTest ./icingaweb2.nix {};
280 iftop = handleTest ./iftop.nix {};
281 ihatemoney = handleTest ./ihatemoney {};
282 incron = handleTest ./incron.nix {};
283 influxdb = handleTest ./influxdb.nix {};
284 initrd-network-openvpn = handleTest ./initrd-network-openvpn {};
285 initrd-network-ssh = handleTest ./initrd-network-ssh {};
286 initrdNetwork = handleTest ./initrd-network.nix {};
287 initrd-secrets = handleTest ./initrd-secrets.nix {};
288 input-remapper = handleTest ./input-remapper.nix {};
289 inspircd = handleTest ./inspircd.nix {};
290 installer = handleTest ./installer.nix {};
291 installer-systemd-stage-1 = handleTest ./installer-systemd-stage-1.nix {};
292 invoiceplane = handleTest ./invoiceplane.nix {};
293 iodine = handleTest ./iodine.nix {};
294 ipv6 = handleTest ./ipv6.nix {};
295 iscsi-multipath-root = handleTest ./iscsi-multipath-root.nix {};
296 iscsi-root = handleTest ./iscsi-root.nix {};
297 isso = handleTest ./isso.nix {};
298 jackett = handleTest ./jackett.nix {};
299 jellyfin = handleTest ./jellyfin.nix {};
300 jenkins = handleTest ./jenkins.nix {};
301 jenkins-cli = handleTest ./jenkins-cli.nix {};
302 jibri = handleTest ./jibri.nix {};
303 jirafeau = handleTest ./jirafeau.nix {};
304 jitsi-meet = handleTest ./jitsi-meet.nix {};
305 k3s = handleTest ./k3s {};
306 kafka = handleTest ./kafka.nix {};
307 kanidm = handleTest ./kanidm.nix {};
308 karma = handleTest ./karma.nix {};
309 kbd-setfont-decompress = handleTest ./kbd-setfont-decompress.nix {};
310 kbd-update-search-paths-patch = handleTest ./kbd-update-search-paths-patch.nix {};
311 kea = handleTest ./kea.nix {};
312 keepalived = handleTest ./keepalived.nix {};
313 keepassxc = handleTest ./keepassxc.nix {};
314 kerberos = handleTest ./kerberos/default.nix {};
315 kernel-generic = handleTest ./kernel-generic.nix {};
316 kernel-latest-ath-user-regd = handleTest ./kernel-latest-ath-user-regd.nix {};
317 keter = handleTest ./keter.nix {};
318 kexec = handleTest ./kexec.nix {};
319 keycloak = discoverTests (import ./keycloak.nix);
320 keymap = handleTest ./keymap.nix {};
321 knot = handleTest ./knot.nix {};
322 komga = handleTest ./komga.nix {};
323 krb5 = discoverTests (import ./krb5 {});
324 ksm = handleTest ./ksm.nix {};
325 kthxbye = handleTest ./kthxbye.nix {};
326 kubernetes = handleTestOn ["x86_64-linux"] ./kubernetes {};
327 kubo = handleTest ./kubo.nix {};
328 ladybird = handleTest ./ladybird.nix {};
329 languagetool = handleTest ./languagetool.nix {};
330 latestKernel.login = handleTest ./login.nix { latestKernel = true; };
331 leaps = handleTest ./leaps.nix {};
332 lemmy = handleTest ./lemmy.nix {};
333 libinput = handleTest ./libinput.nix {};
334 libreddit = handleTest ./libreddit.nix {};
335 libresprite = handleTest ./libresprite.nix {};
336 libreswan = handleTest ./libreswan.nix {};
337 librewolf = handleTest ./firefox.nix { firefoxPackage = pkgs.librewolf; };
338 libuiohook = handleTest ./libuiohook.nix {};
339 libvirtd = handleTest ./libvirtd.nix {};
340 lidarr = handleTest ./lidarr.nix {};
341 lightdm = handleTest ./lightdm.nix {};
342 lighttpd = handleTest ./lighttpd.nix {};
343 limesurvey = handleTest ./limesurvey.nix {};
344 listmonk = handleTest ./listmonk.nix {};
345 litestream = handleTest ./litestream.nix {};
346 locate = handleTest ./locate.nix {};
347 login = handleTest ./login.nix {};
348 logrotate = handleTest ./logrotate.nix {};
349 loki = handleTest ./loki.nix {};
350 lvm2 = handleTest ./lvm2 {};
351 lxd = handleTest ./lxd.nix {};
352 lxd-nftables = handleTest ./lxd-nftables.nix {};
353 lxd-image-server = handleTest ./lxd-image-server.nix {};
354 #logstash = handleTest ./logstash.nix {};
355 lorri = handleTest ./lorri/default.nix {};
356 maddy = handleTest ./maddy.nix {};
357 maestral = handleTest ./maestral.nix {};
358 magic-wormhole-mailbox-server = handleTest ./magic-wormhole-mailbox-server.nix {};
359 magnetico = handleTest ./magnetico.nix {};
360 mailcatcher = handleTest ./mailcatcher.nix {};
361 mailhog = handleTest ./mailhog.nix {};
362 man = handleTest ./man.nix {};
363 mariadb-galera = handleTest ./mysql/mariadb-galera.nix {};
364 mastodon = handleTestOn ["x86_64-linux" "i686-linux" "aarch64-linux"] ./web-apps/mastodon.nix {};
365 matomo = handleTest ./matomo.nix {};
366 matrix-appservice-irc = handleTest ./matrix/appservice-irc.nix {};
367 matrix-conduit = handleTest ./matrix/conduit.nix {};
368 matrix-synapse = handleTest ./matrix/synapse.nix {};
369 mattermost = handleTest ./mattermost.nix {};
370 mediatomb = handleTest ./mediatomb.nix {};
371 mediawiki = handleTest ./mediawiki.nix {};
372 meilisearch = handleTest ./meilisearch.nix {};
373 memcached = handleTest ./memcached.nix {};
374 merecat = handleTest ./merecat.nix {};
375 metabase = handleTest ./metabase.nix {};
376 minecraft = handleTest ./minecraft.nix {};
377 minecraft-server = handleTest ./minecraft-server.nix {};
378 minidlna = handleTest ./minidlna.nix {};
379 miniflux = handleTest ./miniflux.nix {};
380 minio = handleTest ./minio.nix {};
381 misc = handleTest ./misc.nix {};
382 mjolnir = handleTest ./matrix/mjolnir.nix {};
383 mod_perl = handleTest ./mod_perl.nix {};
384 molly-brown = handleTest ./molly-brown.nix {};
385 mongodb = handleTest ./mongodb.nix {};
386 moodle = handleTest ./moodle.nix {};
387 moonraker = handleTest ./moonraker.nix {};
388 morty = handleTest ./morty.nix {};
389 mosquitto = handleTest ./mosquitto.nix {};
390 moosefs = handleTest ./moosefs.nix {};
391 mpd = handleTest ./mpd.nix {};
392 mpv = handleTest ./mpv.nix {};
393 mtp = handleTest ./mtp.nix {};
394 mumble = handleTest ./mumble.nix {};
395 musescore = handleTest ./musescore.nix {};
396 munin = handleTest ./munin.nix {};
397 mutableUsers = handleTest ./mutable-users.nix {};
398 mxisd = handleTest ./mxisd.nix {};
399 mysql = handleTest ./mysql/mysql.nix {};
400 mysql-autobackup = handleTest ./mysql/mysql-autobackup.nix {};
401 mysql-backup = handleTest ./mysql/mysql-backup.nix {};
402 mysql-replication = handleTest ./mysql/mysql-replication.nix {};
403 n8n = handleTest ./n8n.nix {};
404 nagios = handleTest ./nagios.nix {};
405 nar-serve = handleTest ./nar-serve.nix {};
406 nat.firewall = handleTest ./nat.nix { withFirewall = true; };
407 nat.firewall-conntrack = handleTest ./nat.nix { withFirewall = true; withConntrackHelpers = true; };
408 nat.standalone = handleTest ./nat.nix { withFirewall = false; };
409 nats = handleTest ./nats.nix {};
410 navidrome = handleTest ./navidrome.nix {};
411 nbd = handleTest ./nbd.nix {};
412 ncdns = handleTest ./ncdns.nix {};
413 ndppd = handleTest ./ndppd.nix {};
414 nebula = handleTest ./nebula.nix {};
415 netbird = handleTest ./netbird.nix {};
416 neo4j = handleTest ./neo4j.nix {};
417 netdata = handleTest ./netdata.nix {};
418 networking.networkd = handleTest ./networking.nix { networkd = true; };
419 networking.scripted = handleTest ./networking.nix { networkd = false; };
420 specialisation = handleTest ./specialisation.nix {};
421 netbox = handleTest ./web-apps/netbox.nix {};
422 # TODO: put in networking.nix after the test becomes more complete
423 networkingProxy = handleTest ./networking-proxy.nix {};
424 nextcloud = handleTest ./nextcloud {};
425 nexus = handleTest ./nexus.nix {};
426 # TODO: Test nfsv3 + Kerberos
427 nfs3 = handleTest ./nfs { version = 3; };
428 nfs4 = handleTest ./nfs { version = 4; };
429 nghttpx = handleTest ./nghttpx.nix {};
430 nginx = handleTest ./nginx.nix {};
431 nginx-auth = handleTest ./nginx-auth.nix {};
432 nginx-etag = handleTest ./nginx-etag.nix {};
433 nginx-http3 = handleTest ./nginx-http3.nix {};
434 nginx-modsecurity = handleTest ./nginx-modsecurity.nix {};
435 nginx-njs = handleTest ./nginx-njs.nix {};
436 nginx-pubhtml = handleTest ./nginx-pubhtml.nix {};
437 nginx-sandbox = handleTestOn ["x86_64-linux"] ./nginx-sandbox.nix {};
438 nginx-sso = handleTest ./nginx-sso.nix {};
439 nginx-variants = handleTest ./nginx-variants.nix {};
440 nifi = handleTestOn ["x86_64-linux"] ./web-apps/nifi.nix {};
441 nitter = handleTest ./nitter.nix {};
442 nix-ld = handleTest ./nix-ld.nix {};
443 nix-serve = handleTest ./nix-serve.nix {};
444 nix-serve-ssh = handleTest ./nix-serve-ssh.nix {};
445 nixops = handleTest ./nixops/default.nix {};
446 nixos-generate-config = handleTest ./nixos-generate-config.nix {};
447 nixpkgs = pkgs.callPackage ../modules/misc/nixpkgs/test.nix { inherit evalMinimalConfig; };
448 node-red = handleTest ./node-red.nix {};
449 nomad = handleTest ./nomad.nix {};
450 non-default-filesystems = handleTest ./non-default-filesystems.nix {};
451 noto-fonts = handleTest ./noto-fonts.nix {};
452 novacomd = handleTestOn ["x86_64-linux"] ./novacomd.nix {};
453 nscd = handleTest ./nscd.nix {};
454 nsd = handleTest ./nsd.nix {};
455 ntfy-sh = handleTest ./ntfy-sh.nix {};
456 nzbget = handleTest ./nzbget.nix {};
457 nzbhydra2 = handleTest ./nzbhydra2.nix {};
458 oh-my-zsh = handleTest ./oh-my-zsh.nix {};
459 ombi = handleTest ./ombi.nix {};
460 openarena = handleTest ./openarena.nix {};
461 openldap = handleTest ./openldap.nix {};
462 openresty-lua = handleTest ./openresty-lua.nix {};
463 opensmtpd = handleTest ./opensmtpd.nix {};
464 opensmtpd-rspamd = handleTest ./opensmtpd-rspamd.nix {};
465 openssh = handleTest ./openssh.nix {};
466 openstack-image-metadata = (handleTestOn ["x86_64-linux"] ./openstack-image.nix {}).metadata or {};
467 openstack-image-userdata = (handleTestOn ["x86_64-linux"] ./openstack-image.nix {}).userdata or {};
468 opentabletdriver = handleTest ./opentabletdriver.nix {};
469 owncast = handleTest ./owncast.nix {};
470 image-contents = handleTest ./image-contents.nix {};
471 orangefs = handleTest ./orangefs.nix {};
472 os-prober = handleTestOn ["x86_64-linux"] ./os-prober.nix {};
473 osrm-backend = handleTest ./osrm-backend.nix {};
474 overlayfs = handleTest ./overlayfs.nix {};
475 pacemaker = handleTest ./pacemaker.nix {};
476 packagekit = handleTest ./packagekit.nix {};
477 pam-file-contents = handleTest ./pam/pam-file-contents.nix {};
478 pam-oath-login = handleTest ./pam/pam-oath-login.nix {};
479 pam-u2f = handleTest ./pam/pam-u2f.nix {};
480 pam-ussh = handleTest ./pam/pam-ussh.nix {};
481 pass-secret-service = handleTest ./pass-secret-service.nix {};
482 patroni = handleTest ./patroni.nix {};
483 pantalaimon = handleTest ./matrix/pantalaimon.nix {};
484 pantheon = handleTest ./pantheon.nix {};
485 paperless = handleTest ./paperless.nix {};
486 parsedmarc = handleTest ./parsedmarc {};
487 pdns-recursor = handleTest ./pdns-recursor.nix {};
488 peerflix = handleTest ./peerflix.nix {};
489 peertube = handleTestOn ["x86_64-linux"] ./web-apps/peertube.nix {};
490 pgadmin4 = handleTest ./pgadmin4.nix {};
491 pgadmin4-standalone = handleTest ./pgadmin4-standalone.nix {};
492 pgjwt = handleTest ./pgjwt.nix {};
493 pgmanage = handleTest ./pgmanage.nix {};
494 phosh = handleTest ./phosh.nix {};
495 php = handleTest ./php {};
496 php80 = handleTest ./php { php = pkgs.php80; };
497 php81 = handleTest ./php { php = pkgs.php81; };
498 php82 = handleTest ./php { php = pkgs.php82; };
499 phylactery = handleTest ./web-apps/phylactery.nix {};
500 pict-rs = handleTest ./pict-rs.nix {};
501 pinnwand = handleTest ./pinnwand.nix {};
502 plasma-bigscreen = handleTest ./plasma-bigscreen.nix {};
503 plasma5 = handleTest ./plasma5.nix {};
504 plasma5-systemd-start = handleTest ./plasma5-systemd-start.nix {};
505 plausible = handleTest ./plausible.nix {};
506 please = handleTest ./please.nix {};
507 pleroma = handleTestOn [ "x86_64-linux" "aarch64-linux" ] ./pleroma.nix {};
508 plikd = handleTest ./plikd.nix {};
509 plotinus = handleTest ./plotinus.nix {};
510 podgrab = handleTest ./podgrab.nix {};
511 podman = handleTestOn ["aarch64-linux" "x86_64-linux"] ./podman/default.nix {};
512 podman-dnsname = handleTestOn ["aarch64-linux" "x86_64-linux"] ./podman/dnsname.nix {};
513 podman-tls-ghostunnel = handleTestOn ["aarch64-linux" "x86_64-linux"] ./podman/tls-ghostunnel.nix {};
514 polaris = handleTest ./polaris.nix {};
515 pomerium = handleTestOn ["x86_64-linux"] ./pomerium.nix {};
516 postfix = handleTest ./postfix.nix {};
517 postfix-raise-smtpd-tls-security-level = handleTest ./postfix-raise-smtpd-tls-security-level.nix {};
518 postfixadmin = handleTest ./postfixadmin.nix {};
519 postgis = handleTest ./postgis.nix {};
520 postgresql = handleTest ./postgresql.nix {};
521 postgresql-wal-receiver = handleTest ./postgresql-wal-receiver.nix {};
522 powerdns = handleTest ./powerdns.nix {};
523 powerdns-admin = handleTest ./powerdns-admin.nix {};
524 power-profiles-daemon = handleTest ./power-profiles-daemon.nix {};
525 pppd = handleTest ./pppd.nix {};
526 predictable-interface-names = handleTest ./predictable-interface-names.nix {};
527 printing = handleTest ./printing.nix {};
528 privacyidea = handleTest ./privacyidea.nix {};
529 privoxy = handleTest ./privoxy.nix {};
530 prometheus = handleTest ./prometheus.nix {};
531 prometheus-exporters = handleTest ./prometheus-exporters.nix {};
532 prosody = handleTest ./xmpp/prosody.nix {};
533 prosody-mysql = handleTest ./xmpp/prosody-mysql.nix {};
534 proxy = handleTest ./proxy.nix {};
535 prowlarr = handleTest ./prowlarr.nix {};
536 pt2-clone = handleTest ./pt2-clone.nix {};
537 pykms = handleTest ./pykms.nix {};
538 public-inbox = handleTest ./public-inbox.nix {};
539 pulseaudio = discoverTests (import ./pulseaudio.nix);
540 qboot = handleTestOn ["x86_64-linux" "i686-linux"] ./qboot.nix {};
541 quorum = handleTest ./quorum.nix {};
542 quake3 = handleTest ./quake3.nix {};
543 rabbitmq = handleTest ./rabbitmq.nix {};
544 radarr = handleTest ./radarr.nix {};
545 radicale = handleTest ./radicale.nix {};
546 rasdaemon = handleTest ./rasdaemon.nix {};
547 redis = handleTest ./redis.nix {};
548 redmine = handleTest ./redmine.nix {};
549 restartByActivationScript = handleTest ./restart-by-activation-script.nix {};
550 restic = handleTest ./restic.nix {};
551 retroarch = handleTest ./retroarch.nix {};
552 robustirc-bridge = handleTest ./robustirc-bridge.nix {};
553 roundcube = handleTest ./roundcube.nix {};
554 rspamd = handleTest ./rspamd.nix {};
555 rss2email = handleTest ./rss2email.nix {};
556 rstudio-server = handleTest ./rstudio-server.nix {};
557 rsyncd = handleTest ./rsyncd.nix {};
558 rsyslogd = handleTest ./rsyslogd.nix {};
559 rxe = handleTest ./rxe.nix {};
560 sabnzbd = handleTest ./sabnzbd.nix {};
561 samba = handleTest ./samba.nix {};
562 samba-wsdd = handleTest ./samba-wsdd.nix {};
563 sanoid = handleTest ./sanoid.nix {};
564 schleuder = handleTest ./schleuder.nix {};
565 sddm = handleTest ./sddm.nix {};
566 seafile = handleTest ./seafile.nix {};
567 searx = handleTest ./searx.nix {};
568 service-runner = handleTest ./service-runner.nix {};
569 sfxr-qt = handleTest ./sfxr-qt.nix {};
570 shadow = handleTest ./shadow.nix {};
571 shadowsocks = handleTest ./shadowsocks {};
572 shattered-pixel-dungeon = handleTest ./shattered-pixel-dungeon.nix {};
573 shiori = handleTest ./shiori.nix {};
574 signal-desktop = handleTest ./signal-desktop.nix {};
575 simple = handleTest ./simple.nix {};
576 slurm = handleTest ./slurm.nix {};
577 smokeping = handleTest ./smokeping.nix {};
578 snapcast = handleTest ./snapcast.nix {};
579 snapper = handleTest ./snapper.nix {};
580 soapui = handleTest ./soapui.nix {};
581 sogo = handleTest ./sogo.nix {};
582 solanum = handleTest ./solanum.nix {};
583 solr = handleTest ./solr.nix {};
584 sonarr = handleTest ./sonarr.nix {};
585 sourcehut = handleTest ./sourcehut.nix {};
586 spacecookie = handleTest ./spacecookie.nix {};
587 spark = handleTestOn [ "x86_64-linux" "aarch64-linux" ] ./spark {};
588 sslh = handleTest ./sslh.nix {};
589 sssd = handleTestOn ["x86_64-linux"] ./sssd.nix {};
590 sssd-ldap = handleTestOn ["x86_64-linux"] ./sssd-ldap.nix {};
591 starship = handleTest ./starship.nix {};
592 step-ca = handleTestOn ["x86_64-linux"] ./step-ca.nix {};
593 stratis = handleTest ./stratis {};
594 strongswan-swanctl = handleTest ./strongswan-swanctl.nix {};
595 stunnel = handleTest ./stunnel.nix {};
596 sudo = handleTest ./sudo.nix {};
597 swap-partition = handleTest ./swap-partition.nix {};
598 sway = handleTest ./sway.nix {};
599 switchTest = handleTest ./switch-test.nix {};
600 sympa = handleTest ./sympa.nix {};
601 syncthing = handleTest ./syncthing.nix {};
602 syncthing-init = handleTest ./syncthing-init.nix {};
603 syncthing-relay = handleTest ./syncthing-relay.nix {};
604 systemd = handleTest ./systemd.nix {};
605 systemd-analyze = handleTest ./systemd-analyze.nix {};
606 systemd-binfmt = handleTestOn ["x86_64-linux"] ./systemd-binfmt.nix {};
607 systemd-boot = handleTest ./systemd-boot.nix {};
608 systemd-bpf = handleTest ./systemd-bpf.nix {};
609 systemd-confinement = handleTest ./systemd-confinement.nix {};
610 systemd-coredump = handleTest ./systemd-coredump.nix {};
611 systemd-cryptenroll = handleTest ./systemd-cryptenroll.nix {};
612 systemd-escaping = handleTest ./systemd-escaping.nix {};
613 systemd-initrd-btrfs-raid = handleTest ./systemd-initrd-btrfs-raid.nix {};
614 systemd-initrd-luks-fido2 = handleTest ./systemd-initrd-luks-fido2.nix {};
615 systemd-initrd-luks-keyfile = handleTest ./systemd-initrd-luks-keyfile.nix {};
616 systemd-initrd-luks-password = handleTest ./systemd-initrd-luks-password.nix {};
617 systemd-initrd-luks-tpm2 = handleTest ./systemd-initrd-luks-tpm2.nix {};
618 systemd-initrd-modprobe = handleTest ./systemd-initrd-modprobe.nix {};
619 systemd-initrd-shutdown = handleTest ./systemd-shutdown.nix { systemdStage1 = true; };
620 systemd-initrd-simple = handleTest ./systemd-initrd-simple.nix {};
621 systemd-initrd-swraid = handleTest ./systemd-initrd-swraid.nix {};
622 systemd-journal = handleTest ./systemd-journal.nix {};
623 systemd-machinectl = handleTest ./systemd-machinectl.nix {};
624 systemd-networkd = handleTest ./systemd-networkd.nix {};
625 systemd-networkd-dhcpserver = handleTest ./systemd-networkd-dhcpserver.nix {};
626 systemd-networkd-dhcpserver-static-leases = handleTest ./systemd-networkd-dhcpserver-static-leases.nix {};
627 systemd-networkd-ipv6-prefix-delegation = handleTest ./systemd-networkd-ipv6-prefix-delegation.nix {};
628 systemd-networkd-vrf = handleTest ./systemd-networkd-vrf.nix {};
629 systemd-no-tainted = handleTest ./systemd-no-tainted.nix {};
630 systemd-nspawn = handleTest ./systemd-nspawn.nix {};
631 systemd-oomd = handleTest ./systemd-oomd.nix {};
632 systemd-portabled = handleTest ./systemd-portabled.nix {};
633 systemd-shutdown = handleTest ./systemd-shutdown.nix {};
634 systemd-timesyncd = handleTest ./systemd-timesyncd.nix {};
635 systemd-misc = handleTest ./systemd-misc.nix {};
636 tandoor-recipes = handleTest ./tandoor-recipes.nix {};
637 taskserver = handleTest ./taskserver.nix {};
638 teeworlds = handleTest ./teeworlds.nix {};
639 telegraf = handleTest ./telegraf.nix {};
640 teleport = handleTest ./teleport.nix {};
641 thelounge = handleTest ./thelounge.nix {};
642 terminal-emulators = handleTest ./terminal-emulators.nix {};
643 tiddlywiki = handleTest ./tiddlywiki.nix {};
644 tigervnc = handleTest ./tigervnc.nix {};
645 timezone = handleTest ./timezone.nix {};
646 tinc = handleTest ./tinc {};
647 tinydns = handleTest ./tinydns.nix {};
648 tinywl = handleTest ./tinywl.nix {};
649 tmate-ssh-server = handleTest ./tmate-ssh-server.nix { };
650 tomcat = handleTest ./tomcat.nix {};
651 tor = handleTest ./tor.nix {};
652 traefik = handleTestOn ["aarch64-linux" "x86_64-linux"] ./traefik.nix {};
653 trafficserver = handleTest ./trafficserver.nix {};
654 transmission = handleTest ./transmission.nix {};
655 # tracee requires bpf
656 tracee = handleTestOn ["x86_64-linux"] ./tracee.nix {};
657 trezord = handleTest ./trezord.nix {};
658 trickster = handleTest ./trickster.nix {};
659 trilium-server = handleTestOn ["x86_64-linux"] ./trilium-server.nix {};
660 tsm-client-gui = handleTest ./tsm-client-gui.nix {};
661 txredisapi = handleTest ./txredisapi.nix {};
662 tuptime = handleTest ./tuptime.nix {};
663 turbovnc-headless-server = handleTest ./turbovnc-headless-server.nix {};
664 tuxguitar = handleTest ./tuxguitar.nix {};
665 ucarp = handleTest ./ucarp.nix {};
666 udisks2 = handleTest ./udisks2.nix {};
667 unbound = handleTest ./unbound.nix {};
668 unifi = handleTest ./unifi.nix {};
669 unit-php = handleTest ./web-servers/unit-php.nix {};
670 upnp = handleTest ./upnp.nix {};
671 uptermd = handleTest ./uptermd.nix {};
672 uptime-kuma = handleTest ./uptime-kuma.nix {};
673 usbguard = handleTest ./usbguard.nix {};
674 user-activation-scripts = handleTest ./user-activation-scripts.nix {};
675 user-home-mode = handleTest ./user-home-mode.nix {};
676 uwsgi = handleTest ./uwsgi.nix {};
677 v2ray = handleTest ./v2ray.nix {};
678 varnish60 = handleTest ./varnish.nix { package = pkgs.varnish60; };
679 varnish72 = handleTest ./varnish.nix { package = pkgs.varnish72; };
680 vault = handleTest ./vault.nix {};
681 vault-dev = handleTest ./vault-dev.nix {};
682 vault-postgresql = handleTest ./vault-postgresql.nix {};
683 vaultwarden = handleTest ./vaultwarden.nix {};
684 vector = handleTest ./vector.nix {};
685 vengi-tools = handleTest ./vengi-tools.nix {};
686 victoriametrics = handleTest ./victoriametrics.nix {};
687 vikunja = handleTest ./vikunja.nix {};
688 virtualbox = handleTestOn ["x86_64-linux"] ./virtualbox.nix {};
689 vscodium = discoverTests (import ./vscodium.nix);
690 vsftpd = handleTest ./vsftpd.nix {};
691 wasabibackend = handleTest ./wasabibackend.nix {};
692 wiki-js = handleTest ./wiki-js.nix {};
693 wine = handleTest ./wine.nix {};
694 wireguard = handleTest ./wireguard {};
695 without-nix = handleTest ./without-nix.nix {};
696 wmderland = handleTest ./wmderland.nix {};
697 wpa_supplicant = handleTest ./wpa_supplicant.nix {};
698 wordpress = handleTest ./wordpress.nix {};
699 wrappers = handleTest ./wrappers.nix {};
700 writefreely = handleTest ./web-apps/writefreely.nix {};
701 xandikos = handleTest ./xandikos.nix {};
702 xautolock = handleTest ./xautolock.nix {};
703 xfce = handleTest ./xfce.nix {};
704 xmonad = handleTest ./xmonad.nix {};
705 xmonad-xdg-autostart = handleTest ./xmonad-xdg-autostart.nix {};
706 xpadneo = handleTest ./xpadneo.nix {};
707 xrdp = handleTest ./xrdp.nix {};
708 xss-lock = handleTest ./xss-lock.nix {};
709 xterm = handleTest ./xterm.nix {};
710 xxh = handleTest ./xxh.nix {};
711 yabar = handleTest ./yabar.nix {};
712 yggdrasil = handleTest ./yggdrasil.nix {};
713 zammad = handleTest ./zammad.nix {};
714 zeronet-conservancy = handleTest ./zeronet-conservancy.nix {};
715 zfs = handleTest ./zfs.nix {};
716 zigbee2mqtt = handleTest ./zigbee2mqtt.nix {};
717 zoneminder = handleTest ./zoneminder.nix {};
718 zookeeper = handleTest ./zookeeper.nix {};
719 zrepl = handleTest ./zrepl.nix {};
720 zsh-history = handleTest ./zsh-history.nix {};
721}