2012-05-06 19:56:37 +00:00
|
|
|
#
|
|
|
|
# Lua C++ library test
|
|
|
|
#
|
|
|
|
|
2012-05-06 21:30:47 +00:00
|
|
|
build "core init drivers/timer test/moon"
|
2012-05-06 19:56:37 +00:00
|
|
|
|
|
|
|
create_boot_directory
|
|
|
|
|
|
|
|
install_config {
|
|
|
|
<config>
|
|
|
|
<parent-provides>
|
|
|
|
<service name="ROM"/>
|
|
|
|
<service name="RM"/>
|
2012-05-06 21:30:47 +00:00
|
|
|
<service name="CAP"/>
|
2012-05-06 19:56:37 +00:00
|
|
|
<service name="LOG"/>
|
2012-05-30 06:51:28 +00:00
|
|
|
<service name="IO_PORT"/>
|
2012-11-28 16:00:00 +00:00
|
|
|
<service name="IO_MEM"/>
|
2012-05-30 06:51:28 +00:00
|
|
|
<service name="IRQ"/>
|
2012-08-10 09:57:56 +00:00
|
|
|
<service name="CPU"/>
|
2013-02-13 18:32:27 +00:00
|
|
|
<service name="SIGNAL"/>
|
2012-05-06 19:56:37 +00:00
|
|
|
</parent-provides>
|
|
|
|
<default-route>
|
|
|
|
<any-service> <parent/> <any-child/> </any-service>
|
|
|
|
</default-route>
|
2012-05-06 21:30:47 +00:00
|
|
|
<start name="timer">
|
|
|
|
<resource name="RAM" quantum="1M"/>
|
|
|
|
<provides> <service name="Timer"/> </provides>
|
|
|
|
</start>
|
2012-05-06 19:56:37 +00:00
|
|
|
<start name="test-moon">
|
2013-02-14 16:23:35 +00:00
|
|
|
<resource name="RAM" quantum="1G"/>
|
2014-04-14 09:57:22 +00:00
|
|
|
<config>
|
|
|
|
<libc stdout="/dev/log">
|
|
|
|
<vfs> <dir name="dev"> <log/> </dir> </vfs>
|
|
|
|
</libc>
|
|
|
|
</config>
|
2012-05-06 19:56:37 +00:00
|
|
|
</start>
|
|
|
|
</config>
|
|
|
|
}
|
|
|
|
|
|
|
|
build_boot_image {
|
2012-05-06 21:30:47 +00:00
|
|
|
core init timer test-moon
|
2014-04-14 09:57:22 +00:00
|
|
|
ld.lib.so libc.lib.so libm.lib.so
|
2012-05-06 19:56:37 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
append qemu_args " -nographic -m 64 "
|
|
|
|
|
2012-05-06 21:30:47 +00:00
|
|
|
run_genode_until {.*test-moon.*Finished\..*} 30
|
2012-05-06 19:56:37 +00:00
|
|
|
|
2013-03-20 12:15:30 +00:00
|
|
|
puts "Test succeeded"
|