mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-22 06:57:51 +00:00
615dd377dd
* Get rid of preprocessor macros. * Introduce Main as class. * Exit with -1 instead of endless loops on errors. * Don't try to deal with error conditions, just print a message and exit with -1. * Only one operation per line. Ref #4151 Ref #4710
43 lines
1.2 KiB
Plaintext
43 lines
1.2 KiB
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"/>
|
|
<service name="PD"/>
|
|
<service name="CPU"/>
|
|
<service name="ROM"/>
|
|
</parent-provides>
|
|
<default-route>
|
|
<any-service> <parent/> </any-service>
|
|
</default-route>
|
|
<start name="test-cpu_scheduler" caps="100">
|
|
<resource name="RAM" quantum="10M"/>
|
|
</start>
|
|
</config>}
|
|
|
|
# create single boot image from the compiled program images
|
|
build_boot_image "core ld.lib.so init test-cpu_scheduler"
|
|
|
|
# configure qemu to use 64 MB RAM and avoid GUI mode
|
|
append qemu_args " -nographic"
|
|
|
|
# execute the test in qemu if the targeted platform is supported
|
|
run_genode_until "child .test-cpu_scheduler. exited with exit value .*\n" 10
|
|
|
|
# check the output
|
|
grep_output {child .test-cpu_scheduler. exited with exit value}
|
|
compare_output_to { [init] child "test-cpu_scheduler" exited with exit value 0 }
|