diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-07-05 00:06:08 +0200 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2013-07-05 00:17:04 +0200 |
commit | 0e386d0c1373809d3459d09532ad36be0faf6dfb (patch) | |
tree | bdca17e13f04fbc5b9b98f56bfe9b85a38c49cc7 /pkgs/build-support/vm/test.nix | |
parent | 9efe759dd8fb8fd85368483923a77f832b8805c6 (diff) |
VM builds: Use 9p/virtfs instead of CIFS
9p (with caching enabled) is much faster than CIFS and doesn't require Samba or virtual networking. For instance, building GNU Hello with CIFS takes ~323s on my laptop, but with 9p it takes 54s. More measurements will be needed to see if "cache=fscache" is really faster than "cache=loose" (the former seems to be a little bit faster).
Diffstat (limited to 'pkgs/build-support/vm/test.nix')
-rw-r--r-- | pkgs/build-support/vm/test.nix | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/pkgs/build-support/vm/test.nix b/pkgs/build-support/vm/test.nix index eed7cd017c44a..798c283a17747 100644 --- a/pkgs/build-support/vm/test.nix +++ b/pkgs/build-support/vm/test.nix @@ -7,6 +7,10 @@ rec { # Run the PatchELF derivation in a VM. buildPatchelfInVM = runInLinuxVM patchelf; + buildHelloInVM = runInLinuxVM hello; + + buildPanInVM = runInLinuxVM pan; + testRPMImage = makeImageTestScript diskImages.fedora16x86_64; @@ -17,10 +21,10 @@ rec { diskImage = diskImages.fedora16x86_64; }; - + testUbuntuImage = makeImageTestScript diskImages.ubuntu810i386; - + buildInDebian = runInLinuxImage (stdenv.mkDerivation { name = "deb-compile"; src = patchelf.src; @@ -65,6 +69,6 @@ rec { make install ''; }; -*/ +*/ } |