build { core init lib/ld test/region_map_mmap timer test/signal }

create_boot_directory

install_config {
	<config verbose="yes">
		<parent-provides>
			<service name="ROM"/>
			<service name="PD"/>
			<service name="RM"/>
			<service name="CPU"/>
			<service name="LOG"/>
		</parent-provides>
		<default-route>
			<any-service> <parent/> <any-child/> </any-service>
		</default-route>
		<default caps="100"/>
		<start name="test-region_map_mmap">
			<resource name="RAM" quantum="2M"/>
		</start>

		<!-- add signal test for concurrency -->
		<start name="timer">
			<resource name="RAM" quantum="1M"/>
			<provides><service name="Timer"/></provides>
		</start>
		<start name="test-signal" caps="400">
			<resource name="RAM" quantum="1M"/>
		</start>
	</config>}

build_boot_image [build_artifacts]

run_genode_until {--- Signalling test finished ---.*\n} 30

grep_output {\[init -\> test-region_map_mmap\] Done.}

compare_output_to {
[init -> test-region_map_mmap] Done.
}
