mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-23 07:22:25 +00:00
c47a6b0830
* Removes the <event> tag from all test package runtime files and replaces the contained <timeout> and <log> sub-tags with the new tags <succeed> and <fail>. If a <succeed> or <fail> tag has a content, it defines a log pattern that should be recognized and render the test failed or successful. If a <succeed> or <fail> tag has an attribute after_seconds that is not set to 0, it defines a timeout after which the test should be rendered failed or successful. * Adapts the Depot Autopilot to support the new syntax in the test-package runtime files. However, for now, the Depot Autopilot is kept compatible to the old syntax as well. If the <events> tag is present, it is prioritized over the new syntax. Fixes #4922
112 lines
3.4 KiB
Plaintext
112 lines
3.4 KiB
Plaintext
<runtime ram="100M" caps="1000" binary="init">
|
|
|
|
<requires> <timer/> </requires>
|
|
|
|
<fail after_seconds="20"/>
|
|
<succeed>
|
|
[init -> trace_logger] Report *
|
|
[init -> trace_logger] PD "init -> dynamic -> test-trace_logger -> cpu_burner.*"*
|
|
[init -> trace_logger] Thread "ep" at (0,0) TRACED total:* recent:*
|
|
[init -> trace_logger] PD "init -> dynamic -> test-trace_logger -> dynamic_rom"*
|
|
[init -> trace_logger] Thread "ep" at (0,0) TRACED total:* recent:*
|
|
[init -> trace_logger] PD "init -> dynamic -> test-trace_logger -> test-trace_logger"*
|
|
[init -> trace_logger] Thread "ep" at (0,0) TRACED total:* recent:*
|
|
[init -> trace_logger] 100 *
|
|
[init -> trace_logger] trigger_once
|
|
[init -> trace_logger] trigger_once
|
|
</succeed>
|
|
|
|
<content>
|
|
<rom label="ld.lib.so"/>
|
|
<rom label="dynamic_rom"/>
|
|
<rom label="cpu_burner"/>
|
|
<rom label="test-trace_logger"/>
|
|
<rom label="trace_logger"/>
|
|
<rom label="null"/>
|
|
<rom label="rpc_name"/>
|
|
<rom label="log_output"/>
|
|
</content>
|
|
|
|
<config>
|
|
<parent-provides>
|
|
<service name="ROM"/>
|
|
<service name="IRQ"/>
|
|
<service name="IO_MEM"/>
|
|
<service name="IO_PORT"/>
|
|
<service name="PD"/>
|
|
<service name="RM"/>
|
|
<service name="CPU"/>
|
|
<service name="LOG"/>
|
|
<service name="TRACE"/>
|
|
<service name="Timer"/>
|
|
</parent-provides>
|
|
<default-route>
|
|
<any-service> <parent/> <any-child/> </any-service>
|
|
</default-route>
|
|
<default caps="100"/>
|
|
|
|
<start name="trace_logger">
|
|
<resource name="RAM" quantum="80M"/>
|
|
<config verbose="yes" session_ram="10M" session_parent_levels="1" session_arg_buffer="64K" period_sec="3" default_policy="null" default_buffer="1K">
|
|
|
|
<policy label_prefix="init -> dynamic -> test-trace_logger -> cpu_burner" thread="ep"/>
|
|
|
|
<policy label="init -> dynamic -> test-trace_logger -> test-trace_logger" thread="ep" buffer="4K" policy="rpc_name"/>
|
|
|
|
<policy label="init -> dynamic -> test-trace_logger -> dynamic_rom" thread="ep" buffer="8K" policy="log_output"/>
|
|
</config>
|
|
</start>
|
|
|
|
<start name="dynamic_rom">
|
|
<resource name="RAM" quantum="4M"/>
|
|
<provides><service name="ROM"/></provides>
|
|
<config verbose="yes">
|
|
<rom name="cpu_burner1.config">
|
|
<inline description="initial state">
|
|
<config percent="5"/>
|
|
</inline>
|
|
<sleep milliseconds="5000"/>
|
|
<inline description="50%">
|
|
<config percent="50"/>
|
|
</inline>
|
|
<sleep milliseconds="5000"/>
|
|
</rom>
|
|
<rom name="cpu_burner2.config">
|
|
<inline description="initial state">
|
|
<config percent="5"/>
|
|
</inline>
|
|
<sleep milliseconds="4800"/>
|
|
<inline description="100%">
|
|
<config percent="70"/>
|
|
</inline>
|
|
<sleep milliseconds="2700"/>
|
|
</rom>
|
|
</config>
|
|
</start>
|
|
|
|
<start name="test-trace_logger">
|
|
<resource name="RAM" quantum="1M"/>
|
|
</start>
|
|
|
|
<start name="cpu_burner.1">
|
|
<binary name="cpu_burner"/>
|
|
<resource name="RAM" quantum="1280K"/>
|
|
<route>
|
|
<service name="ROM" label="config">
|
|
<child name="dynamic_rom" label="cpu_burner1.config"/> </service>
|
|
<any-service> <parent/> <any-child/> </any-service>
|
|
</route>
|
|
</start>
|
|
|
|
<start name="cpu_burner.2">
|
|
<binary name="cpu_burner"/>
|
|
<resource name="RAM" quantum="1280K"/>
|
|
<route>
|
|
<service name="ROM" label="config">
|
|
<child name="dynamic_rom" label="cpu_burner2.config"/> </service>
|
|
<any-service> <parent/> <any-child/> </any-service>
|
|
</route>
|
|
</start>
|
|
</config>
|
|
</runtime>
|