about summary refs log tree commit diff
path: root/pkgs/build-support/vm/test.nix
blob: 5ee816d799aab56cc07d1112f108094cc5e609d9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
with import ../../.. {};
with vmTools;

rec {


  # Run the PatchELF derivation in a VM.
  buildPatchelfInVM = runInLinuxVM patchelf;


  testRPMImage = makeImageTestScript diskImages.suse90i386;


  buildPatchelfRPM = buildRPM {
    name = "patchelf-rpm";
    src = patchelf.src;
    diskImage = diskImages.fedora5i386;
  };

  
  testUbuntuImage = makeImageTestScript diskImages.ubuntu710i386;

  
  buildInDebian = runInLinuxImage (stdenv.mkDerivation {
    name = "deb-compile";
    src = nixUnstable.src;
    diskImage = diskImages.debian40r3i386;
    memSize = 512;
    phases = "sysInfoPhase unpackPhase patchPhase configurePhase buildPhase checkPhase installPhase fixupPhase distPhase";
    sysInfoPhase = ''
      dpkg-query --list
    '';
  });
  

  
}