mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-19 13:47:56 +00:00
ad2d1fe586
For all tests * use Component::construct instead of main * use new connection constructors with env argument * use log instead of printf For some tests * replace signal receivers with signal handlers * replace global static variables with Main class members * remove unnecessary multithreading * model test steps as classes that are independent from each other and managed by Main as constructibles * use references instead of pointers and exceptions instead of error codes * use Attached_* helpers intead of doing attach/detach manually * use helpers like String, Id_space, Registry instead of arrays and lists * make the run script suitable for automated execution and conclusion Ref #1987
35 lines
799 B
Plaintext
35 lines
799 B
Plaintext
build "core init server/rom_blk test/rom_blk"
|
|
|
|
create_boot_directory
|
|
|
|
install_config {
|
|
<config>
|
|
<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> <any-child/> <parent/></any-service>
|
|
</default-route>
|
|
<start name="rom_blk">
|
|
<resource name="RAM" quantum="3M"/>
|
|
<provides><service name="Block"/></provides>
|
|
<config file="init" block_size="512"/>
|
|
</start>
|
|
<start name="test-rom_blk">
|
|
<resource name="RAM" quantum="3M"/>
|
|
<config file="init"/>
|
|
</start>
|
|
</config>
|
|
}
|
|
|
|
build_boot_image "core ld.lib.so init rom_blk test-rom_blk"
|
|
|
|
append qemu_args "-m 64 -nographic "
|
|
|
|
run_genode_until {.*--- ROM Block test finished ---.*\n} 10
|