nixpkgs/nixos/tests
aszlig 88530e02b6
systemd: Update to latest NixOS branch
Updated to the latest version of the nixos-v237 branch, which fixes two
things:

  * Make sure that systemd looks in /etc for configuration files.
    https://github.com/NixOS/systemd/pull/15
  * Fix handling of the x-initrd.mount option.
    https://github.com/NixOS/systemd/pull/16

I've added NixOS VM tests for both to ensure we won't run into
regressions. The newly added systemd test only tests for that and is by
no means exhaustive, but it's a start.

Personally I only wanted to fix the former issue, because that's the one
I've been debugging. After sending in a pull request for our systemd
fork (https://github.com/NixOS/systemd/pull/17) I got a notice from
@Mic92, that he already fixed this and his fix was even better as it's
even suitable for upstream (so we hopefully can drop that patch
someday).

The reason why the second one came in was simply because it has been
merged before the former, but I thought it would be a good idea to have
tests for that as well.

In addition I've removed the sysconfdir=$out/etc entry to make sure the
default (/etc) is used. Installing is still done to $out, because those
directories that were previously into sysconfdir now get into
factoryconfdir.

Quote from commit NixOS/systemd@98067cc806:

  By default systemd should read all its configuration from /etc.
  Therefore we rely on -Dsysconfdir=/etc in meson as default value.
  Unfortunately this would also lead to installation of systemd's own
  configuration files to `/etc` whereas we are limited to /nix/store. To
  counter that this commit introduces two new configuration variables
  `factoryconfdir` and `factorypkgconfdir` to install systemd's own
  configuration into nix store again, while having executables looking
  up files in /etc.

Tested this change against all of the NixOS VM tests we have in
nixos/release.nix. Between this change and its parent no new tests were
failing (although a lot of them were flaky).

Signed-off-by: aszlig <aszlig@nix.build>
Cc: @Mic92, @tk-ecotelecom, @edolstra, @fpletz
Fixes: #35415
Fixes: #35268
2018-03-03 10:39:38 +01:00
..
common nixos/tests/acme: update terms of service to fix test 2017-11-17 16:05:13 +01:00
initrd-network-ssh nixos/tests: rename IP addresses/routes options 2018-02-17 14:57:07 +01:00
krb5 nixos/krb5: complete rewrite 2017-10-02 14:30:19 +10:30
kubernetes Merge pull request #33954 from kuznero/pr/kubernetes 2018-02-16 13:56:59 +00:00
acme.nix nixos/tests/acme: Use overridePythonAttrs 2017-09-14 23:18:52 +02:00
ammonite.nix ammonite: add test 2017-07-04 21:36:30 -04:00
atd.nix nixos/tests: add basic test for services.atd 2017-10-16 19:08:19 +02:00
avahi.nix avahi: fix test 2016-02-28 16:18:39 +01:00
beegfs.nix beegfs: init at 6.17 2017-12-31 07:07:02 +00:00
bittorrent.nix nixos/tests: rename IP addresses/routes options 2018-02-17 14:57:07 +01:00
blivet.nix blivet test: use python2 2016-11-24 22:28:03 +01:00
boot-stage1.nix nixos.tests.boot-stage1: fix missing libelf 2018-02-22 04:04:49 +01:00
boot.nix nixos/tests: Drop unnecessary qemu-flags.nix include 2018-01-30 16:57:27 +02:00
borgbackup.nix nixos/borgbackup: add test 2018-01-29 14:14:57 +00:00
buildbot.nix buildbot: 0.9.4 -> 0.9.5 2017-04-21 10:32:36 -04:00
cadvisor.nix cadvisor test: fix (#18671) 2016-09-16 22:06:16 +02:00
cassandra.nix cassandra service: init 2016-08-02 20:58:35 -04:00
ceph.nix nixos/ceph: init module (#35299) 2018-03-01 11:47:13 +00:00
chromium.nix nixos/tests/chromium: Run tests as normal user 2017-02-07 07:36:56 +01:00
cjdns.nix nixos/tests: rename IP addresses/routes options 2018-02-17 14:57:07 +01:00
cloud-init.nix nixos/tests: Drop unnecessary qemu-flags.nix include 2018-01-30 16:57:27 +02:00
containers-bridge.nix nixos/tests: rename IP addresses/routes options 2018-02-17 14:57:07 +01:00
containers-extra_veth.nix nixos/tests: rename IP addresses/routes options 2018-02-17 14:57:07 +01:00
containers-hosts.nix nixos/tests: rename IP addresses/routes options 2018-02-17 14:57:07 +01:00
containers-imperative.nix containers: add myself to the maintainers of the tests 2016-07-28 23:06:41 +02:00
containers-ipv4.nix containers: add myself to the maintainers of the tests 2016-07-28 23:06:41 +02:00
containers-ipv6.nix replace ping6 with ping 2017-02-17 16:04:49 +01:00
containers-macvlans.nix nixos/tests: rename IP addresses/routes options 2018-02-17 14:57:07 +01:00
containers-physical_interfaces.nix nixos/tests: rename IP addresses/routes options 2018-02-17 14:57:07 +01:00
containers-portforward.nix nixos-container: added test for port forwarding ( nixos/tests/containers-portforward.nix ) 2017-02-15 05:12:46 +01:00
containers-reloadable.nix nixos/tests: rename IP addresses/routes options 2018-02-17 14:57:07 +01:00
containers-restart_networking.nix nixos/tests: rename IP addresses/routes options 2018-02-17 14:57:07 +01:00
containers-tmpfs.nix containers module: Add tmpfs options (#20557) 2016-11-22 02:11:33 +01:00
couchdb.nix nixos/tests: add couchdb test 2017-11-19 17:39:36 +01:00
dnscrypt-proxy.nix Revert "nixos/dnscrypt-proxy: remove" 2018-01-08 15:09:33 +01:00
docker-edge.nix docker: Add test for docker-edge, check for proper versions in tests 2017-09-04 19:02:44 -04:00
docker-registry.nix docker: update service units from upstream 2016-12-23 21:39:38 +01:00
docker-tools.nix nixos.test.dockerTools: add more tests 2018-02-16 18:24:48 +01:00
docker.nix docker: Add test for docker-edge, check for proper versions in tests 2017-09-04 19:02:44 -04:00
dovecot.nix nixos/dovecot: Fix createMailUser implementation 2017-09-17 04:57:20 +02:00
ec2.nix nixos/tests: Drop unnecessary qemu-flags.nix include 2018-01-30 16:57:27 +02:00
ecryptfs.nix ecryptfs test: use TTY output to stabilize test 2016-12-02 19:36:27 -05:00
elk.nix elk: add elasticsearch6, logstash6, kibana6 and the beats at v6.1.0 2018-01-02 01:15:29 +01:00
emacs-daemon.nix Remove myself from maintainers 2017-01-31 11:00:14 +01:00
env.nix tests: Add environment 2017-09-05 19:05:37 -04:00
etcd-cluster.nix etcd-cluster: split up openssl commands 2016-09-03 13:59:28 +02:00
etcd.nix etcd module: add test for simple one node etcd service 2016-08-25 14:42:22 +02:00
ferm.nix nixos/tests: rename IP addresses/routes options 2018-02-17 14:57:07 +01:00
firefox.nix nixos: tests: firefox: make more comprehensive 2017-03-15 17:25:57 +01:00
firewall.nix nixos: Fix ordering of firewall.service 2016-09-07 15:11:24 +02:00
flannel.nix flannel service: init 2016-10-01 17:08:48 +02:00
fleet.nix all tests: added meta.maintainers section 2015-07-12 12:29:51 +02:00
fwupd.nix nixos/fwupd: add test 2018-02-15 01:11:13 +01:00
gitlab.nix nixos/tests/gitlab.nix: Unbreak config, still times out 2017-11-06 14:52:33 +01:00
gitolite.nix nixos/tests/gitolite: Don't build during evaluation 2017-10-21 23:45:37 +03:00
gjs.nix nixos/gjs: add test 2018-02-14 22:43:59 +01:00
gnome3-gdm.nix nixos/tests/gnome3-gdm: Increase memory limit 2017-09-28 17:20:23 +02:00
gnome3.nix gnome3 tests: fix by providing more memory 2017-09-01 07:51:05 +02:00
gocd-agent.nix gocd-agent / gocd-server: Reduce test memory requirements so Hydra builds 2016-08-10 16:21:35 -04:00
gocd-server.nix gocd-agent / gocd-server: Reduce test memory requirements so Hydra builds 2016-08-10 16:21:35 -04:00
grafana.nix nixos/tests: add grafana test (#29531) 2017-09-18 16:59:50 +02:00
graphite.nix graphite: fix the graphiteApi service 2017-10-31 15:49:59 +01:00
haka.nix haka: very basic testing 2016-01-23 01:20:14 +01:00
hardened.nix nixos/hardened test: add failing test-case for deferred mounts 2017-09-22 23:53:27 +02:00
hibernate.nix tests: Fix hibernate 2017-09-06 22:01:48 -04:00
home-assistant.nix nixos/home-assistant: test MQTT configuration 2018-02-17 20:43:55 +01:00
hound.nix hound: init module 2016-10-15 13:54:59 -04:00
hydra.nix nixos/hydra postgresql: Fix #27314 and add test case 2017-09-02 23:07:42 +02:00
i3wm.nix Fix X11 tests broken by the removal of -ac 2016-04-12 19:13:47 +02:00
influxdb.nix cadvisor test: fix (#18671) 2016-09-16 22:06:16 +02:00
initrd-network.nix boot.initrd.network: Support DHCP 2016-02-02 19:59:27 +01:00
installer.nix nixos/tests: Drop unnecessary qemu-flags.nix include 2018-01-30 16:57:27 +02:00
ipfs.nix tests: ipfs: enable autoMount tests 2017-09-18 00:05:35 -07:00
ipv6.nix nixos/tests: fix test failure due to preferTempAddress changes 2018-02-19 11:31:20 +01:00
jenkins.nix nixos/tests/jenkins: check if jenkins is available 2017-12-14 16:03:24 +01:00
kafka_0_9.nix kafka: Add tests 2017-11-02 15:10:33 -04:00
kafka_0_10.nix kafka: Add tests 2017-11-02 15:10:33 -04:00
kafka_0_11.nix kafka: Add tests 2017-11-02 15:10:33 -04:00
kafka_1_0.nix kafka: Add tests 2017-11-02 15:10:33 -04:00
kernel-copperhead.nix Add basic kernel tests 2017-09-05 10:38:07 -04:00
kernel-latest.nix Add basic kernel tests 2017-09-05 10:38:07 -04:00
kernel-lts.nix Add basic kernel tests 2017-09-05 10:38:07 -04:00
kexec.nix all tests: added meta.maintainers section 2015-07-12 12:29:51 +02:00
keymap.nix nixos/tests/keymap: disable xterm DM 2018-01-11 20:12:49 +01:00
ldap.nix nixos/tests: add tests for the LDAP stack 2017-05-27 02:51:46 +02:00
leaps.nix nixos/tests/leaps.nix: fixed race condition 2017-03-06 21:33:21 +01:00
lightdm.nix Fix X11 tests broken by the removal of -ac 2016-04-12 19:13:47 +02:00
login.nix login test: Create and use direct reads of the TTY contents. 2016-11-30 00:17:18 -05:00
make-test.nix nixos/tests/make-test.nix: Fix eval error 2018-02-02 17:44:08 +01:00
mathics.nix nixos/mathics: New service and test 2016-01-02 14:34:55 -08:00
matrix-synapse.nix nixos/tests: add matrix-synapse test 2018-02-04 21:22:55 -04:00
mesos.nix mesos test: fix python handling 2017-09-28 01:15:41 +02:00
mesos_test.py mesos: 1.0.1 -> 1.1.0 2016-12-29 20:09:46 -05:00
minio.nix minio: 20170613 -> 2017-09-29T19-16-56Z 2017-10-08 12:24:29 +02:00
misc.nix sudo: define extra rules in Nix language (#33905) 2018-01-17 14:56:08 +00:00
mongodb.nix mongodb service: add test case 2016-09-17 10:47:36 +01:00
mpich-example.c
mumble.nix mumble: fix failing vm tests 2016-09-13 09:45:08 +02:00
munin.nix munin: fix tests by replacing cron with systemd timer 2017-03-22 00:16:36 +01:00
mutable-users.nix nixos/tests: Add a test for config.users.mutableUsers. 2017-11-19 19:11:19 +01:00
mysql-backup.nix mysqlBackup service: let it work with default settings 2017-09-27 18:44:49 +02:00
mysql-replication.nix mysql test: test replication persists between slave stop / start cycle 2017-04-25 18:51:49 -04:00
mysql.nix mysql: fix replication tests (#17174) 2016-07-23 00:37:05 +02:00
nat.nix nixos/tests: rename IP addresses/routes options 2018-02-17 14:57:07 +01:00
netdata.nix netdata service: fix permissions for apps.plugin 2018-01-02 17:57:19 -05:00
networking-proxy.nix all tests: added meta.maintainers section 2015-07-12 12:29:51 +02:00
networking.nix Merge pull request #27688 from rnhmjoj/routes 2018-02-19 14:12:58 +00:00
nexus.nix nexus: Add module for nexus. 2017-09-04 22:32:02 +02:00
nfs.nix nfs tests: fix nfs server unit name 2017-02-05 12:41:21 +03:00
nghttpx.nix nixos/nghttpx: add module for the nghttpx proxy server (#31680) 2017-11-16 18:21:02 +00:00
nginx.nix nixos/tests/nginx: fix name 2017-08-11 17:37:14 +02:00
nix-ssh-serve.nix nixos: nix.sshServe: Support ssh-ng. 2018-02-28 16:55:00 -05:00
novacomd.nix nixos: Add basic test of novacomd 2018-02-20 11:03:49 -06:00
nsd.nix nixos/tests: rename IP addresses/routes options 2018-02-17 14:57:07 +01:00
openssh.nix nixos: nix.sshServe: Support ssh-ng. 2018-02-28 16:55:00 -05:00
owncloud.nix owncloud: fix some but not all errors 2017-10-31 23:03:33 +01:00
pam-oath-login.nix pam_oath: require OATH and pam_unix credentials to be valid 2017-02-12 18:27:11 -05:00
panamax.nix all tests: added meta.maintainers section 2015-07-12 12:29:51 +02:00
partition.nix btrfsProgs -> canonical btrfs-progs 2016-01-03 20:38:44 +01:00
peerflix.nix all tests: added meta.maintainers section 2015-07-12 12:29:51 +02:00
pgjwt.nix nixos/tests: clean up pgjwt test 2017-10-04 13:04:49 +02:00
pgmanage.nix postage: replaced by pgmanage-10.0.2 2017-11-03 00:14:00 +01:00
phabricator.nix nixos/tests/phabricator: fix renaming warning 2017-03-03 07:26:17 -06:00
php-pcre.nix php: Add nixos test to ensure php-pcre works in httpd 2017-11-12 08:05:27 +01:00
plasma5.nix tests.plasma5: fix hash 2017-08-12 00:55:32 +02:00
plotinus.nix nixos/plotinus: add module to enable plotinus 2018-02-14 22:25:12 +01:00
postgis.nix postgis: get rid of composableDerivation 2018-02-20 22:17:16 +01:00
postgresql.nix nixos tests: run postgresql tests with postgres user 2017-07-19 22:13:02 +01:00
powerdns.nix nixos/powerdns: add test 2018-02-17 16:43:41 +00:00
predictable-interface-names.nix nixos/tests: add predictable-interface-names.nix (#34305) 2018-02-09 18:40:39 +00:00
printing.nix Revert "cups service: fix client sockets" 2018-02-23 18:47:43 +03:00
prometheus.nix nixos/tests: unbreak prometheus test 2017-10-16 20:31:49 +02:00
proxy.nix Make proxy test more robust 2015-08-31 18:36:32 +02:00
pump.io.nix pump.io: fix tests 2017-03-12 16:01:07 +01:00
quagga.nix nixos/tests: rename IP addresses/routes options 2018-02-17 14:57:07 +01:00
quake3.nix rename iElectric to domenkozar to match GitHub 2016-05-17 13:00:47 +01:00
rabbitmq.nix all tests: added meta.maintainers section 2015-07-12 12:29:51 +02:00
radicale.nix nixos/tests: correct comment in radicale.nix (#32574) 2017-12-11 22:09:23 +00:00
riak.nix remove elrangR15 and riak 1.3.0 as they're outdated 2016-03-22 21:40:07 +00:00
rspamd.nix nixos/rspamd: options for worker configuration and socket activation 2018-02-09 06:19:03 +01:00
run-in-machine.nix nixos: Fix output path generation of runInMachine 2017-10-11 20:08:11 +02:00
rxe.nix nixos/rdma-core: add module for soft RoCE and test (#34607) 2018-02-10 07:52:03 +00:00
samba.nix samba test: fix race condition 2017-03-01 03:16:35 +03:00
sddm.nix nixos/tests/sddm: Fix detecting login screen 2017-06-22 06:26:08 +02:00
simple.nix nixos/tests/simple.nix: Include minimal.nix 2016-02-12 14:35:41 +01:00
slim.nix nixos: Add a VM test for the SLiM display manager 2017-04-23 19:25:27 +02:00
slurm.nix slurm service: add tests 2015-12-25 15:55:07 +01:00
smokeping.nix Getting rid of the var indirection and using a bin path instead 2017-01-29 04:11:01 -06:00
snapper.nix snapper: add nixos module 2017-07-16 10:06:42 +01:00
ssh-keys.nix nixos: nix.sshServe: Support ssh-ng. 2018-02-28 16:55:00 -05:00
statsd.nix nixos/tests: Fix statsd test evaluation 2018-01-26 23:29:53 +02:00
subversion.nix all tests: added meta.maintainers section 2015-07-12 12:29:51 +02:00
sudo.nix sudo: define extra rules in Nix language (#33905) 2018-01-17 14:56:08 +00:00
switch-test.nix nixos/system: make switch-to-configuration script pure. 2017-11-19 19:42:54 +01:00
systemd.nix systemd: Update to latest NixOS branch 2018-03-03 10:39:38 +01:00
taskserver.nix nixos/taskserver: Fix manual PKI management 2017-07-16 20:38:15 +02:00
testdb.sql mysqlBackup service: let it work with default settings 2017-09-27 18:44:49 +02:00
timezone.nix nixos/timezone: support imperative timezone configuration (#26608) 2017-07-31 15:55:24 +01:00
tomcat.nix Remove tomcat vm test timing issues 2016-09-13 22:46:46 +02:00
trac.nix postgresql92: remove last references 2017-09-05 18:20:56 +02:00
udisks2.nix all tests: added meta.maintainers section 2015-07-12 12:29:51 +02:00
vault.nix vault: add nixos test 2017-12-04 12:59:52 +01:00
virtualbox.nix nixos/tests/virtualbox: remove mknod /dev/vda1 call 2017-12-23 03:16:18 +00:00
wordpress.nix wordpress: security upgrade: 4.7.2 -> 4.7.3 & other improvements (#23837) 2017-03-14 16:11:51 +01:00
xfce.nix Add a regression test for #14623 2016-04-12 19:13:52 +02:00
xmonad.nix tests: xmonad less dependent on timings 2017-09-09 10:07:34 -04:00
xrdp.nix xrdp: init at 0.9.1 2017-04-29 17:23:35 +00:00
yabar.nix yabar: add module 2018-01-04 09:58:21 +01:00
zfs.nix Add basic ZFS tests 2017-11-14 14:34:19 +08:00
zookeeper.nix zookeeper: Add simple test 2017-11-02 14:09:56 -04:00