2021-02-18 08:04:39 +00:00
|
|
|
if {[get_cmd_switch --autopilot] && [have_board riscv_qemu]} {
|
|
|
|
puts "Autopilot mode is not supported on this platform."
|
|
|
|
exit 0
|
|
|
|
}
|
|
|
|
|
2012-05-06 19:56:37 +00:00
|
|
|
#
|
|
|
|
# Lua C++ library test
|
|
|
|
#
|
|
|
|
|
2019-01-03 17:01:49 +00:00
|
|
|
build "core init timer test/moon"
|
2012-05-06 19:56:37 +00:00
|
|
|
|
|
|
|
create_boot_directory
|
|
|
|
|
|
|
|
install_config {
|
|
|
|
<config>
|
|
|
|
<parent-provides>
|
2017-01-18 16:10:07 +00:00
|
|
|
<service name="PD"/>
|
2012-05-06 19:56:37 +00:00
|
|
|
<service name="ROM"/>
|
|
|
|
<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"/>
|
2012-05-06 19:56:37 +00:00
|
|
|
</parent-provides>
|
|
|
|
<default-route>
|
|
|
|
<any-service> <parent/> <any-child/> </any-service>
|
|
|
|
</default-route>
|
2017-05-07 20:36:11 +00:00
|
|
|
<default caps="100"/>
|
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>
|
2017-03-20 11:04:55 +00:00
|
|
|
<vfs> <dir name="dev"> <log/> </dir> </vfs>
|
|
|
|
<libc stdout="/dev/log"/>
|
2014-04-14 09:57:22 +00:00
|
|
|
</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
|
2018-04-23 08:49:21 +00:00
|
|
|
ld.lib.so libc.lib.so vfs.lib.so libm.lib.so
|
2012-05-06 19:56:37 +00:00
|
|
|
}
|
|
|
|
|
2017-05-23 13:05:55 +00:00
|
|
|
append qemu_args " -nographic "
|
2012-05-06 19:56:37 +00:00
|
|
|
|
2017-05-07 20:36:11 +00:00
|
|
|
run_genode_until {.*test-moon.*Finished\..*} 40
|