|
|
|
@ -38,7 +38,7 @@ let
|
|
|
|
|
''run_genode_until {[init] child "harness" exited with exit value 0} 60'';
|
|
|
|
|
|
|
|
|
|
mkTest = { name ? "unamed", testScript ? defaultScript, testConfig
|
|
|
|
|
, testInputs ? [ ], testEnv ? { }, qemuArgs ? [ ], ... }@t:
|
|
|
|
|
, testInputs ? [ ], testEnv ? { }, qemuArgs ? [ ], sotest ? false, ... }@t:
|
|
|
|
|
let
|
|
|
|
|
manifest = lib.mergeManifests (map addManifest (with testPkgs;
|
|
|
|
|
[ base-nova (genodeSources.make "init") sotest-producer ]
|
|
|
|
@ -143,19 +143,22 @@ let
|
|
|
|
|
|
|
|
|
|
iso = apps.nova-iso.function testEnv' "${testConfig'}";
|
|
|
|
|
|
|
|
|
|
sotest = buildPackages.runCommand "nova-${name}-sotest" testEnv' ''
|
|
|
|
|
cp "${testPkgs.bender}" bender
|
|
|
|
|
cp "${testPkgs.NOVA}/hypervisor-x86_64" hypervisor
|
|
|
|
|
cp ${image} image.elf
|
|
|
|
|
mkdir -p $out/nix-support
|
|
|
|
|
${buildPackages.zip}/bin/zip "$out/binaries.zip" \
|
|
|
|
|
bender hypervisor image.elf
|
|
|
|
|
${apps.dhall-to-yaml.program} < ${
|
|
|
|
|
./sotest_config.dhall
|
|
|
|
|
} > "$out/sotest_config.yaml"
|
|
|
|
|
echo file zip $out/binaries.zip >> "$out/nix-support/hydra-build-products"
|
|
|
|
|
echo file config $out/sotest_config.yaml >> "$out/nix-support/hydra-build-products"
|
|
|
|
|
'';
|
|
|
|
|
sotest = if sotest then
|
|
|
|
|
buildPackages.runCommand "nova-${name}-sotest" testEnv' ''
|
|
|
|
|
cp "${testPkgs.bender}" bender
|
|
|
|
|
cp "${testPkgs.NOVA}/hypervisor-x86_64" hypervisor
|
|
|
|
|
cp ${image} image.elf
|
|
|
|
|
mkdir -p $out/nix-support
|
|
|
|
|
${buildPackages.zip}/bin/zip "$out/binaries.zip" \
|
|
|
|
|
hypervisor image.elf
|
|
|
|
|
${apps.dhall-to-yaml.program} < ${
|
|
|
|
|
./sotest_nova_config.dhall
|
|
|
|
|
} > "$out/sotest_config.yaml"
|
|
|
|
|
echo file sotest-binaries $out/binaries.zip >> "$out/nix-support/hydra-build-products"
|
|
|
|
|
echo file sotest-config $out/sotest_config.yaml >> "$out/nix-support/hydra-build-products"
|
|
|
|
|
''
|
|
|
|
|
else
|
|
|
|
|
null;
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|