2011-12-22 15:19:25 +00:00
|
|
|
build "core init test/sub_rm"
|
|
|
|
|
|
|
|
create_boot_directory
|
|
|
|
|
2017-11-02 15:38:00 +00:00
|
|
|
proc local_attach_addr {} { return "0x70000000" }
|
|
|
|
proc attach_twice_forbidden {} { if { [have_spec linux] } { return true } else { return false } }
|
|
|
|
proc support_attach_sub_any {} { if { [have_spec linux] } { return false } else { return true } }
|
|
|
|
|
|
|
|
append config {
|
2011-12-22 15:19:25 +00:00
|
|
|
<config>
|
|
|
|
<parent-provides>
|
|
|
|
<service name="ROM"/>
|
|
|
|
<service name="CPU"/>
|
|
|
|
<service name="RM"/>
|
|
|
|
<service name="PD"/>
|
|
|
|
<service name="LOG"/>
|
|
|
|
</parent-provides>
|
|
|
|
<default-route>
|
|
|
|
<any-service> <parent/> </any-service>
|
|
|
|
</default-route>
|
2017-05-07 20:36:11 +00:00
|
|
|
<default caps="100"/>
|
2017-11-02 15:38:00 +00:00
|
|
|
<start name="test-sub_rm">
|
2011-12-22 15:19:25 +00:00
|
|
|
<resource name="RAM" quantum="10M"/>
|
2017-11-02 15:38:00 +00:00
|
|
|
<config local_attach_addr="} [local_attach_addr] {"
|
|
|
|
attach_twice_forbidden="} [attach_twice_forbidden] {"
|
|
|
|
support_attach_sub_any="} [support_attach_sub_any] {"/>
|
2011-12-22 15:19:25 +00:00
|
|
|
</start>
|
|
|
|
</config>
|
|
|
|
}
|
|
|
|
|
2017-08-10 19:32:21 +00:00
|
|
|
install_config $config
|
|
|
|
|
2016-12-01 18:00:11 +00:00
|
|
|
build_boot_image "core ld.lib.so init test-sub_rm"
|
2011-12-22 15:19:25 +00:00
|
|
|
|
2017-05-23 13:05:55 +00:00
|
|
|
append qemu_args "-nographic "
|
2011-12-22 15:19:25 +00:00
|
|
|
|
2017-08-14 06:19:24 +00:00
|
|
|
run_genode_until {.*--- end of sub-rm test ---.*} 20
|