2017-03-16 15:12:25 +00:00
|
|
|
build "core init server/report_rom test/resource_request drivers/timer"
|
2013-09-28 18:12:10 +00:00
|
|
|
|
|
|
|
create_boot_directory
|
|
|
|
|
|
|
|
install_config {
|
|
|
|
<config>
|
|
|
|
<parent-provides>
|
|
|
|
<service name="ROM"/>
|
|
|
|
<service name="CPU"/>
|
|
|
|
<service name="PD"/>
|
|
|
|
<service name="IRQ"/>
|
|
|
|
<service name="IO_PORT"/>
|
|
|
|
<service name="IO_MEM"/>
|
|
|
|
<service name="LOG"/>
|
|
|
|
</parent-provides>
|
|
|
|
<default-route>
|
|
|
|
<any-service> <parent/> <any-child/> </any-service>
|
|
|
|
</default-route>
|
2017-05-07 20:36:11 +00:00
|
|
|
<default caps="100"/>
|
2013-09-28 18:12:10 +00:00
|
|
|
<start name="timer">
|
|
|
|
<resource name="RAM" quantum="1M"/>
|
|
|
|
<provides><service name="Timer"/></provides>
|
|
|
|
</start>
|
2017-03-16 15:12:25 +00:00
|
|
|
<start name="report_rom">
|
2014-01-15 09:40:43 +00:00
|
|
|
<resource name="RAM" quantum="2M"/>
|
2017-03-16 15:12:25 +00:00
|
|
|
<provides> <service name="ROM"/> <service name="Report"/> </provides>
|
|
|
|
<config verbose="no">
|
|
|
|
<policy label="init -> config" report="init_monitor -> init.config"/>
|
|
|
|
<policy label="init_monitor -> state" report="init -> state"/>
|
|
|
|
</config>
|
|
|
|
</start>
|
2017-05-07 20:36:11 +00:00
|
|
|
<start name="init" caps="4000">
|
2017-03-16 15:12:25 +00:00
|
|
|
<resource name="RAM" quantum="10M"/>
|
|
|
|
<route>
|
|
|
|
<service name="ROM" label="config"> <child name="report_rom"/> </service>
|
|
|
|
<any-service> <parent/> <any-child/> </any-service>
|
|
|
|
</route>
|
|
|
|
</start>
|
|
|
|
<start name="init_monitor">
|
|
|
|
<binary name="test-resource_request"/>
|
|
|
|
<resource name="RAM" quantum="2M"/>
|
|
|
|
<config role="monitor"/>
|
|
|
|
<route>
|
|
|
|
<service name="ROM" label="state"> <child name="report_rom"/> </service>
|
|
|
|
<any-service> <parent/> <any-child/> </any-service>
|
|
|
|
</route>
|
2013-09-28 18:12:10 +00:00
|
|
|
</start>
|
|
|
|
</config>
|
|
|
|
}
|
|
|
|
|
2017-03-16 15:12:25 +00:00
|
|
|
build_boot_image "core ld.lib.so init timer report_rom test-resource_request"
|
2013-09-28 18:12:10 +00:00
|
|
|
|
2017-05-23 13:05:55 +00:00
|
|
|
append qemu_args "-nographic "
|
2013-09-28 18:12:10 +00:00
|
|
|
|
2017-05-11 18:03:28 +00:00
|
|
|
run_genode_until {child "test-resource_request" exited with exit value 0.*\n} 60
|