mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-20 06:07:59 +00:00
4bd5634bd5
* Remove 'test' routine from kernel/core * Move 'cpu_scheduler' and 'double_list' test to user-land * Remove 'hw_info' target at all (can be recycled in a topic branch)
40 lines
1013 B
Plaintext
40 lines
1013 B
Plaintext
#
|
|
# \brief Test CPU-scheduler implementation of core
|
|
# \author Martin Stein
|
|
# \date 2014-09-30
|
|
#
|
|
|
|
# build program images
|
|
build "core init test/cpu_scheduler"
|
|
|
|
# create directory where the boot files are written to
|
|
create_boot_directory
|
|
|
|
# the init config is not used but the build system needs it
|
|
install_config {
|
|
<config>
|
|
<parent-provides>
|
|
<service name="LOG"/>
|
|
<service name="RM"/>
|
|
</parent-provides>
|
|
<default-route>
|
|
<any-service> <parent/> </any-service>
|
|
</default-route>
|
|
<start name="test-cpu_scheduler">
|
|
<resource name="RAM" quantum="10M"/>
|
|
</start>
|
|
</config>}
|
|
|
|
# create single boot image from the compiled program images
|
|
build_boot_image "core init test-cpu_scheduler"
|
|
|
|
# configure qemu to use 64 MB RAM and avoid GUI mode
|
|
append qemu_args " -m 64 -nographic"
|
|
|
|
# execute the test in qemu if the targeted platform is supported
|
|
run_genode_until "done.*\n" 10
|
|
|
|
# check the output
|
|
grep_output {\[init -> test-cpu_scheduler\]}
|
|
compare_output_to { [init -> test-cpu_scheduler] done }
|