nixpkgs-suyu/nixos/tests
Jan Tojnar 2bfa6aa848
nixosTests.installed-tests: Add the test data to VM closure
Flatpak’s installed tests build Flatpak runtimes, among other things.
Upstream code does this by copying some programs on `PATH`
as well as some possible dependencies from host’s /usr.
We patch the code to use `nix-store --query --requisites`
to make the dependency discovery easier.

The Flatpak’s installed tests add `socat` to `PATH` and later run
`nix-store --query --requisites` on its location but it was failing with

    error: path '/nix/store/qcyf7nq5vvfw32967sv4j6z190inrbrc-socat-1.7.3.4' is not valid

The issue occurred because, while the host Nix store is bind mounted into the test VM,
the VM’s store uses its own database that only contains the packages in the VM’s closure.
Since the test commands are not actually part of the VM but only passed through PTY,
the `flatpak.installedTests` derivation was not part of the VM’s closure, so `nix-store`
in the VM could not get information about its dependency `socat`.

Let’s make the `installedTests` of the tested package part of the test VM’s closure
by passing it as a global environment variable. This will also have the added benefit
that user no longer has to type the path when running the installed tests manually in the VM;
they can just use `gnome-desktop-testing-runner -d $TESTED_PACKAGE_INSTALLED_TESTS`,
which is much more conducive to tab completion.
2020-07-24 16:30:49 +02:00
..
common nixos/displayManager: make autoLogin options independent of DM type 2020-07-09 21:15:35 -04:00
dnscrypt-wrapper nixos/tests/dnscrypt-wrapper: init 2020-05-25 09:16:23 +02:00
google-oslogin nixos/oslogin: put mockuser and mockadmin in constants, rename 2020-04-29 14:36:35 +02:00
hadoop
hitch
hocker-fetchdocker
hydra hydra-unstable: 2020-04-16 -> 2020-06-01 2020-06-02 15:39:42 +02:00
initrd-network-openvpn nixos/system/boot/initrd-openvpn: Add openvpn options for initrd 2020-07-01 00:08:55 +02:00
initrd-network-ssh nixos/initrd-ssh: switch from Dropbear to OpenSSH 2020-03-25 08:26:50 +00:00
installed-tests nixosTests.installed-tests: Add the test data to VM closure 2020-07-24 16:30:49 +02:00
kerberos
krb5 nixosTests.krb5: Port to python 2020-02-14 09:56:32 +01:00
kubernetes nixos/tests/kubernetes: Don't re-import <nixpkgs> 2020-07-16 08:44:04 +02:00
lorri lorri: 1.0 -> 1.1 2020-06-30 17:12:03 +02:00
mysql nixos/tests/mysql80: add check with unix auth 2020-05-23 16:44:02 +03:00
nextcloud nixos/nextcloud: add occ internal option 2020-06-20 09:59:27 +02:00
nfs tests: fix more loaOf deprecation warnings 2020-02-17 09:57:35 +01:00
php nixosTests.php: Add maintainer team as maintainers 2020-04-29 20:17:08 +02:00
web-servers unit: Expose PHP expressions used so it can easily be accessed for configs 2020-05-30 18:52:41 +02:00
wireguard nixos/wireguard: test against multiple kernel versions 2020-04-29 23:10:53 +02:00
xmpp nixosTests.prosodyMysql: fix 2020-05-04 00:14:42 +02:00
3proxy.nix nixosTests.3proxy: port test to python 2020-01-02 14:25:20 +02:00
acme.nix nixos/acme: Move regression test into acme.nix 2020-06-15 11:05:00 +02:00
agda.nix agda: Added test 2020-05-14 20:54:12 +01:00
all-tests.nix Merge pull request #89773 from rnhmjoj/ncdns 2020-07-07 10:58:55 +02:00
ammonite.nix
atd.nix
avahi.nix
babeld.nix
bazarr.nix nixos/bazarr: init 2020-05-22 11:23:31 +02:00
bcachefs.nix
beanstalkd.nix
bees.nix
bind.nix
bittorrent.nix nixosTests.bittorrent: Refactor declarative part 2020-01-14 10:22:46 +01:00
blockbook-frontend.nix nixos/blockbook-frontend: add tests 2020-06-26 16:16:49 +02:00
boot-stage1.nix
boot.nix
borgbackup.nix
buildbot.nix buildbot: 2.6.0 -> 2.7.0 (#81406) 2020-02-29 18:24:02 -05:00
buildkite-agents.nix nixos/buildkite-agents: support multiple buildkite agents 2020-02-10 13:35:14 +01:00
caddy.nix specialisation: replace nesting with named configurations 2020-04-12 08:12:50 -04:00
cadvisor.nix
cage.nix nixos/cage: init 2020-03-02 13:43:20 -08:00
cassandra.nix
ceph-multi-node.nix nixos/ceph: (test) ceph now has device monitoring and pg_autoscaler enabled by default 2020-07-11 14:12:42 +02:00
ceph-single-node.nix nixos/ceph: (test) ceph now has device monitoring and pg_autoscaler enabled by default 2020-07-11 14:12:42 +02:00
certmgr.nix nixos/tests/certmgr: Fix file permissions 2020-01-11 16:18:10 -08:00
cfssl.nix
chromium.nix treewide: use https for nixos.org and hydra.nixos.org 2020-05-03 22:14:21 -07:00
cjdns.nix
clickhouse.nix
cloud-init.nix
cockroachdb.nix nixosTests.cockroachdb: set ConditionPathExists=/dev/ptp0 to chronyd 2020-04-03 00:34:18 +02:00
codimd.nix
consul.nix consul.passthru.tests: Add 2 more tests 2020-06-18 03:06:24 +02:00
containers-bridge.nix
containers-custom-pkgs.nix nixos-containers: Add support for custom nixpkgs argument 2020-04-20 07:33:46 +01:00
containers-ephemeral.nix
containers-extra_veth.nix
containers-hosts.nix
containers-imperative.nix nixos/nixos-container: ensure that the state-dir is cleaned up if a build fails 2020-02-11 14:42:30 +01:00
containers-ip.nix
containers-macvlans.nix
containers-physical_interfaces.nix
containers-portforward.nix
containers-reloadable.nix
containers-restart_networking.nix
containers-tmpfs.nix
convos.nix nixos/convos: add test 2020-06-22 13:58:35 +02:00
corerad.nix nixos/corerad: add settings option to supersede configFile 2020-06-14 10:07:16 -04:00
couchdb.nix
deluge.nix nixos/deluge: support 2.x 2020-04-18 02:00:04 +02:00
dhparams.nix
dnscrypt-proxy2.nix nixosTests.dnscrypt-proxy2: init 2020-02-02 21:51:19 -05:00
doas.nix nixos/doas: init 2020-05-04 15:56:06 -07:00
docker-edge.nix
docker-preloader.nix
docker-registry.nix
docker-tools-overlay.nix
docker-tools.nix dockerTools: Always set imageTag attribute 2020-07-11 16:58:25 +02:00
docker.nix docker: use git tags instead of revs 2020-06-26 14:55:52 -07:00
documize.nix
dokuwiki.nix maintainers: fix previously uncaught name issues 2020-06-26 16:38:27 +02:00
dovecot.nix treewide: use runtimeShell in nixos/ 2020-04-07 07:26:47 +01:00
ec2.nix treewide: use https for nixos.org and hydra.nixos.org 2020-05-03 22:14:21 -07:00
ecryptfs.nix
elk.nix nixos/tests/elk.nix: fix issue in the elasticsearch-curator 2020-04-29 15:23:50 +02:00
emacs-daemon.nix
engelsystem.nix nixos/engelsystem: Add test 2020-05-24 15:45:22 +02:00
enlightenment.nix nixos/tests/enlightenment: fix some steps in the first time wizard 2020-05-25 09:50:24 -03:00
env.nix
ergo.nix tests/ergo: init 2020-05-26 21:47:31 +02:00
etcd-cluster.nix
etcd.nix
fancontrol.nix
fenics.nix nixosTests.fenics: Add basic test 2020-03-19 21:48:27 -07:00
ferm.nix
firefox.nix nixos/tests/firefox: support running the test with the firefox ESR version 2020-02-11 08:58:13 +01:00
firewall.nix
fish.nix
flannel.nix nixosTests.flannel: port to python, unbreak 2020-04-14 23:56:42 +02:00
fluentd.nix
fontconfig-default-fonts.nix
freeswitch.nix nixos/freeswitch: init 2020-01-30 17:16:49 +02:00
fsck.nix
gerrit.nix nixos/gerrit: stop setting jvmPackage (#83696) 2020-03-29 18:50:19 +00:00
gitdaemon.nix nixos/tests/gitdaemon: fix spurious test failures due to flaky network 2020-05-10 15:58:54 +02:00
gitea.nix
gitlab.nix
gitolite-fcgiwrap.nix
gitolite.nix
glusterfs.nix tests: fix more loaOf deprecation warnings 2020-02-17 09:57:35 +01:00
gnome3-xorg.nix nixosTests.gnome3: enable debug mode 2020-07-14 04:35:15 +02:00
gnome3.nix nixosTests.gnome3: enable debug mode 2020-07-14 04:35:15 +02:00
go-neb.nix nixos/tests/go-neb: init 2020-06-04 01:44:33 +02:00
gocd-agent.nix
gocd-server.nix
gotify-server.nix
grafana.nix
graphite.nix nixos/graphite: ensure graphite-api is properly tested 2020-06-29 22:04:23 +12:00
graylog.nix
grocy.nix nixos/grocy: init module 2020-02-09 21:55:27 +01:00
grub.nix nixos/tests: add test for grub authentication 2020-06-24 10:22:53 +02:00
gvisor.nix
haka.nix nixosTests.haka: port to python 2019-12-30 17:57:00 +02:00
handbrake.nix
haproxy.nix nixos/haproxy: add reloading support, use upstream service hardening 2020-05-31 22:35:27 +02:00
hardened.nix nixos/tests/hardened: add latestKernel argument 2020-04-17 16:13:39 +01:00
hibernate.nix
home-assistant.nix nixos/tests/home-assistant: replace internal mqtt broker with mosquitto 2020-07-07 01:43:44 +02:00
hostname.nix nixos/tests/hostname: init (check system's host name) 2020-05-25 18:13:14 +02:00
hound.nix
i3wm.nix nixos/display-managers/auto: remove 2020-01-29 19:05:46 -05:00
icingaweb2.nix
iftop.nix
ihatemoney.nix nixos/tests/ihatemoney: fix 2020-07-06 18:35:34 +02:00
incron.nix
influxdb.nix
initrd-network.nix nixos/initrd-network: flush interfaces before stage 2 2020-02-08 14:04:02 +01:00
installer.nix Merge pull request #79966 from chkno/bcache 2020-05-12 18:21:44 +02:00
iodine.nix iodine: improve test in view of #58806 2020-04-13 06:22:27 +02:00
ipfs.nix IPFS NixOS module: Socket unit file more precise 2020-06-17 21:43:04 +00:00
ipv6.nix
jackett.nix
jellyfin.nix
jenkins.nix
jirafeau.nix nixos/jirefeau: add services.jirafeau module 2020-02-18 09:37:44 -08:00
k3s.nix nixos/k3s: add initial k3s service 2020-04-17 16:39:54 +02:00
kafka.nix nixos: kafka test: fix building for other arches 2020-04-07 12:50:58 -03:00
keepalived.nix
kernel-latest.nix
kernel-lts.nix
kernel-testing.nix
kexec.nix
keymap.nix nixosTests.keymap: Port to python 2020-02-02 10:46:54 +01:00
knot.nix knot: add keyFiles option 2020-02-12 16:36:42 +00:00
leaps.nix
lidarr.nix
lightdm.nix
limesurvey.nix nixosTests.limesurvey: Port to python 2020-01-26 17:11:59 +01:00
login.nix
loki.nix
lxd-nftables.nix lxd: Add tests 2020-06-08 21:35:47 +02:00
lxd.nix lxd: Add tests 2020-06-08 21:35:47 +02:00
magic-wormhole-mailbox-server.nix nixos/tests: add magic-wormhole-mailbox-server 2020-03-30 16:15:15 +02:00
magnetico.nix
mailcatcher.nix
make-test-python.nix
make-test.nix
mathics.nix
matomo.nix
matrix-synapse.nix maintainers/teams: add matrix team 2020-06-17 21:55:29 +02:00
mediawiki.nix nixos/mediawiki: allow using default extensions 2020-03-26 18:26:07 +01:00
memcached.nix
mesos.nix
mesos_test.py
metabase.nix
minidlna.nix
miniflux.nix
minio.nix nixosTests.minio: update minio-client command 2020-05-02 04:20:00 -05:00
misc.nix nixosTests.misc: fix blkio sub-test with newer kernels 2020-02-02 13:20:03 +01:00
moinmoin.nix
mongodb.nix nixos/tests/mongodb: also test mongodb-3_4 2020-03-29 01:09:53 +01:00
moodle.nix
morty.nix
mosquitto.nix
mpd.nix treewide: Per RFC45, remove all unquoted URLs 2020-04-10 17:54:53 +01:00
mpich-example.c
mumble.nix
munin.nix
mutable-users.nix
mxisd.nix
nagios.nix nagios: add nixos test 2019-12-30 16:41:18 +01:00
nat.nix
ncdns.nix nixos/tests/ncdns: add test 2020-06-14 01:09:33 +02:00
ndppd.nix
neo4j.nix
netdata.nix
networking-proxy.nix nixosTests.networkingProxy: port to Python 2020-01-30 19:13:30 -05:00
networking.nix nixosTests.networking: test setting MTU and MAC Address 2020-04-13 22:03:35 +02:00
nexus.nix
nghttpx.nix
nginx-etag.nix specialisation: replace nesting with named configurations 2020-04-12 08:12:50 -04:00
nginx-pubhtml.nix nixos/tests: fix nginx-pubhtml test 2020-05-12 20:03:29 +03:00
nginx-sandbox.nix nixos/nginx: add option enableSandbox 2020-05-12 20:03:29 +03:00
nginx-sso.nix
nginx-variants.nix nixos/nginx: ensure all variants have a basic level of testing 2020-06-02 21:55:48 +12:00
nginx.nix specialisation: replace nesting with named configurations 2020-04-12 08:12:50 -04:00
nix-ssh-serve.nix
nixos-generate-config.nix
novacomd.nix
nsd.nix nixosTests.nsd: Port to python 2020-02-13 16:34:02 +01:00
nzbget.nix
oci-containers.nix nixos/docker-containers: Rename to virtualisation.oci-containers.containers. 2020-05-04 13:47:25 +01:00
openarena.nix nixos/tests/openarena: run real openarena clients 2020-02-01 16:09:30 +01:00
openldap.nix
opensmtpd.nix nixos/tests/opensmtpd: bump test (&build) timeout to 30m from 30s 2020-02-25 23:08:32 +01:00
openssh.nix
openstack-image.nix nixos/tests/openstack-image: add stdenv to image for nixos-rebuild 2020-02-03 10:44:53 +09:00
orangefs.nix tests: fix more loaOf deprecation warnings 2020-02-17 09:57:35 +01:00
os-prober.nix nixos/tests/os-prober.nix: fix out of memory 2020-03-29 15:30:33 +02:00
osrm-backend.nix
overlayfs.nix
packagekit.nix
pam-oath-login.nix
pam-u2f.nix
pantheon.nix
paperless.nix
pdns-recursor.nix
peerflix.nix
pgjwt.nix
pgmanage.nix
plasma5.nix nixos/displayManager: make autoLogin options independent of DM type 2020-07-09 21:15:35 -04:00
plotinus.nix nixosTests.plotinus: Port to Python 2020-02-13 23:36:13 +01:00
podman.nix Revert "nixos/podman: use cgroupfs for rootless crun test" 2020-07-16 12:11:09 +10:00
postfix-raise-smtpd-tls-security-level.nix postfix: Add submissions option for postfix and test (#91691) 2020-07-06 03:37:56 +02:00
postfix.nix postfix: Add submissions option for postfix and test (#91691) 2020-07-06 03:37:56 +02:00
postgis.nix
postgresql-wal-receiver.nix postgresql-wal-receiver: fix test for Pg12 (#80268) 2020-02-16 22:58:34 +02:00
postgresql.nix nixosTests.initdb: Move code to existing postgres test 2020-01-09 23:21:51 +01:00
powerdns.nix
pppd.nix
predictable-interface-names.nix nixos/stage-1: fix predictable interfaces names 2020-02-08 14:04:02 +01:00
printing.nix nixosTests.printing: Port to Python 2020-02-06 11:29:23 +01:00
privacyidea.nix privacyidea: address reviews 2020-05-09 12:11:44 +02:00
prometheus-exporters.nix nixos/prometheus-modemmanager-exporter: new module 2020-07-17 13:54:58 -04:00
prometheus.nix prometheus: 2.17.2 -> 2.18.1 2020-05-08 07:40:38 -07:00
proxy.nix nixosTests.proxy: Port to python 2020-01-26 17:12:03 +01:00
qboot.nix nixos/qemu-vm: add option to use a non-standard BIOS 2020-06-08 11:21:53 +12:00
quagga.nix
quorum.nix nixos/quorum: init 2020-03-27 19:31:01 +01:00
rabbitmq.nix treewide: use runtimeShell in nixos/ 2020-04-07 07:26:47 +01:00
radarr.nix
radicale.nix nixos/radicale: use radicale3 2020-06-23 12:02:27 +02:00
redis.nix
redmine.nix nixosTests.redmine: Port to python 2020-04-22 08:36:27 +02:00
resolv.nix
restic.nix nixos/tests: Add rclone repository to restic test 2020-07-06 10:30:43 -04:00
riak.nix
roundcube.nix roundcube: use pspell for spellchecking 2020-04-10 12:00:00 +00:00
rspamd.nix
rss2email.nix
rsyslogd.nix nixosTests.rsyslogd: Port to python 2020-02-27 16:43:45 +01:00
run-in-machine.nix nixosTests.run-in-machine: Port to python 2020-02-14 19:05:03 +01:00
rxe.nix nixos/rxe: use iproute instead of rdma-core 2020-03-12 22:32:44 +01:00
samba.nix
sanoid.nix nixos/sanoid, nixos/syncoid: init module and test 2020-02-10 01:12:39 +01:00
sddm.nix nixos/displayManager: make autoLogin options independent of DM type 2020-07-09 21:15:35 -04:00
service-runner.nix nixos/tests/service-runner: change paths to nginx logs and cache 2020-05-04 16:36:38 +03:00
shiori.nix
signal-desktop.nix tests: Fix signal-desktop 2020-03-09 13:13:51 +00:00
simple.nix
slurm.nix nixos/slurm: add pmix to test and cleanup test 2020-07-02 15:39:47 +02:00
smokeping.nix
snapper.nix
sogo.nix nixosTests.sogo: init test 2020-05-12 18:49:43 +02:00
solr.nix nixosTests.solr: Port to python 2020-02-13 22:40:47 +01:00
sonarr.nix
spacecookie.nix
specialisation.nix specialisation: replace nesting with named configurations 2020-04-12 08:12:50 -04:00
spike.nix
ssh-keys.nix
sslh.nix nixos: add test for sslh 2020-06-20 13:24:19 +02:00
strongswan-swanctl.nix
sudo.nix small treewide: his -> theirs/its 2020-06-23 16:49:50 +02:00
switch-test.nix treewide: use runtimeShell in nixos/ 2020-04-07 07:26:47 +01:00
sympa.nix nixos/sympa: init module 2020-02-07 22:54:27 +01:00
syncthing-init.nix
syncthing-relay.nix
systemd-analyze.nix
systemd-binfmt.nix nixosTests.systemd-binfmt: init 2020-05-18 11:28:03 +02:00
systemd-boot.nix nixos/systemd-boot: test for EFI boot entry 2020-07-06 12:07:50 -07:00
systemd-confinement.nix Merge pull request #80103 from tfc/port-systemd-confinement-test 2020-04-23 01:00:51 +02:00
systemd-networkd-dhcpserver.nix systemd-networkd: add DHCPServer test 2020-04-22 00:12:00 +10:00
systemd-networkd-ipv6-prefix-delegation.nix nixos/tests: add systemd-networkd-ipv6-prefix-delegation 2020-05-01 16:55:53 +02:00
systemd-networkd-vrf.nix nixos/networkd: disable vrf sub-test which tests the behavior of tcp-packets 2020-02-25 19:54:57 +01:00
systemd-networkd.nix nixos/networkd: test routingPolicyRules with a nixos vm test 2020-03-02 15:37:40 +01:00
systemd-nspawn.nix
systemd-timesyncd.nix
systemd.nix nixos/systemd: add options for hardware watchdog management 2020-07-08 21:43:12 -04:00
taskserver.nix tests/taskserver: fix gnutls invocation 2020-06-23 12:01:54 +02:00
teeworlds.nix nixos/{modules,tests}/teeworlds: init 2020-06-06 17:06:23 +02:00
telegraf.nix
tiddlywiki.nix
timezone.nix
tinydns.nix nixos/tinydns: use local dns server to fix test 2020-02-19 12:27:29 -08:00
tor.nix
trac.nix
traefik.nix nixos/traefik: add test 2020-04-12 22:50:36 +02:00
transmission.nix
trezord.nix maintainers: fix previously uncaught name issues 2020-06-26 16:38:27 +02:00
trickster.nix maintainers: fix previously uncaught name issues 2020-06-26 16:38:27 +02:00
trilium-server.nix
tuptime.nix nixosTests.tuptime: init test 2020-04-03 17:30:35 +02:00
udisks2.nix treewide: use https for nixos.org and hydra.nixos.org 2020-05-03 22:14:21 -07:00
upnp.nix
uwsgi.nix
vault.nix
victoriametrics.nix victoriametrics: add module, tests 2020-01-29 19:52:14 +01:00
virtualbox.nix treewide: use runtimeShell in nixos/ 2020-04-07 07:26:47 +01:00
wasabibackend.nix tests/wasabibackend: init 2020-06-19 16:44:21 +02:00
wordpress.nix
xandikos.nix nixosTests.xandikos: fix route-prefix 2020-05-08 19:00:00 +02:00
xautolock.nix nixos/display-managers/auto: remove 2020-01-29 19:05:46 -05:00
xfce.nix nixos/displayManager: make autoLogin options independent of DM type 2020-07-09 21:15:35 -04:00
xmonad.nix nixos/display-managers/auto: remove 2020-01-29 19:05:46 -05:00
xrdp.nix nixos/display-managers/auto: remove 2020-01-29 19:05:46 -05:00
xss-lock.nix nixos/display-managers/auto: remove 2020-01-29 19:05:46 -05:00
yabar.nix nixos/display-managers/auto: remove 2020-01-29 19:05:46 -05:00
yggdrasil.nix nixos/yggdrasil: change config priority, persistentKeys 2020-05-21 12:11:13 +05:30
zfs.nix nixosTests.zfs: Refactor 2020-02-07 13:24:16 +01:00
zoneminder.nix nixos/zoneminder: add minimal test 2020-05-17 14:14:30 -04:00
zookeeper.nix
zsh-history.nix