summary refs log blame commit diff
path: root/pkgs/build-support/vm/test.nix
blob: 698503032671950f6932173a2637b341b6b93354 (plain) (tree)
1
2
3
4
5
6
7
8
9
                        
             
 
 




                                            



                                      
 
                                                               




                               
                                          

    
 
                                                                 
 
 

                                                        
                       
                                          
                  



                                                                                                                          
     
 
 
with import ../../.. {};
with vmTools;

{


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

  buildHelloInVM = runInLinuxVM hello;

  buildPanInVM = runInLinuxVM pan;


  testRPMImage = makeImageTestScript diskImages.fedora16x86_64;


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


  testUbuntuImage = makeImageTestScript diskImages.ubuntu810i386;


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

}