mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-29 18:18:54 +00:00
ccffbb0dfc
Fixes #2184
74 lines
1.7 KiB
Plaintext
74 lines
1.7 KiB
Plaintext
#
|
|
# \brief Test genode basics by starting init instances in a nested manner
|
|
# \author Martin Stein
|
|
# \date 2012-05-30
|
|
#
|
|
|
|
# build program images
|
|
build "core init"
|
|
|
|
# create directory where the boot files are written to
|
|
create_boot_directory
|
|
|
|
# create XML configuration for init
|
|
install_config {
|
|
<config verbose="yes">
|
|
<parent-provides>
|
|
<service name="ROM"/>
|
|
<service name="RAM"/>
|
|
<service name="PD"/>
|
|
<service name="RM"/>
|
|
<service name="CPU"/>
|
|
<service name="LOG"/>
|
|
</parent-provides>
|
|
<default-route><any-service><parent/></any-service></default-route>
|
|
|
|
<start name="init">
|
|
<resource name="RAM" quantum="10M"/>
|
|
<config verbose="yes">
|
|
<parent-provides>
|
|
<service name="ROM"/>
|
|
<service name="RAM"/>
|
|
<service name="PD"/>
|
|
<service name="RM"/>
|
|
<service name="CPU"/>
|
|
<service name="LOG"/>
|
|
</parent-provides>
|
|
<default-route><any-service><parent/></any-service></default-route>
|
|
|
|
<start name="init">
|
|
<resource name="RAM" quantum="5M"/>
|
|
<config verbose="yes">
|
|
<parent-provides>
|
|
<service name="ROM"/>
|
|
<service name="RAM"/>
|
|
<service name="PD"/>
|
|
<service name="RM"/>
|
|
<service name="CPU"/>
|
|
<service name="LOG"/>
|
|
</parent-provides>
|
|
<default-route>
|
|
<any-service><parent/></any-service>
|
|
</default-route>
|
|
</config>
|
|
</start>
|
|
|
|
</config>
|
|
</start>
|
|
|
|
</config>
|
|
}
|
|
|
|
# create single boot image from the compiled program images
|
|
build_boot_image "core ld.lib.so init"
|
|
|
|
# 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
|
|
if {[have_spec hw_pbxa9]} {
|
|
run_genode_until "No children to start.*\n" 10
|
|
puts "Test succeeded"
|
|
}
|
|
|