genode/repos/os/run/timer.run
Norman Feske 3bceefc9cf Omit superfluous use of "CAP"/"SIGNAL" services
The functionality of the former "CAP" and "SIGNAL" services is now
provided by core's "PD" service.
2016-05-09 13:24:51 +02:00

49 lines
1.1 KiB
Plaintext

#
# \brief Basic test for genode timer-session
# \author Martin Stein
# \date 2012-05-29
#
# Build program images
build { core init drivers/timer test/timer }
# Create directory where boot files are written to
create_boot_directory
# Define XML configuration for init
install_config {
<config>
<parent-provides>
<service name="ROM"/>
<service name="RAM"/>
<service name="IRQ"/>
<service name="IO_MEM"/>
<service name="IO_PORT"/>
<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>
<start name="timer">
<resource name="RAM" quantum="10M"/>
<provides><service name="Timer"/></provides>
</start>
<start name="client">
<binary name="test-timer"/>
<resource name="RAM" quantum="10M"/>
</start>
</config>
}
# Build boot files from source binaries
build_boot_image { core init timer test-timer }
# Configure Qemu
append qemu_args " -m 64 -nographic"
# Execute test in Qemu
run_genode_until "--- timer test finished ---" 60