2023-05-04 12:11:51 +00:00
|
|
|
build { core init lib/ld test/thread }
|
2013-12-02 09:24:35 +00:00
|
|
|
|
|
|
|
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 { } {
|
2017-06-16 14:27:56 +00:00
|
|
|
if {[have_spec pistachio]} { return false }
|
|
|
|
if {[have_spec linux]} { return false }
|
|
|
|
if {[have_spec fiasco]} { return false }
|
|
|
|
return true
|
2016-05-04 10:27:17 +00:00
|
|
|
}
|
|
|
|
|
2017-06-16 14:27:56 +00:00
|
|
|
#
|
|
|
|
# We skip the lock and C++ guard tests on kernels without priority support (as
|
|
|
|
# it is needed for the test implementation).
|
|
|
|
#
|
|
|
|
proc prio_supported { } {
|
|
|
|
if {[have_spec hw]} { return false }
|
|
|
|
if {[have_spec linux]} { return false }
|
|
|
|
if {[have_spec fiasco]} { return false }
|
|
|
|
return true
|
|
|
|
}
|
|
|
|
|
|
|
|
append config {
|
2017-03-01 20:52:00 +00:00
|
|
|
<config prio_levels="2">
|
2013-12-02 09:24:35 +00:00
|
|
|
<parent-provides>
|
|
|
|
<service name="LOG"/>
|
2014-04-03 12:18:52 +00:00
|
|
|
<service name="CPU"/>
|
2017-01-18 16:10:07 +00:00
|
|
|
<service name="ROM"/>
|
|
|
|
<service name="PD"/>
|
2013-12-02 09:24:35 +00:00
|
|
|
</parent-provides>
|
|
|
|
<default-route>
|
|
|
|
<any-service> <parent/> </any-service>
|
|
|
|
</default-route>
|
2017-05-07 20:36:11 +00:00
|
|
|
<start name="test-thread" caps="2000">
|
2013-12-02 09:24:35 +00:00
|
|
|
<resource name="RAM" quantum="10M"/>
|
2017-03-01 20:52:00 +00:00
|
|
|
<resource name="CPU" quantum="100"/>
|
2017-06-16 14:27:56 +00:00
|
|
|
<config pause_resume="} [pause_resume_supported] {" prio="} [prio_supported] {"/>
|
2013-12-02 09:24:35 +00:00
|
|
|
</start>
|
|
|
|
</config>
|
|
|
|
}
|
|
|
|
|
2016-05-04 10:27:17 +00:00
|
|
|
install_config $config
|
|
|
|
|
2023-05-04 12:11:51 +00:00
|
|
|
build_boot_image [build_artifacts]
|
2013-12-02 09:24:35 +00:00
|
|
|
|
2017-05-23 13:05:55 +00:00
|
|
|
append qemu_args "-nographic "
|
2013-12-02 09:24:35 +00:00
|
|
|
|
2016-05-04 10:27:17 +00:00
|
|
|
run_genode_until {.*test completed successfully.*\n} 60
|
2014-09-05 15:00:31 +00:00
|
|
|
|