2
0
Fork 0
genodepkgs/tests/solo5/net_2if.dhall

89 lines
3.2 KiB
Plaintext
Raw Normal View History

2020-01-17 01:24:34 +01:00
-- SPDX-License-Identifier: CC0-1.0
2019-10-08 09:48:45 +02:00
let Genode = env:DHALL_GENODE
2020-01-17 19:27:04 +01:00
let os = env:OS_MANIFEST
let tests = env:SOLO5_TEST_MANIFEST
in { config =
Genode.Init::{
, children =
toMap
{ nic =
Genode.Init.Start::{
, binary = "nic_loopback"
, provides = [ "Nic" ]
}
, bridge =
Genode.Init.Start::{
, binary = "nic_bridge"
, resources = { caps = 200, ram = Genode.units.MiB 8 }
, provides = [ "Nic" ]
, routes = [ Genode.ServiceRoute.child "Nic" "nic" ]
, config =
Some
( Genode.Prelude.XML.text
''
<config mac="02:02:02:02:03:00" verbose="no">
<policy label="solo5 -> service0" ip_addr="10.0.0.2"/>
<policy label="solo5 -> service1" ip_addr="10.1.0.2"/>
<default-policy/>
</config>
''
)
}
, solo5 =
Genode.Init.Start::{
, binary = "solo5-test_net_2if"
, resources = { caps = 256, ram = Genode.units.MiB 5 }
2020-01-17 19:27:04 +01:00
, routes =
[ Genode.ServiceRoute.parent "Timer"
, Genode.ServiceRoute.child "Nic" "bridge"
]
, config =
Some
( Genode.Prelude.XML.text
''
<config><cmdline>limit</cmdline></config>
''
)
}
, clients =
Genode.Init.Start::{
, binary = "sequence"
, exitPropagate = True
2020-01-17 19:27:04 +01:00
, resources = { caps = 256, ram = Genode.units.MiB 8 }
, routes =
[ Genode.ServiceRoute.parent "Timer"
, Genode.ServiceRoute.child "Nic" "bridge"
]
, config =
Some
( Genode.Prelude.XML.text
''
<config>
<start name="ping0">
<binary name="ping"/>
<config interface="10.0.0.72/24" dst_ip="10.0.0.2" period_sec="1" count="4"/>
</start>
<start name="ping1">
<binary name="ping"/>
<config interface="10.1.0.72/24" dst_ip="10.1.0.2" period_sec="1" count="4"/>
</start>
</config>
''
)
}
}
}
, rom =
Genode.Boot.toRomPaths
[ tests.bin.solo5-test_net_2if
, os.bin.sequence
, os.bin.nic_bridge
, os.bin.nic_loopback
, os.bin.ping
]
2020-01-17 19:27:04 +01:00
}