2013-12-02 09:24:35 +00:00
|
|
|
build "core init test/thread"
|
|
|
|
|
|
|
|
create_boot_directory
|
|
|
|
|
2016-05-04 10:27:17 +00:00
|
|
|
#
|
|
|
|
# We skip pause-resume test on platforms where this functionality is not
|
|
|
|
# supported.
|
|
|
|
#
|
|
|
|
proc pause_resume_supported { } {
|
|
|
|
if {[have_spec pistachio]} { return 0 }
|
|
|
|
if {[have_spec linux]} { return 0 }
|
|
|
|
if {[have_spec fiasco]} { return 0 }
|
|
|
|
return 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
set config {
|
2013-12-02 09:24:35 +00:00
|
|
|
<config>
|
|
|
|
<parent-provides>
|
|
|
|
<service name="LOG"/>
|
2014-04-03 12:18:52 +00:00
|
|
|
<service name="CPU"/>
|
2013-12-02 09:24:35 +00:00
|
|
|
</parent-provides>
|
|
|
|
<default-route>
|
|
|
|
<any-service> <parent/> </any-service>
|
|
|
|
</default-route>
|
|
|
|
<start name="test-thread">
|
|
|
|
<resource name="RAM" quantum="10M"/>
|
2016-05-04 10:27:17 +00:00
|
|
|
<config>}
|
|
|
|
|
|
|
|
append_if [pause_resume_supported] config { <pause_resume/> }
|
|
|
|
|
|
|
|
append config {
|
|
|
|
</config>
|
2013-12-02 09:24:35 +00:00
|
|
|
</start>
|
|
|
|
</config>
|
|
|
|
}
|
|
|
|
|
2016-05-04 10:27:17 +00:00
|
|
|
install_config $config
|
|
|
|
|
2013-12-02 09:24:35 +00:00
|
|
|
build_boot_image "core init test-thread"
|
|
|
|
|
|
|
|
append qemu_args "-nographic -m 64"
|
|
|
|
|
2016-05-04 10:27:17 +00:00
|
|
|
run_genode_until {.*test completed successfully.*\n} 60
|
2014-09-05 15:00:31 +00:00
|
|
|
|