2012-05-06 21:56:37 +02:00
|
|
|
#
|
|
|
|
# Lua C++ library test
|
|
|
|
#
|
|
|
|
|
2019-01-03 18:01:49 +01:00
|
|
|
build "core init timer test/moon"
|
2012-05-06 21:56:37 +02:00
|
|
|
|
|
|
|
create_boot_directory
|
|
|
|
|
|
|
|
install_config {
|
|
|
|
<config>
|
|
|
|
<parent-provides>
|
2017-01-18 17:10:07 +01:00
|
|
|
<service name="PD"/>
|
2012-05-06 21:56:37 +02:00
|
|
|
<service name="ROM"/>
|
|
|
|
<service name="LOG"/>
|
2012-05-30 08:51:28 +02:00
|
|
|
<service name="IO_PORT"/>
|
2012-11-28 17:00:00 +01:00
|
|
|
<service name="IO_MEM"/>
|
2012-05-30 08:51:28 +02:00
|
|
|
<service name="IRQ"/>
|
2012-08-10 11:57:56 +02:00
|
|
|
<service name="CPU"/>
|
2012-05-06 21:56:37 +02:00
|
|
|
</parent-provides>
|
|
|
|
<default-route>
|
|
|
|
<any-service> <parent/> <any-child/> </any-service>
|
|
|
|
</default-route>
|
2017-05-07 22:36:11 +02:00
|
|
|
<default caps="100"/>
|
2012-05-06 23:30:47 +02:00
|
|
|
<start name="timer">
|
|
|
|
<resource name="RAM" quantum="1M"/>
|
|
|
|
<provides> <service name="Timer"/> </provides>
|
|
|
|
</start>
|
2012-05-06 21:56:37 +02:00
|
|
|
<start name="test-moon">
|
2013-02-14 17:23:35 +01:00
|
|
|
<resource name="RAM" quantum="1G"/>
|
2014-04-14 11:57:22 +02:00
|
|
|
<config>
|
2017-03-20 12:04:55 +01:00
|
|
|
<vfs> <dir name="dev"> <log/> </dir> </vfs>
|
|
|
|
<libc stdout="/dev/log"/>
|
2014-04-14 11:57:22 +02:00
|
|
|
</config>
|
2012-05-06 21:56:37 +02:00
|
|
|
</start>
|
|
|
|
</config>
|
|
|
|
}
|
|
|
|
|
|
|
|
build_boot_image {
|
2012-05-06 23:30:47 +02:00
|
|
|
core init timer test-moon
|
2018-04-23 10:49:21 +02:00
|
|
|
ld.lib.so libc.lib.so vfs.lib.so libm.lib.so
|
2012-05-06 21:56:37 +02:00
|
|
|
}
|
|
|
|
|
2017-05-23 15:05:55 +02:00
|
|
|
append qemu_args " -nographic "
|
2012-05-06 21:56:37 +02:00
|
|
|
|
2017-05-07 22:36:11 +02:00
|
|
|
run_genode_until {.*test-moon.*Finished\..*} 40
|