2020-03-22 06:11:46 +01:00
|
|
|
# SPDX-License-Identifier: CC0-1.0
|
|
|
|
|
2020-04-05 19:54:03 +02:00
|
|
|
{ testEnv, pkgs, buildPackages, ... }:
|
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;
|
2020-04-08 15:05:26 +02:00
|
|
|
testInputs =
|
|
|
|
map pkgs.genodeSources.depot [ "part_block" "ram_block" "test-block" ]
|
|
|
|
++ [ pkgs.block_router ];
|
2020-03-22 06:11:46 +01:00
|
|
|
testScript = ''
|
|
|
|
catch { exec dd if=/dev/zero of=gpt.raw bs=512 count=7168 }
|
2020-04-13 09:10:45 +02:00
|
|
|
exec ${buildPackages.gptfdisk}/bin/sgdisk -o -n 3:2048:4095 -c 3:first-test-partition -n 31:4096:6143 --typecode=31:24b69406-18a1-428d-908e-d21a1437122c gpt.raw
|
2020-03-22 06:11:46 +01:00
|
|
|
|
|
|
|
run_genode_until {Tests finished successfully.*\n.*Tests finished successfully.*\n} 120
|
|
|
|
'';
|
|
|
|
}
|