2019-05-08 08:50:24 +00:00
|
|
|
if {[have_spec odroid_xu] ||
|
|
|
|
[have_spec imx7d_sabre] ||
|
|
|
|
[have_spec imx6q_sabrelite] ||
|
2019-06-24 09:03:34 +00:00
|
|
|
[have_spec rpi3] ||
|
2019-05-08 08:50:24 +00:00
|
|
|
[have_spec zynq] ||
|
|
|
|
[have_spec imx53] && [have_spec foc]} {
|
2017-01-31 11:12:18 +00:00
|
|
|
puts "\n Run script is not supported on this platform. \n";
|
|
|
|
exit 0
|
|
|
|
}
|
2015-06-05 11:54:33 +00:00
|
|
|
|
2017-03-10 14:39:47 +00:00
|
|
|
if {[get_cmd_switch --autopilot] && [have_spec linux]} {
|
|
|
|
puts "\nAutopilot run is not supported on this platform\n"
|
|
|
|
exit 0
|
|
|
|
}
|
|
|
|
|
2015-06-05 11:54:33 +00:00
|
|
|
create_boot_directory
|
2019-05-03 11:19:17 +00:00
|
|
|
import_from_depot [depot_user]/src/[base_src] \
|
|
|
|
[depot_user]/pkg/[drivers_interactive_pkg] \
|
|
|
|
[depot_user]/src/init
|
|
|
|
build { test/fb_bench }
|
2015-06-05 11:54:33 +00:00
|
|
|
|
2019-05-03 11:19:17 +00:00
|
|
|
install_config {
|
2015-06-05 11:54:33 +00:00
|
|
|
<config>
|
|
|
|
<parent-provides>
|
|
|
|
<service name="ROM"/>
|
|
|
|
<service name="IRQ"/>
|
|
|
|
<service name="IO_MEM"/>
|
|
|
|
<service name="IO_PORT"/>
|
|
|
|
<service name="PD"/>
|
|
|
|
<service name="RM"/>
|
|
|
|
<service name="CPU"/>
|
|
|
|
<service name="LOG"/>
|
|
|
|
</parent-provides>
|
|
|
|
<default-route>
|
|
|
|
<any-service> <parent/> <any-child/> </any-service>
|
|
|
|
</default-route>
|
2017-05-07 20:36:11 +00:00
|
|
|
<default caps="100"/>
|
2015-06-05 11:54:33 +00:00
|
|
|
|
|
|
|
<start name="timer">
|
|
|
|
<resource name="RAM" quantum="1M"/>
|
|
|
|
<provides><service name="Timer"/></provides>
|
2019-05-03 11:19:17 +00:00
|
|
|
</start>
|
2017-01-31 11:03:57 +00:00
|
|
|
|
2019-05-03 11:19:17 +00:00
|
|
|
<start name="drivers" caps="1000">
|
2020-01-23 12:56:49 +00:00
|
|
|
<resource name="RAM" quantum="120M" constrain_phys="yes"/>
|
2019-05-03 11:19:17 +00:00
|
|
|
<binary name="init"/>
|
|
|
|
<route>
|
|
|
|
<service name="ROM" label="config"> <parent label="drivers.config"/> </service>
|
|
|
|
<service name="Timer"> <child name="timer"/> </service>
|
|
|
|
<any-service> <parent/> </any-service>
|
|
|
|
</route>
|
2015-06-05 11:54:33 +00:00
|
|
|
<provides>
|
2019-05-03 11:19:17 +00:00
|
|
|
<service name="Input"/> <service name="Framebuffer"/>
|
2015-06-05 11:54:33 +00:00
|
|
|
</provides>
|
2019-05-03 11:19:17 +00:00
|
|
|
</start>
|
2015-06-05 11:54:33 +00:00
|
|
|
|
|
|
|
<start name="test-fb_bench">
|
2017-03-16 15:56:16 +00:00
|
|
|
<!--
|
|
|
|
- We need this big amount of RAM because the VESA driver reports a
|
|
|
|
- large buffer on some hardware and the test mirrors this buffer in
|
|
|
|
- RAM.
|
|
|
|
-->
|
|
|
|
<resource name="RAM" quantum="72M"/>
|
2015-06-05 11:54:33 +00:00
|
|
|
</start>
|
|
|
|
</config>}
|
|
|
|
|
2019-05-03 11:19:17 +00:00
|
|
|
build_boot_image { test-fb_bench }
|
2015-06-05 11:54:33 +00:00
|
|
|
|
2017-01-31 12:30:44 +00:00
|
|
|
# disable QEMU graphic to enable testing on our machines without SDL and X
|
2017-05-23 13:05:55 +00:00
|
|
|
append qemu_args "-nographic "
|
2017-01-31 12:30:44 +00:00
|
|
|
|
2017-08-14 06:19:24 +00:00
|
|
|
run_genode_until {.*--- Framebuffer benchmark finished ---.*\n} 40
|