nixpkgs/nixos/tests
aszlig ee39d4b98a
nixos/tests/virtualbox: Fix @shell@ expansion
This has surfaced since f803270b7e.

The commit bumped bash to version 4.4, which caused to change the order
of --subst-var flags in substituteAll, which this test was relying on,
because it added a @shell@ to boot.initrd.postMountCommands.

Our substituter is currently working a bit like this:

original.replace('@var1@', 'val1').replace('@var2@', 'val2')...

Unfortunately, this means that if @var2@ occurs within @var1@ it is
replaced by the new value, so the order of the substvars actually
matter. I highly doubt that we want a behaviour like this and I'm
wondering why it didn't occur to me as a problem while writing the
initial implementation of the VirtualBox tests.

Whether to get rid of this and disallowing substitution of substvars
within substvars is another topic which I think needs discussion in a
different place.

As for now, I'm using stdenv.shell, because the closure size of this
should fit within the initrd, so it's fine especially because it's just
a test.

Tested with the net-hostonlyif and systemd-detect-virt tests and they
both succeed with this change.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
Reported-by: @globin on IRC
2017-03-27 04:53:17 +02:00
..
common Add a regression test for #14623 2016-04-12 19:13:52 +02:00
avahi.nix avahi: fix test 2016-02-28 16:18:39 +01:00
bittorrent.nix tests.bittorrent: use a file instead of a directory 2017-01-26 02:44:05 +01:00
blivet.nix blivet test: use python2 2016-11-24 22:28:03 +01:00
boot-stage1.nix tests/boot-stage1: Use runCommandCC for kcanary 2016-10-09 14:15:19 +02:00
boot.nix nixos/tests/boot.nix: Remove empty module 2016-05-25 11:39:17 +02:00
buildbot.nix buildbot: 0.9.3 -> 0.9.4 2017-03-07 00:45:37 +01: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
chromium.nix nixos/tests/chromium: Run tests as normal user 2017-02-07 07:36:56 +01:00
cjdns.nix replace ping6 with ping 2017-02-17 16:04:49 +01:00
containers-bridge.nix replace ping6 with ping 2017-02-17 16:04:49 +01:00
containers-extra_veth.nix replace ping6 with ping 2017-02-17 16:04:49 +01:00
containers-hosts.nix containers: fix broken /etc/hosts entries when localAddress contains a netmask 2016-12-12 09:20:28 +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 Add macvlan support for declarative containers 2016-12-12 07:34:28 +01:00
containers-physical_interfaces.nix containers: Improve device dependency tracking 2016-10-08 22:28:49 +02: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-restart_networking.nix network-interfaces: reload bridges on conf changes 2017-03-26 18:47:43 +02:00
containers-tmpfs.nix containers module: Add tmpfs options (#20557) 2016-11-22 02:11:33 +01:00
dnscrypt-proxy.nix dnscrypt-proxy test: simplification 2016-11-05 17:45:02 +01:00
docker-registry.nix docker: update service units from upstream 2016-12-23 21:39:38 +01:00
docker.nix docker module: updates 2016-09-13 12:51:13 +02:00
ec2.nix amazon-init.service: fix starting services at startup 2017-02-27 16:51:36 +00:00
ecryptfs.nix ecryptfs test: use TTY output to stabilize test 2016-12-02 19:36:27 -05:00
emacs-daemon.nix Remove myself from maintainers 2017-01-31 11:00:14 +01: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 ferm: fix race condition in integration test (#18288) 2016-09-04 14:34:06 +02: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
gitlab.nix rename iElectric to domenkozar to match GitHub 2016-05-17 13:00:47 +01:00
glance.nix nixos/glance: add test 2016-12-31 09:36:57 +01:00
gnome3-gdm.nix Fix X11 tests broken by the removal of -ac 2016-04-12 19:13:47 +02:00
gnome3.nix nixos/tests/gnome3.nix: Speed up test 2016-12-29 16:23:31 +01: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
grsecurity.nix grsecurity test: adapt to changes in tinycc outputs 2017-02-09 16:23:04 +01:00
haka.nix haka: very basic testing 2016-01-23 01:20:14 +01:00
hibernate.nix netcat: make netcat-openbsd the default netcat (#19411) 2016-10-30 15:06:04 +01:00
hound.nix hound: init module 2016-10-15 13:54:59 -04: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 tests.installer: rely on swap.target in tests 2017-01-25 17:00:13 +01:00
ipfs.nix tests: added basic ipfs test 2016-11-28 15:33:58 +01:00
ipv6.nix replace ping6 with ping 2017-02-17 16:04:49 +01:00
jenkins.nix rename iElectric to domenkozar to match GitHub 2016-05-17 13:00:47 +01:00
kexec.nix all tests: added meta.maintainers section 2015-07-12 12:29:51 +02:00
keymap.nix nixos/tests: Add a test for keyboard layouts 2016-03-31 09:49:08 +02:00
keystone.nix nixos/keystone: add test in release.nix 2016-12-16 20:53:32 +01:00
kubernetes.nix kubernetes vm test: make dig and netcat available 2017-01-15 13:28:16 +01: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
logstash.nix logstash: fix test 2016-10-01 23:18:24 +02:00
make-test.nix Add filesystem option to automatically grow to the maximum size 2015-09-24 19:59:44 +02:00
mathics.nix nixos/mathics: New service and test 2016-01-02 14:34:55 -08:00
mesos_test.py mesos: 1.0.1 -> 1.1.0 2016-12-29 20:09:46 -05:00
mesos.nix mesos: 1.0.1 -> 1.1.0 2016-12-29 20:09:46 -05:00
misc.nix nixos: add optional process information hiding 2016-04-10 12:27:06 +02:00
mongodb.nix mongodb service: add test case 2016-09-17 10:47:36 +01:00
mpich-example.c Move all of NixOS to nixos/ in preparation of the repository merge 2013-10-10 13:28:20 +02:00
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
mysql-replication.nix mysql: fix replication tests (#17174) 2016-07-23 00:37:05 +02:00
mysql.nix mysql: fix replication tests (#17174) 2016-07-23 00:37:05 +02:00
nat.nix nixos/tests/nat: add test for conntrack helper autoloading 2017-01-25 01:14:05 +01:00
networking-proxy.nix all tests: added meta.maintainers section 2015-07-12 12:29:51 +02:00
networking.nix networking/bonds: fix examples 2017-03-08 04:54:17 +01:00
nfs.nix nfs tests: fix nfs server unit name 2017-02-05 12:41:21 +03:00
nginx.nix nginx service: add commonHttpConfig option 2017-02-28 09:36:56 -06:00
nsd.nix all tests: added meta.maintainers section 2015-07-12 12:29:51 +02:00
openssh.nix openssh: test that startWhenNeeded works 2016-12-29 17:04:52 -05: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 pgjwt: init at 0.0.1 (#22644) 2017-02-26 11:14:32 +01:00
phabricator.nix nixos/tests/phabricator: fix renaming warning 2017-03-03 07:26:17 -06:00
plasma5.nix nixos/plasma5: also test SDDM theme 2017-03-24 09:45:57 -05:00
postgis.nix postgresql: Fix use with extensions 2016-09-02 11:51:21 +02:00
postgresql.nix nixos: add test for postgresql, fixes #11146 2016-01-20 03:42:59 +01:00
printing.nix rename iElectric to domenkozar to match GitHub 2016-05-17 13:00:47 +01:00
prometheus.nix nixos: unbreak prometheus test 2016-12-20 23:26:51 +01: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 quagga test: Add test for the quagga service. 2016-09-02 14:00:32 +03: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
riak.nix remove elrangR15 and riak 1.3.0 as they're outdated 2016-03-22 21:40:07 +00:00
run-in-machine.nix Fix tests.runInMachine evaluation 2014-11-04 14:28:09 +01:00
samba.nix samba test: fix race condition 2017-03-01 03:16:35 +03:00
sddm.nix nixos/sddm: test automatic and manual login 2017-03-24 10:39:13 -05:00
simple.nix nixos/tests/simple.nix: Include minimal.nix 2016-02-12 14:35:41 +01: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
subversion.nix all tests: added meta.maintainers section 2015-07-12 12:29:51 +02:00
taskserver.nix nixos/tests/taskserver: Add test for manual config 2017-02-17 19:46:01 +01:00
testdb.sql Move all of NixOS to nixos/ in preparation of the repository merge 2013-10-10 13:28:20 +02:00
tomcat.nix Remove tomcat vm test timing issues 2016-09-13 22:46:46 +02:00
trac.nix nixos/tests/trac: fix renaming warning 2017-03-03 07:26:51 -06:00
udisks2.nix all tests: added meta.maintainers section 2015-07-12 12:29:51 +02:00
virtualbox.nix nixos/tests/virtualbox: Fix @shell@ expansion 2017-03-27 04:53:17 +02: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