2023-05-04 12:11:51 +00:00
|
|
|
build { core init lib/ld test/log }
|
2016-10-10 14:22:43 +00:00
|
|
|
|
|
|
|
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>
|
|
|
|
}
|
|
|
|
|
2023-05-04 12:11:51 +00:00
|
|
|
build_boot_image [build_artifacts]
|
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
|
|
|
|
2017-10-06 14:50:01 +00:00
|
|
|
grep_output {\[init -\> test-log}
|
2016-10-10 14:22:43 +00:00
|
|
|
|
|
|
|
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
|
2018-12-10 13:18:37 +00:00
|
|
|
[init -> test-log] floating point: 1.70
|
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
|
2017-10-06 14:50:01 +00:00
|
|
|
[init -> test-log] Very long messages:
|
|
|
|
[init -> test-log -> log] 1.....................................................................................................................................................................................................................................2
|
|
|
|
[init -> test-log] 3.....................................................................................................................................................................................................................................4
|
|
|
|
[init -> test-log] 5.....................................................................................................................................................................................................................................6
|
|
|
|
[init -> test-log]
|
2016-10-10 14:22:43 +00:00
|
|
|
[init -> test-log] Test done.
|
|
|
|
}
|