Add fork test to depot autopilot

This commit is contained in:
Norman Feske 2020-03-05 17:02:09 +01:00
parent 4ebc164c11
commit e67f389da1
9 changed files with 34 additions and 13 deletions

View File

@ -676,6 +676,7 @@ set default_test_pkgs {
test-libc_connect_vfs_server_lxip
test-libc_counter
test-libc_execve
test-libc_fork
test-libc_getenv
test-libc_pipe
test-libc_vfs

View File

@ -0,0 +1 @@
Test for the fork mechanism provided by the libc.

View File

@ -0,0 +1,4 @@
_/src/test-libc_fork
_/src/libc
_/src/vfs
_/src/posix

View File

@ -0,0 +1 @@
2020-03-05 b27355bcca5734849df65900d0c9787f26d128de

View File

@ -1,8 +1,22 @@
build { core init test/fork }
<runtime ram="32M" caps="1000" binary="init">
create_boot_directory
<requires> <timer/> </requires>
<events>
<timeout meaning="failed" sec="30" />
<log meaning="succeeded">--- parent done ---*child*exited*</log>
</events>
<content>
<rom label="ld.lib.so"/>
<rom label="libc.lib.so"/>
<rom label="libm.lib.so"/>
<rom label="posix.lib.so"/>
<rom label="vfs.lib.so"/>
<rom label="vfs"/>
<rom label="test-fork"/>
</content>
install_config {
<config verbose="yes">
<parent-provides>
<service name="ROM"/>
@ -10,7 +24,7 @@ install_config {
<service name="CPU"/>
<service name="PD"/>
</parent-provides>
<start name="test-fork" caps="300">
<start name="test-fork" caps="500">
<resource name="RAM" quantum="1G"/>
<config>
<arg value="name_of_executeable"/>
@ -25,13 +39,5 @@ install_config {
<route> <any-service> <parent/> </any-service> </route>
</start>
</config>
}
build_boot_image {
core init ld.lib.so libc.lib.so vfs.lib.so libm.lib.so posix.lib.so test-fork
}
append qemu_args " -nographic "
run_genode_until "--- parent done ---.*\n" 20
run_genode_until "child.*exited.*\n" 5 [output_spawn_id]
</runtime>

View File

@ -0,0 +1,3 @@
SRC_DIR = src/test/fork
include $(GENODE_DIR)/repos/base/recipes/src/content.inc

View File

@ -0,0 +1 @@
2020-03-05 22e92d890bfb543101288b1da11c2ba76beb01ed

View File

@ -0,0 +1,3 @@
base
posix
libc

View File

@ -3,3 +3,4 @@ SRC_CC = test.cc
LIBS = posix
CC_CXX_WARN_STRICT =
CC_CXX_OPT += -fno-exceptions