* Require KVM.
svn path=/nixos/trunk/; revision=23538
This commit is contained in:
parent
68ebbb6093
commit
0bfba4cbf5
|
@ -15,6 +15,9 @@ rec {
|
|||
runTests = network: tests:
|
||||
stdenv.mkDerivation {
|
||||
name = "vm-test-run";
|
||||
|
||||
requiredSystemFeatures = [ "kvm" ];
|
||||
|
||||
inherit tests;
|
||||
|
||||
buildInputs = [ pkgs.qemu_kvm pkgs.imagemagick ];
|
||||
|
@ -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 a new issue