2015-05-28 11:57:21 +00:00
|
|
|
assert_spec linux
|
|
|
|
|
|
|
|
build "core init test/stdcxx"
|
|
|
|
|
|
|
|
create_boot_directory
|
|
|
|
|
|
|
|
install_config {
|
|
|
|
<config>
|
|
|
|
<parent-provides>
|
|
|
|
<service name="LOG"/>
|
2017-01-18 16:10:07 +00:00
|
|
|
<service name="PD"/>
|
2015-05-28 11:57:21 +00:00
|
|
|
<service name="ROM"/>
|
2017-01-18 16:10:07 +00:00
|
|
|
<service name="CPU"/>
|
2015-05-28 11:57:21 +00:00
|
|
|
</parent-provides>
|
|
|
|
<default-route>
|
|
|
|
<any-service> <parent/> </any-service>
|
|
|
|
</default-route>
|
2017-05-07 20:36:11 +00:00
|
|
|
<default caps="100"/>
|
2015-05-28 11:57:21 +00:00
|
|
|
<start name="test-stdcxx">
|
|
|
|
<resource name="RAM" quantum="10M"/>
|
|
|
|
<config>
|
2017-03-20 11:04:55 +00:00
|
|
|
<vfs> <dir name="dev"> <log/> </dir> </vfs>
|
|
|
|
<libc stdout="/dev/log"/>
|
2015-05-28 11:57:21 +00:00
|
|
|
</config>
|
|
|
|
</start>
|
|
|
|
</config>
|
|
|
|
}
|
|
|
|
|
|
|
|
build_boot_image {
|
|
|
|
core init test-stdcxx
|
2017-05-14 19:55:57 +00:00
|
|
|
ld.lib.so libc.lib.so libm.lib.so stdcxx.lib.so posix.lib.so
|
2015-05-28 11:57:21 +00:00
|
|
|
}
|
|
|
|
|
2017-05-23 13:05:55 +00:00
|
|
|
append qemu_args " -nographic "
|
2015-05-28 11:57:21 +00:00
|
|
|
|
2017-08-14 06:19:24 +00:00
|
|
|
run_genode_until ".*test-stdcxx finished.*\n" 20
|
2018-01-22 13:40:04 +00:00
|
|
|
|
|
|
|
grep_output {^\[init }
|
|
|
|
|
|
|
|
compare_output_to {
|
|
|
|
[init -> test-stdcxx] ° °° °°° test-stdcxx started °°° °° °
|
|
|
|
[init -> test-stdcxx] 2015.000000 - 5.000000 - 4
|
|
|
|
[init -> test-stdcxx] 2015 - 5 - 4
|
|
|
|
[init -> test-stdcxx] 123
|
|
|
|
[init -> test-stdcxx] 456
|
|
|
|
[init -> test-stdcxx] 7.8
|
|
|
|
[init -> test-stdcxx] caught std::invalid_argument
|
2018-03-14 15:36:49 +00:00
|
|
|
[init -> test-stdcxx] 1
|
|
|
|
[init -> test-stdcxx] 2
|
2018-01-22 13:40:04 +00:00
|
|
|
[init -> test-stdcxx] ° °° °°° test-stdcxx finished °°° °° °
|
|
|
|
}
|