2
0
Fork 0

Make "config" and "iso" test attributes accessible

This commit is contained in:
Ehmry - 2019-10-13 13:24:46 +02:00
parent a3f8d20d23
commit 504f59716c
3 changed files with 10 additions and 7 deletions

View File

@ -25,6 +25,7 @@ let
renderDhallInit = path: args:
hostPkgs.runCommand "init.xml" {
preferLocalBuild = true;
buildInputs = [ hostPkgs.dhall ];
initConfig = path;
initArgs = args;

View File

@ -9,6 +9,7 @@
<service name="RM"/>
<service name="CPU"/>
<service name="LOG"/>
<service name="TRACE"/>
</parent-provides>
<default-route>
<any-service>

View File

@ -91,18 +91,19 @@ let
return
}
global spawn_id
spawn ${hostPkgs.qemu_test}/bin/qemu-system-x86_64 -cdrom ${iso} -nographic \
-m size=${toString qemuMem}
wait_for_output $wait_for_re $timeout_value $spawn_id
}
# TODO: not in TCL
global env
set out $env(out)
set fd [open "$out/nix-support/hydra-build-products" w]
puts $fd "file iso ${iso}"
close $fd
global spawn_id
spawn ${hostPkgs.qemu_test}/bin/qemu-system-x86_64 -cdrom ${iso} -nographic \
-m size=${toString qemuMem}
wait_for_output $wait_for_re $timeout_value $spawn_id
}
'';
driver = with hostPkgs;
@ -129,7 +130,7 @@ let
test = passMeta (runTests driver);
in test // { inherit driver test; };
in test // { inherit driver iso test; config = testConfig; };
in {
callTest = path: args: