2018-11-11 12:30:07 +01:00
|
|
|
{ system, pkgs, callTest }:
|
|
|
|
# The return value of this function will be an attrset with arbitrary depth and
|
|
|
|
# the `anything` returned by callTest at its test leafs.
|
|
|
|
# The tests not supported by `system` will be replaced with `{}`, so that
|
2018-11-11 14:55:23 +01:00
|
|
|
# `passthru.tests` can contain links to those without breaking on architectures
|
2018-11-11 12:30:07 +01:00
|
|
|
# where said tests are unsupported.
|
|
|
|
# Example callTest that just extracts the derivation from the test:
|
|
|
|
# callTest = t: t.test;
|
|
|
|
|
|
|
|
with pkgs.lib;
|
|
|
|
|
|
|
|
let
|
|
|
|
discoverTests = val:
|
|
|
|
if !isAttrs val then val
|
|
|
|
else if hasAttr "test" val then callTest val
|
|
|
|
else mapAttrs (n: s: discoverTests s) val;
|
|
|
|
handleTest = path: args:
|
|
|
|
discoverTests (import path ({ inherit system pkgs; } // args));
|
|
|
|
handleTestOn = systems: path: args:
|
|
|
|
if elem system systems then handleTest path args
|
|
|
|
else {};
|
|
|
|
in
|
|
|
|
{
|
2018-11-11 13:27:58 +01:00
|
|
|
acme = handleTestOn ["x86_64-linux"] ./acme.nix {};
|
2018-11-11 12:30:07 +01:00
|
|
|
atd = handleTest ./atd.nix {};
|
2019-04-13 01:06:11 +02:00
|
|
|
automysqlbackup = handleTest ./automysqlbackup.nix {};
|
2018-11-11 12:30:07 +01:00
|
|
|
avahi = handleTest ./avahi.nix {};
|
2018-11-11 13:27:58 +01:00
|
|
|
bcachefs = handleTestOn ["x86_64-linux"] ./bcachefs.nix {}; # linux-4.18.2018.10.12 is unsupported on aarch64
|
2019-02-22 14:10:02 +01:00
|
|
|
beanstalkd = handleTest ./beanstalkd.nix {};
|
2018-11-11 13:27:58 +01:00
|
|
|
beegfs = handleTestOn ["x86_64-linux"] ./beegfs.nix {}; # beegfs is unsupported on aarch64
|
2018-11-11 12:30:07 +01:00
|
|
|
bind = handleTest ./bind.nix {};
|
|
|
|
bittorrent = handleTest ./bittorrent.nix {};
|
|
|
|
#blivet = handleTest ./blivet.nix {}; # broken since 2017-07024
|
2018-11-11 13:27:58 +01:00
|
|
|
boot = handleTestOn ["x86_64-linux"] ./boot.nix {}; # syslinux is unsupported on aarch64
|
2018-11-11 12:30:07 +01:00
|
|
|
boot-stage1 = handleTest ./boot-stage1.nix {};
|
|
|
|
borgbackup = handleTest ./borgbackup.nix {};
|
|
|
|
buildbot = handleTest ./buildbot.nix {};
|
|
|
|
cadvisor = handleTestOn ["x86_64-linux"] ./cadvisor.nix {};
|
|
|
|
ceph = handleTestOn ["x86_64-linux"] ./ceph.nix {};
|
|
|
|
certmgr = handleTest ./certmgr.nix {};
|
|
|
|
cfssl = handleTestOn ["x86_64-linux"] ./cfssl.nix {};
|
|
|
|
chromium = (handleTestOn ["x86_64-linux"] ./chromium.nix {}).stable or {};
|
|
|
|
cjdns = handleTest ./cjdns.nix {};
|
2018-12-19 15:06:53 +01:00
|
|
|
clickhouse = handleTest ./clickhouse.nix {};
|
2018-11-11 12:30:07 +01:00
|
|
|
cloud-init = handleTest ./cloud-init.nix {};
|
|
|
|
codimd = handleTest ./codimd.nix {};
|
2019-03-18 12:59:17 +01:00
|
|
|
colord = handleTest ./colord.nix {};
|
2018-11-11 12:30:07 +01:00
|
|
|
containers-bridge = handleTest ./containers-bridge.nix {};
|
|
|
|
containers-extra_veth = handleTest ./containers-extra_veth.nix {};
|
|
|
|
containers-hosts = handleTest ./containers-hosts.nix {};
|
|
|
|
containers-imperative = handleTest ./containers-imperative.nix {};
|
|
|
|
containers-ipv4 = handleTest ./containers-ipv4.nix {};
|
|
|
|
containers-ipv6 = handleTest ./containers-ipv6.nix {};
|
|
|
|
containers-macvlans = handleTest ./containers-macvlans.nix {};
|
|
|
|
containers-physical_interfaces = handleTest ./containers-physical_interfaces.nix {};
|
|
|
|
containers-restart_networking = handleTest ./containers-restart_networking.nix {};
|
|
|
|
containers-tmpfs = handleTest ./containers-tmpfs.nix {};
|
2018-11-11 13:27:58 +01:00
|
|
|
#couchdb = handleTest ./couchdb.nix {}; # spidermonkey-1.8.5 is marked as broken
|
2018-11-11 12:30:07 +01:00
|
|
|
deluge = handleTest ./deluge.nix {};
|
|
|
|
dhparams = handleTest ./dhparams.nix {};
|
|
|
|
dnscrypt-proxy = handleTestOn ["x86_64-linux"] ./dnscrypt-proxy.nix {};
|
|
|
|
docker = handleTestOn ["x86_64-linux"] ./docker.nix {};
|
2019-03-24 23:59:09 +01:00
|
|
|
docker-containers = handleTestOn ["x86_64-linux"] ./docker-containers.nix {};
|
2018-11-11 12:30:07 +01:00
|
|
|
docker-edge = handleTestOn ["x86_64-linux"] ./docker-edge.nix {};
|
|
|
|
docker-preloader = handleTestOn ["x86_64-linux"] ./docker-preloader.nix {};
|
|
|
|
docker-registry = handleTest ./docker-registry.nix {};
|
|
|
|
docker-tools = handleTestOn ["x86_64-linux"] ./docker-tools.nix {};
|
|
|
|
docker-tools-overlay = handleTestOn ["x86_64-linux"] ./docker-tools-overlay.nix {};
|
2019-03-26 19:04:28 +01:00
|
|
|
documize = handleTest ./documize.nix {};
|
2018-11-11 12:30:07 +01:00
|
|
|
dovecot = handleTest ./dovecot.nix {};
|
|
|
|
# ec2-config doesn't work in a sandbox as the simulated ec2 instance needs network access
|
|
|
|
#ec2-config = (handleTestOn ["x86_64-linux"] ./ec2.nix {}).boot-ec2-config or {};
|
|
|
|
ec2-nixops = (handleTestOn ["x86_64-linux"] ./ec2.nix {}).boot-ec2-nixops or {};
|
|
|
|
ecryptfs = handleTest ./ecryptfs.nix {};
|
|
|
|
elk = handleTestOn ["x86_64-linux"] ./elk.nix {};
|
|
|
|
env = handleTest ./env.nix {};
|
|
|
|
etcd = handleTestOn ["x86_64-linux"] ./etcd.nix {};
|
|
|
|
ferm = handleTest ./ferm.nix {};
|
|
|
|
firefox = handleTest ./firefox.nix {};
|
|
|
|
firewall = handleTest ./firewall.nix {};
|
2018-12-17 20:12:09 +01:00
|
|
|
fish = handleTest ./fish.nix {};
|
2019-02-12 18:26:08 +01:00
|
|
|
flannel = handleTestOn ["x86_64-linux"] ./flannel.nix {};
|
2018-11-11 12:30:07 +01:00
|
|
|
flatpak = handleTest ./flatpak.nix {};
|
|
|
|
fsck = handleTest ./fsck.nix {};
|
2018-11-11 13:27:58 +01:00
|
|
|
fwupd = handleTestOn ["x86_64-linux"] ./fwupd.nix {}; # libsmbios is unsupported on aarch64
|
2018-11-11 12:30:07 +01:00
|
|
|
gdk-pixbuf = handleTest ./gdk-pixbuf.nix {};
|
|
|
|
gitea = handleTest ./gitea.nix {};
|
|
|
|
gitlab = handleTest ./gitlab.nix {};
|
|
|
|
gitolite = handleTest ./gitolite.nix {};
|
|
|
|
gjs = handleTest ./gjs.nix {};
|
2018-12-12 13:59:08 +01:00
|
|
|
google-oslogin = handleTest ./google-oslogin {};
|
2018-11-11 13:27:58 +01:00
|
|
|
gnome3 = handleTestOn ["x86_64-linux"] ./gnome3.nix {}; # libsmbios is unsupported on aarch64
|
|
|
|
gnome3-gdm = handleTestOn ["x86_64-linux"] ./gnome3-gdm.nix {}; # libsmbios is unsupported on aarch64
|
2018-11-11 12:30:07 +01:00
|
|
|
gocd-agent = handleTest ./gocd-agent.nix {};
|
|
|
|
gocd-server = handleTest ./gocd-server.nix {};
|
|
|
|
grafana = handleTest ./grafana.nix {};
|
|
|
|
graphite = handleTest ./graphite.nix {};
|
|
|
|
hadoop.hdfs = handleTestOn [ "x86_64-linux" ] ./hadoop/hdfs.nix {};
|
|
|
|
hadoop.yarn = handleTestOn [ "x86_64-linux" ] ./hadoop/yarn.nix {};
|
2018-11-12 07:45:00 +01:00
|
|
|
handbrake = handleTestOn ["x86_64-linux"] ./handbrake.nix {};
|
2018-11-11 12:30:07 +01:00
|
|
|
haproxy = handleTest ./haproxy.nix {};
|
2019-01-06 14:04:41 +01:00
|
|
|
hardened = handleTest ./hardened.nix {};
|
2018-11-11 12:30:07 +01:00
|
|
|
hibernate = handleTest ./hibernate.nix {};
|
|
|
|
hitch = handleTest ./hitch {};
|
|
|
|
hocker-fetchdocker = handleTest ./hocker-fetchdocker {};
|
|
|
|
home-assistant = handleTest ./home-assistant.nix {};
|
|
|
|
hound = handleTest ./hound.nix {};
|
|
|
|
hydra = handleTest ./hydra {};
|
|
|
|
i3wm = handleTest ./i3wm.nix {};
|
|
|
|
iftop = handleTest ./iftop.nix {};
|
2018-11-14 23:51:15 +01:00
|
|
|
incron = handleTest ./incron.nix {};
|
2018-11-11 12:30:07 +01:00
|
|
|
influxdb = handleTest ./influxdb.nix {};
|
|
|
|
initrd-network-ssh = handleTest ./initrd-network-ssh {};
|
|
|
|
initrdNetwork = handleTest ./initrd-network.nix {};
|
|
|
|
installer = handleTest ./installer.nix {};
|
|
|
|
ipv6 = handleTest ./ipv6.nix {};
|
2019-01-25 07:09:36 +01:00
|
|
|
jackett = handleTest ./jackett.nix {};
|
2018-11-11 12:30:07 +01:00
|
|
|
jenkins = handleTest ./jenkins.nix {};
|
2019-04-01 14:39:25 +02:00
|
|
|
kafka = handleTest ./kafka.nix {};
|
2019-01-11 05:36:51 +01:00
|
|
|
kerberos = handleTest ./kerberos/default.nix {};
|
2018-11-11 12:30:07 +01:00
|
|
|
kernel-latest = handleTest ./kernel-latest.nix {};
|
|
|
|
kernel-lts = handleTest ./kernel-lts.nix {};
|
2019-04-01 14:31:36 +02:00
|
|
|
kernel-testing = handleTest ./kernel-testing.nix {};
|
2018-11-11 12:30:07 +01:00
|
|
|
keymap = handleTest ./keymap.nix {};
|
2019-03-13 01:12:56 +01:00
|
|
|
knot = handleTest ./knot.nix {};
|
2018-11-11 12:30:07 +01:00
|
|
|
kubernetes.dns = handleTestOn ["x86_64-linux"] ./kubernetes/dns.nix {};
|
|
|
|
# kubernetes.e2e should eventually replace kubernetes.rbac when it works
|
|
|
|
#kubernetes.e2e = handleTestOn ["x86_64-linux"] ./kubernetes/e2e.nix {};
|
|
|
|
kubernetes.rbac = handleTestOn ["x86_64-linux"] ./kubernetes/rbac.nix {};
|
|
|
|
latestKernel.login = handleTest ./login.nix { latestKernel = true; };
|
|
|
|
ldap = handleTest ./ldap.nix {};
|
|
|
|
leaps = handleTest ./leaps.nix {};
|
2019-01-24 23:09:42 +01:00
|
|
|
lidarr = handleTest ./lidarr.nix {};
|
2018-11-11 12:30:07 +01:00
|
|
|
#lightdm = handleTest ./lightdm.nix {};
|
|
|
|
login = handleTest ./login.nix {};
|
|
|
|
#logstash = handleTest ./logstash.nix {};
|
2019-03-27 12:35:24 +01:00
|
|
|
mailcatcher = handleTest ./mailcatcher.nix {};
|
2018-11-11 12:30:07 +01:00
|
|
|
mathics = handleTest ./mathics.nix {};
|
|
|
|
matrix-synapse = handleTest ./matrix-synapse.nix {};
|
|
|
|
memcached = handleTest ./memcached.nix {};
|
|
|
|
mesos = handleTest ./mesos.nix {};
|
2018-12-21 19:36:58 +01:00
|
|
|
miniflux = handleTest ./miniflux.nix {};
|
2019-02-05 17:38:34 +01:00
|
|
|
minio = handleTest ./minio.nix {};
|
2018-11-11 12:30:07 +01:00
|
|
|
misc = handleTest ./misc.nix {};
|
|
|
|
mongodb = handleTest ./mongodb.nix {};
|
|
|
|
morty = handleTest ./morty.nix {};
|
|
|
|
mpd = handleTest ./mpd.nix {};
|
|
|
|
mumble = handleTest ./mumble.nix {};
|
|
|
|
munin = handleTest ./munin.nix {};
|
|
|
|
mutableUsers = handleTest ./mutable-users.nix {};
|
|
|
|
mysql = handleTest ./mysql.nix {};
|
|
|
|
mysqlBackup = handleTest ./mysql-backup.nix {};
|
|
|
|
mysqlReplication = handleTest ./mysql-replication.nix {};
|
|
|
|
nat.firewall = handleTest ./nat.nix { withFirewall = true; };
|
|
|
|
nat.firewall-conntrack = handleTest ./nat.nix { withFirewall = true; withConntrackHelpers = true; };
|
|
|
|
nat.standalone = handleTest ./nat.nix { withFirewall = false; };
|
2019-02-03 16:47:01 +01:00
|
|
|
ndppd = handleTest ./ndppd.nix {};
|
2019-02-01 14:29:54 +01:00
|
|
|
neo4j = handleTest ./neo4j.nix {};
|
2018-11-11 12:30:07 +01:00
|
|
|
netdata = handleTest ./netdata.nix {};
|
|
|
|
networking.networkd = handleTest ./networking.nix { networkd = true; };
|
|
|
|
networking.scripted = handleTest ./networking.nix { networkd = false; };
|
|
|
|
# TODO: put in networking.nix after the test becomes more complete
|
|
|
|
networkingProxy = handleTest ./networking-proxy.nix {};
|
|
|
|
nextcloud = handleTest ./nextcloud {};
|
|
|
|
nexus = handleTest ./nexus.nix {};
|
|
|
|
nfs3 = handleTest ./nfs.nix { version = 3; };
|
|
|
|
nfs4 = handleTest ./nfs.nix { version = 4; };
|
|
|
|
nghttpx = handleTest ./nghttpx.nix {};
|
|
|
|
nginx = handleTest ./nginx.nix {};
|
2018-12-28 11:41:52 +01:00
|
|
|
nginx-sso = handleTest ./nginx-sso.nix {};
|
2018-11-11 12:30:07 +01:00
|
|
|
nix-ssh-serve = handleTest ./nix-ssh-serve.nix {};
|
|
|
|
novacomd = handleTestOn ["x86_64-linux"] ./novacomd.nix {};
|
|
|
|
nsd = handleTest ./nsd.nix {};
|
|
|
|
openldap = handleTest ./openldap.nix {};
|
|
|
|
opensmtpd = handleTest ./opensmtpd.nix {};
|
|
|
|
openssh = handleTest ./openssh.nix {};
|
2019-01-28 15:09:48 +01:00
|
|
|
# openstack-image-userdata doesn't work in a sandbox as the simulated openstack instance needs network access
|
|
|
|
#openstack-image-userdata = (handleTestOn ["x86_64-linux"] ./openstack-image.nix {}).userdata or {};
|
|
|
|
openstack-image-metadata = (handleTestOn ["x86_64-linux"] ./openstack-image.nix {}).metadata or {};
|
2018-11-11 12:30:07 +01:00
|
|
|
osquery = handleTest ./osquery.nix {};
|
2019-01-05 13:13:10 +01:00
|
|
|
osrm-backend = handleTest ./osrm-backend.nix {};
|
2018-11-11 12:30:07 +01:00
|
|
|
ostree = handleTest ./ostree.nix {};
|
2019-01-23 10:19:23 +01:00
|
|
|
overlayfs = handleTest ./overlayfs.nix {};
|
2018-11-11 12:30:07 +01:00
|
|
|
pam-oath-login = handleTest ./pam-oath-login.nix {};
|
2019-01-29 17:45:26 +01:00
|
|
|
pam-u2f = handleTest ./pam-u2f.nix {};
|
2019-01-24 23:33:05 +01:00
|
|
|
pantheon = handleTest ./pantheon.nix {};
|
2018-11-11 12:30:07 +01:00
|
|
|
peerflix = handleTest ./peerflix.nix {};
|
|
|
|
pgjwt = handleTest ./pgjwt.nix {};
|
|
|
|
pgmanage = handleTest ./pgmanage.nix {};
|
|
|
|
php-pcre = handleTest ./php-pcre.nix {};
|
|
|
|
plasma5 = handleTest ./plasma5.nix {};
|
|
|
|
plotinus = handleTest ./plotinus.nix {};
|
|
|
|
postgis = handleTest ./postgis.nix {};
|
|
|
|
postgresql = handleTest ./postgresql.nix {};
|
|
|
|
powerdns = handleTest ./powerdns.nix {};
|
|
|
|
predictable-interface-names = handleTest ./predictable-interface-names.nix {};
|
|
|
|
printing = handleTest ./printing.nix {};
|
|
|
|
prometheus = handleTest ./prometheus.nix {};
|
2019-04-08 15:24:23 +02:00
|
|
|
prometheus2 = handleTest ./prometheus-2.nix {};
|
2018-11-11 12:30:07 +01:00
|
|
|
prometheus-exporters = handleTest ./prometheus-exporters.nix {};
|
|
|
|
prosody = handleTest ./prosody.nix {};
|
|
|
|
proxy = handleTest ./proxy.nix {};
|
|
|
|
quagga = handleTest ./quagga.nix {};
|
|
|
|
quake3 = handleTest ./quake3.nix {};
|
|
|
|
rabbitmq = handleTest ./rabbitmq.nix {};
|
2019-01-24 23:09:21 +01:00
|
|
|
radarr = handleTest ./radarr.nix {};
|
2018-11-11 12:30:07 +01:00
|
|
|
radicale = handleTest ./radicale.nix {};
|
|
|
|
redmine = handleTest ./redmine.nix {};
|
2018-11-28 17:33:26 +01:00
|
|
|
roundcube = handleTest ./roundcube.nix {};
|
2018-11-11 12:30:07 +01:00
|
|
|
rspamd = handleTest ./rspamd.nix {};
|
2018-10-27 11:33:43 +02:00
|
|
|
rss2email = handleTest ./rss2email.nix {};
|
2018-11-11 12:30:07 +01:00
|
|
|
rsyslogd = handleTest ./rsyslogd.nix {};
|
|
|
|
runInMachine = handleTest ./run-in-machine.nix {};
|
|
|
|
rxe = handleTest ./rxe.nix {};
|
|
|
|
samba = handleTest ./samba.nix {};
|
|
|
|
sddm = handleTest ./sddm.nix {};
|
|
|
|
simple = handleTest ./simple.nix {};
|
|
|
|
slim = handleTest ./slim.nix {};
|
|
|
|
slurm = handleTest ./slurm.nix {};
|
|
|
|
smokeping = handleTest ./smokeping.nix {};
|
|
|
|
snapper = handleTest ./snapper.nix {};
|
|
|
|
solr = handleTest ./solr.nix {};
|
2019-01-24 23:08:16 +01:00
|
|
|
sonarr = handleTest ./sonarr.nix {};
|
2018-11-11 12:30:07 +01:00
|
|
|
strongswan-swanctl = handleTest ./strongswan-swanctl.nix {};
|
|
|
|
sudo = handleTest ./sudo.nix {};
|
|
|
|
switchTest = handleTest ./switch-test.nix {};
|
2018-11-17 15:02:00 +01:00
|
|
|
syncthing-relay = handleTest ./syncthing-relay.nix {};
|
2018-11-11 12:30:07 +01:00
|
|
|
systemd = handleTest ./systemd.nix {};
|
2019-03-14 15:26:10 +01:00
|
|
|
systemd-confinement = handleTest ./systemd-confinement.nix {};
|
2019-04-04 20:38:56 +02:00
|
|
|
pdns-recursor = handleTest ./pdns-recursor.nix {};
|
2018-11-11 12:30:07 +01:00
|
|
|
taskserver = handleTest ./taskserver.nix {};
|
2019-01-21 12:30:11 +01:00
|
|
|
telegraf = handleTest ./telegraf.nix {};
|
2018-11-11 12:30:07 +01:00
|
|
|
tomcat = handleTest ./tomcat.nix {};
|
|
|
|
tor = handleTest ./tor.nix {};
|
|
|
|
transmission = handleTest ./transmission.nix {};
|
|
|
|
udisks2 = handleTest ./udisks2.nix {};
|
|
|
|
upnp = handleTest ./upnp.nix {};
|
|
|
|
vault = handleTest ./vault.nix {};
|
|
|
|
virtualbox = handleTestOn ["x86_64-linux"] ./virtualbox.nix {};
|
2019-03-17 13:20:38 +01:00
|
|
|
wireguard = handleTest ./wireguard {};
|
2018-11-11 12:30:07 +01:00
|
|
|
wordpress = handleTest ./wordpress.nix {};
|
|
|
|
xautolock = handleTest ./xautolock.nix {};
|
|
|
|
xdg-desktop-portal = handleTest ./xdg-desktop-portal.nix {};
|
|
|
|
xfce = handleTest ./xfce.nix {};
|
|
|
|
xmonad = handleTest ./xmonad.nix {};
|
|
|
|
xrdp = handleTest ./xrdp.nix {};
|
|
|
|
xss-lock = handleTest ./xss-lock.nix {};
|
|
|
|
yabar = handleTest ./yabar.nix {};
|
|
|
|
zookeeper = handleTest ./zookeeper.nix {};
|
|
|
|
}
|