mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-24 07:46:42 +00:00
01bb7536dd
The run script 'run/util_mmio.run' runs a test over basic functionalities of 'Mmio::Register' and 'Mmio::Register::Subreg'. The test covers the functions 'read' and 'bits', 'set', 'clear' and 'get'. Inline function in 'Mmio::Register::Subreg' whose definition otherwise looks ugly.
36 lines
709 B
Plaintext
36 lines
709 B
Plaintext
build "core init test/util_mmio"
|
|
|
|
create_boot_directory
|
|
|
|
install_config {
|
|
<config>
|
|
<parent-provides>
|
|
<service name="ROM"/>
|
|
<service name="RAM"/>
|
|
<service name="CPU"/>
|
|
<service name="RM"/>
|
|
<service name="CAP"/>
|
|
<service name="PD"/>
|
|
<service name="LOG"/>
|
|
</parent-provides>
|
|
<default-route>
|
|
<any-service> <parent/> </any-service>
|
|
</default-route>
|
|
<start name="test-util_mmio">
|
|
<resource name="RAM" quantum="10M"/>
|
|
</start>
|
|
</config>
|
|
}
|
|
|
|
build_boot_image "core init test-util_mmio"
|
|
|
|
append qemu_args "-nographic -m 64"
|
|
|
|
run_genode_until {.*Test ended.*} 10
|
|
|
|
grep_output {\[init -\> test-util_mmio\]}
|
|
|
|
compare_output_to {
|
|
[init -> test-util_mmio] Test ended successfully
|
|
}
|