3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/nixos
aszlig 6cfb3b6364
nixos/tests: Use a patched QEMU for testing
The reason to patch QEMU is that with latest Nix, tests like "printing"
or "misc" fail because they expect the store paths to be owned by uid 0
and gid 0.

Starting with NixOS/nix@5e51ffb1c2, Nix
builds inside of a new user namespace. Unfortunately this also means
that bind-mounted store paths that are part of the derivation's inputs
are no longer owned by uid 0 and gid 0 but by uid 65534 and gid 65534.

This in turn causes things like sudo or cups to fail with errors about
insecure file permissions.

So in order to avoid that, let's make sure the VM always gets files
owned by uid 0 and gid 0 and does a no-op when doing a chmod on a store
path.

In addition, this adds a virtualisation.qemu.program option so that we
can make sure that we only use the patched version if we're *really*
running NixOS VM tests (that is, whenever we have imported
test-instrumentation.nix).

Tested against the "misc" and "printing" tests.

Signed-off-by: aszlig <aszlig@redmoonstudios.org>
2016-11-17 17:16:16 +01:00
..
doc/manual NixOS manual: Update link to list of AMIs 2016-11-07 11:24:15 -08:00
lib nixos/lib/testing: Fix unsetting $xchg 2016-09-11 17:31:12 +02:00
maintainers create-amis.sh: use nix-shell for convenience 2016-11-16 16:49:32 +01:00
modules nixos/tests: Use a patched QEMU for testing 2016-11-17 17:16:16 +01:00
tests cjdns test: fix typo 2016-11-15 01:57:30 +01:00
COPYING
default.nix nix: Add a "dev" output 2016-04-18 21:13:18 +02:00
README
release-combined.nix nixos/tests/kde5: rename from sddm-kde5 and run by default 2016-09-09 10:12:38 -05:00
release-small.nix release-small: drop mysql51, removed in 975d33e6 2016-08-13 09:46:42 +02:00
release.nix Revert "cjdns: Disable tests" 2016-11-12 13:09:28 +01:00

*** NixOS ***

NixOS is a Linux distribution based on the purely functional package
management system Nix.  More information can be found at
http://nixos.org/nixos and in the manual in doc/manual.