mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 04:02:55 +03:00
* Require KVM.
svn path=/nixos/trunk/; revision=23538
This commit is contained in:
parent
68ebbb6093
commit
0bfba4cbf5
@ -15,10 +15,13 @@ rec {
|
||||
runTests = network: tests:
|
||||
stdenv.mkDerivation {
|
||||
name = "vm-test-run";
|
||||
|
||||
requiredSystemFeatures = [ "kvm" ];
|
||||
|
||||
inherit tests;
|
||||
|
||||
buildInputs = [ pkgs.qemu_kvm pkgs.imagemagick ];
|
||||
|
||||
|
||||
buildCommand =
|
||||
''
|
||||
mkdir $out
|
||||
@ -138,10 +141,11 @@ rec {
|
||||
cp ${./test-driver/Machine.pm} Machine.pm
|
||||
export tests='${testscript}'
|
||||
${perl}/bin/perl ${./test-driver/test-driver.pl} ${vms}/vms/*/bin/run-*-vm
|
||||
'';
|
||||
''; # */
|
||||
|
||||
in
|
||||
lib.overrideDerivation drv (attrs: {
|
||||
requiredSystemFeatures = [ "kvm" ];
|
||||
builder = "${bash}/bin/sh";
|
||||
args = ["-e" vmRunCommand];
|
||||
origArgs = attrs.args;
|
||||
|
Loading…
Reference in New Issue
Block a user