From 0e386d0c1373809d3459d09532ad36be0faf6dfb Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Fri, 5 Jul 2013 00:06:08 +0200 Subject: 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). --- pkgs/build-support/vm/test.nix | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'pkgs/build-support/vm/test.nix') 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 ''; }; -*/ +*/ } -- cgit 1.4.1