genode/repos/libports/run/stdcxx.run
2018-05-30 12:26:19 +02:00

52 lines
1.2 KiB
Plaintext

assert_spec linux
build "core init test/stdcxx"
create_boot_directory
install_config {
<config>
<parent-provides>
<service name="LOG"/>
<service name="PD"/>
<service name="ROM"/>
<service name="CPU"/>
</parent-provides>
<default-route>
<any-service> <parent/> </any-service>
</default-route>
<default caps="100"/>
<start name="test-stdcxx">
<resource name="RAM" quantum="10M"/>
<config>
<vfs> <dir name="dev"> <log/> </dir> </vfs>
<libc stdout="/dev/log"/>
</config>
</start>
</config>
}
build_boot_image {
core init test-stdcxx
ld.lib.so libc.lib.so vfs.lib.so libm.lib.so stdcxx.lib.so posix.lib.so
}
append qemu_args " -nographic "
run_genode_until ".*test-stdcxx finished.*\n" 20
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
[init -> test-stdcxx] 1
[init -> test-stdcxx] 2
[init -> test-stdcxx] ° °° °°° test-stdcxx finished °°° °° °
}