summary refs log tree commit diff
path: root/pkgs/build-support/vm/test.nix
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2008-03-17 17:08:40 +0000
committerEelco Dolstra <eelco.dolstra@logicblox.com>2008-03-17 17:08:40 +0000
commit195c3788ed80b2b54297bd679516729d7eb6415a (patch)
tree53b9daca8aaee52e0ea04bf9139a3386bdf0e68e /pkgs/build-support/vm/test.nix
parent0301a74bf0c8d46151ba3c6c440ee54205ed5079 (diff)
downloadnixpkgs-195c3788ed80b2b54297bd679516729d7eb6415a.tar
nixpkgs-195c3788ed80b2b54297bd679516729d7eb6415a.tar.gz
nixpkgs-195c3788ed80b2b54297bd679516729d7eb6415a.tar.bz2
nixpkgs-195c3788ed80b2b54297bd679516729d7eb6415a.tar.lz
nixpkgs-195c3788ed80b2b54297bd679516729d7eb6415a.tar.xz
nixpkgs-195c3788ed80b2b54297bd679516729d7eb6415a.tar.zst
nixpkgs-195c3788ed80b2b54297bd679516729d7eb6415a.zip
* Cleanup.
svn path=/nixpkgs/trunk/; revision=11166
Diffstat (limited to 'pkgs/build-support/vm/test.nix')
-rw-r--r--pkgs/build-support/vm/test.nix57
1 files changed, 57 insertions, 0 deletions
diff --git a/pkgs/build-support/vm/test.nix b/pkgs/build-support/vm/test.nix
new file mode 100644
index 00000000000..e25704612dc
--- /dev/null
+++ b/pkgs/build-support/vm/test.nix
@@ -0,0 +1,57 @@
+with import ../../.. {};
+with import ./vm.nix;
+
+rec {
+
+
+  # Run the PatchELF derivation in a VM.
+  buildPatchelfInVM = runInLinuxVM patchelf;
+
+
+  rpmImage = fillDiskWithRPMs {
+    name = "fedora-image";
+    fullName = "Fedora Core 3";
+    size = 1024;
+    rpms = import ./rpm/fedora-3-packages.nix {inherit fetchurl;};
+  };
+
+
+  testRPMImage = makeImageTestScript rpmImage;
+
+
+  buildPatchelfRPM = buildRPM {
+    name = "patchelf-rpm";
+    src = patchelf.src;
+    diskImage = rpmImage;
+  };
+
+  
+  ubuntuImage = fillDiskWithDebs {
+    name = "ubuntu-image";
+    fullName = "Ubuntu 7.10 Gutsy";
+    size = 256;
+    debs = import ./deb/ubuntu-7.10-gutsy-i386.nix {inherit fetchurl;};
+  };
+  
+
+  debianImage = fillDiskWithDebs {
+    name = "debian-image";
+    fullName = "Debian 4.0r3 Etch";
+    size = 256;
+    debs = import ./deb/debian-4.0r3-etch-i386.nix {inherit fetchurl;};
+  };
+
+
+  testUbuntuImage = makeImageTestScript ubuntuImage;
+
+  
+  buildInDebian = runInLinuxImage (stdenv.mkDerivation {
+    name = "deb-compile";
+    src = nixUnstable.src;
+    diskImage = debianImage;
+    memSize = 512;
+  });
+  
+
+  
+}
\ No newline at end of file