2016-10-10 14:22:43 +00:00
|
|
|
build "core init test/log"
|
|
|
|
|
|
|
|
create_boot_directory
|
|
|
|
|
|
|
|
install_config {
|
|
|
|
<config>
|
|
|
|
<parent-provides>
|
|
|
|
<service name="LOG"/>
|
2017-01-18 16:10:07 +00:00
|
|
|
<service name="PD"/>
|
|
|
|
<service name="CPU"/>
|
|
|
|
<service name="ROM"/>
|
2016-10-10 14:22:43 +00:00
|
|
|
</parent-provides>
|
|
|
|
<default-route>
|
|
|
|
<any-service> <parent/> </any-service>
|
|
|
|
</default-route>
|
2017-05-07 20:36:11 +00:00
|
|
|
<default caps="50"/>
|
2016-10-10 14:22:43 +00:00
|
|
|
<start name="test-log">
|
|
|
|
<resource name="RAM" quantum="10M"/>
|
|
|
|
</start>
|
|
|
|
</config>
|
|
|
|
}
|
|
|
|
|
2016-12-01 18:00:11 +00:00
|
|
|
build_boot_image "core ld.lib.so init test-log"
|
2016-10-10 14:22:43 +00:00
|
|
|
|
2017-05-23 13:05:55 +00:00
|
|
|
append qemu_args "-nographic "
|
2017-08-07 13:24:40 +00:00
|
|
|
append xen_args { sdl="0" }
|
2016-10-10 14:22:43 +00:00
|
|
|
|
2017-08-14 06:19:24 +00:00
|
|
|
run_genode_until "Test done.*\n" 20
|
2016-10-10 14:22:43 +00:00
|
|
|
|
|
|
|
grep_output {\[init -\> test-log\]}
|
|
|
|
|
|
|
|
compare_output_to {
|
|
|
|
[init -> test-log] hex range: [0e00,1680)
|
|
|
|
[init -> test-log] empty hex range: [0abc0000,0abc0000) (empty!)
|
|
|
|
[init -> test-log] hex range to limit: [f8,ff]
|
|
|
|
[init -> test-log] invalid hex range: [f8,08) (overflow!)
|
|
|
|
[init -> test-log] negative hex char: 0xfe
|
|
|
|
[init -> test-log] positive hex char: 0x02
|
2016-10-25 09:39:24 +00:00
|
|
|
[init -> test-log] multiarg string: "parent -> child.7"
|
2017-01-30 20:35:01 +00:00
|
|
|
[init -> test-log] String(Hex(3)): 0x3
|
2016-10-10 14:22:43 +00:00
|
|
|
[init -> test-log] Test done.
|
|
|
|
}
|