openvswitch: generalize builder
[NixPkgs.git] / pkgs / build-support / vm / test.nix
blobae6a10dea3b9c6736722453b302e09b02af96ea5
1 with import ../../.. { };
2 with vmTools;
7   # Run the PatchELF derivation in a VM.
8   buildPatchelfInVM = runInLinuxVM patchelf;
10   buildHelloInVM = runInLinuxVM hello;
12   buildPcmanrmInVM = runInLinuxVM (pcmanfm.overrideAttrs (old: {
13     # goes out-of-memory with many cores
14     enableParallelBuilding = false;
15   }));
17   testRPMImage = makeImageTestScript diskImages.fedora27x86_64;
20   buildPatchelfRPM = buildRPM {
21     name = "patchelf-rpm";
22     src = patchelf.src;
23     diskImage = diskImages.fedora27x86_64;
24     diskImageFormat = "qcow2";
25   };
28   testUbuntuImage = makeImageTestScript diskImages.ubuntu1804i386;
31   buildInDebian = runInLinuxImage (stdenv.mkDerivation {
32     name = "deb-compile";
33     src = patchelf.src;
34     diskImage = diskImages.ubuntu1804i386;
35     diskImageFormat = "qcow2";
36     memSize = 512;
37     postHook = ''
38       dpkg-query --list
39     '';
40   });