2013-09-06 14:30:46 +00:00
|
|
|
#
|
|
|
|
# \brief Test for Linux-specific region map
|
|
|
|
# \author Christian Helmuth
|
|
|
|
# \date 2013-09-06
|
|
|
|
#
|
|
|
|
|
|
|
|
assert_spec linux
|
|
|
|
|
|
|
|
#
|
|
|
|
# Build
|
|
|
|
#
|
|
|
|
|
|
|
|
set build_components { core init }
|
|
|
|
|
|
|
|
lappend_if [expr {$test_type eq "static"}] build_components test/lx_rmap/static
|
|
|
|
lappend_if [expr {$test_type eq "dynamic"}] build_components test/lx_rmap/dynamic
|
|
|
|
|
|
|
|
build $build_components
|
|
|
|
|
|
|
|
create_boot_directory
|
|
|
|
|
|
|
|
#
|
|
|
|
# Config
|
|
|
|
#
|
|
|
|
|
|
|
|
set config {
|
|
|
|
<config>
|
|
|
|
<parent-provides>
|
|
|
|
<service name="ROM"/>
|
|
|
|
<service name="RM"/>
|
|
|
|
<service name="LOG"/>
|
|
|
|
<service name="IO_PORT"/>
|
|
|
|
<service name="IO_MEM"/>
|
|
|
|
<service name="IRQ"/>
|
|
|
|
<service name="CPU"/>
|
|
|
|
</parent-provides>
|
|
|
|
<default-route>
|
|
|
|
<any-service> <parent/> <any-child/> </any-service>
|
|
|
|
</default-route>}
|
|
|
|
|
|
|
|
append_if [expr {$test_type eq "static"}] config {
|
|
|
|
<start name="test-lx_rmap_static">}
|
|
|
|
append_if [expr {$test_type eq "dynamic"}] config {
|
|
|
|
<start name="test-lx_rmap_dynamic">}
|
|
|
|
append config {
|
|
|
|
<resource name="RAM" quantum="8M"/>
|
|
|
|
</start>
|
|
|
|
</config>}
|
|
|
|
|
|
|
|
install_config $config
|
|
|
|
|
|
|
|
#
|
|
|
|
# Boot modules
|
|
|
|
#
|
|
|
|
|
2016-12-01 18:00:11 +00:00
|
|
|
set boot_modules { core ld.lib.so init }
|
2013-09-06 14:30:46 +00:00
|
|
|
|
|
|
|
lappend_if [expr {$test_type eq "static"}] boot_modules test-lx_rmap_static
|
|
|
|
lappend_if [expr {$test_type eq "dynamic"}] boot_modules test-lx_rmap_dynamic
|
|
|
|
lappend_if [expr {$test_type eq "dynamic"}] boot_modules ld.lib.so
|
|
|
|
|
|
|
|
build_boot_image $boot_modules
|
|
|
|
|
|
|
|
#
|
|
|
|
# Execute test
|
|
|
|
#
|
|
|
|
|
2014-08-22 12:43:54 +00:00
|
|
|
if {$test_type eq "static"} {
|
|
|
|
run_genode_until {child "test-lx_rmap_static" exited with exit value 0.*\n} 10
|
|
|
|
} else {
|
|
|
|
run_genode_until {child "test-lx_rmap_dynamic" exited with exit value 0.*\n} 10
|
|
|
|
}
|
2014-04-15 07:31:50 +00:00
|
|
|
puts "Test succeeded"
|
2013-09-06 14:30:46 +00:00
|
|
|
|
|
|
|
# vi: set ft=tcl :
|