2020-03-22 06:11:46 +01:00
|
|
|
# SPDX-License-Identifier: CC0-1.0
|
|
|
|
|
2020-04-04 13:02:37 +02:00
|
|
|
{ testEnv, pkgs, buildPkgs, ... }:
|
2020-03-22 06:11:46 +01:00
|
|
|
with pkgs;
|
|
|
|
|
|
|
|
testEnv.mkTest {
|
|
|
|
name = "block_router";
|
|
|
|
meta.maintainers = with pkgs.stdenv.lib.maintainers; [ ehmry ];
|
|
|
|
|
|
|
|
testConfig = ./block_router.dhall;
|
|
|
|
testInputs = map pkgs.genodeSources.make [
|
|
|
|
"server/part_block"
|
|
|
|
"server/ram_block"
|
|
|
|
"test/block/client"
|
|
|
|
] ++ [ pkgs.block_router ];
|
|
|
|
testScript = ''
|
|
|
|
catch { exec dd if=/dev/zero of=gpt.raw bs=512 count=7168 }
|
2020-04-04 13:02:37 +02:00
|
|
|
exec ${buildPkgs.gptfdisk}/bin/sgdisk -o -n 3:2048:4095 -c 3:first-test-partition -n 31:4096:6143 -c 31:second-test-partition gpt.raw
|
2020-03-22 06:11:46 +01:00
|
|
|
|
|
|
|
run_genode_until {Tests finished successfully.*\n.*Tests finished successfully.*\n} 120
|
|
|
|
'';
|
|
|
|
}
|