nixpkgs-suyu/pkgs/build-support/vm/test.nix

41 lines
792 B
Nix
Raw Normal View History

2021-08-20 23:31:26 +02:00
with import ../../.. { };
with vmTools;
2019-08-13 23:52:01 +02:00
{
# Run the PatchELF derivation in a VM.
buildPatchelfInVM = runInLinuxVM patchelf;
buildHelloInVM = runInLinuxVM hello;
buildPanInVM = runInLinuxVM (pan // { memSize = 2048; });
2021-12-17 15:46:17 +01:00
testRPMImage = makeImageTestScript diskImages.fedora27x86_64;
buildPatchelfRPM = buildRPM {
name = "patchelf-rpm";
src = patchelf.src;
2021-12-17 15:46:17 +01:00
diskImage = diskImages.fedora27x86_64;
diskImageFormat = "qcow2";
};
2021-12-17 15:46:17 +01:00
testUbuntuImage = makeImageTestScript diskImages.ubuntu1804i386;
buildInDebian = runInLinuxImage (stdenv.mkDerivation {
name = "deb-compile";
src = patchelf.src;
2021-10-28 00:02:44 +02:00
diskImage = diskImages.ubuntu1804i386;
diskImageFormat = "qcow2";
memSize = 512;
2021-10-28 00:02:44 +02:00
postHook = ''
dpkg-query --list
'';
});
}