2013-05-16 19:25:08 +00:00
|
|
|
build "core init test/synced_interface"
|
|
|
|
|
|
|
|
create_boot_directory
|
|
|
|
|
|
|
|
install_config {
|
|
|
|
<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-child/> </any-service>
|
|
|
|
</default-route>
|
2017-05-07 20:36:11 +00:00
|
|
|
<default caps="100"/>
|
2013-05-16 19:25:08 +00:00
|
|
|
<start name="test-synced_interface">
|
|
|
|
<resource name="RAM" quantum="1M"/>
|
|
|
|
</start>
|
|
|
|
</config>
|
|
|
|
}
|
|
|
|
|
2016-12-01 18:00:11 +00:00
|
|
|
build_boot_image "core ld.lib.so init test-synced_interface"
|
2013-05-16 19:25:08 +00:00
|
|
|
|
2017-05-23 13:05:55 +00:00
|
|
|
append qemu_args "-nographic "
|
2013-05-16 19:25:08 +00:00
|
|
|
|
2017-08-14 06:19:24 +00:00
|
|
|
run_genode_until {.*--- Synced interface test finished ---.*\n} 20
|
2013-05-16 19:25:08 +00:00
|
|
|
|
|
|
|
grep_output {-> test-synced_interface}
|
|
|
|
|
|
|
|
compare_output_to {
|
2017-01-17 11:58:00 +00:00
|
|
|
[init -> test-synced_interface] --- Synced interface test ---
|
2014-08-22 12:43:54 +00:00
|
|
|
[init -> test-synced_interface] lock
|
|
|
|
[init -> test-synced_interface] adding 13 + 14
|
|
|
|
[init -> test-synced_interface] unlock
|
|
|
|
[init -> test-synced_interface] result is 27
|
2017-01-17 11:58:00 +00:00
|
|
|
[init -> test-synced_interface] --- Synced interface test finished ---
|
2013-05-16 19:25:08 +00:00
|
|
|
}
|