Add fork test to depot autopilot
This commit is contained in:
parent
4ebc164c11
commit
e67f389da1
|
@ -676,6 +676,7 @@ set default_test_pkgs {
|
||||||
test-libc_connect_vfs_server_lxip
|
test-libc_connect_vfs_server_lxip
|
||||||
test-libc_counter
|
test-libc_counter
|
||||||
test-libc_execve
|
test-libc_execve
|
||||||
|
test-libc_fork
|
||||||
test-libc_getenv
|
test-libc_getenv
|
||||||
test-libc_pipe
|
test-libc_pipe
|
||||||
test-libc_vfs
|
test-libc_vfs
|
||||||
|
|
1
repos/libports/recipes/pkg/test-libc_fork/README
Normal file
1
repos/libports/recipes/pkg/test-libc_fork/README
Normal file
|
@ -0,0 +1 @@
|
||||||
|
Test for the fork mechanism provided by the libc.
|
4
repos/libports/recipes/pkg/test-libc_fork/archives
Normal file
4
repos/libports/recipes/pkg/test-libc_fork/archives
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
_/src/test-libc_fork
|
||||||
|
_/src/libc
|
||||||
|
_/src/vfs
|
||||||
|
_/src/posix
|
1
repos/libports/recipes/pkg/test-libc_fork/hash
Normal file
1
repos/libports/recipes/pkg/test-libc_fork/hash
Normal file
|
@ -0,0 +1 @@
|
||||||
|
2020-03-05 b27355bcca5734849df65900d0c9787f26d128de
|
|
@ -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">
|
<config verbose="yes">
|
||||||
<parent-provides>
|
<parent-provides>
|
||||||
<service name="ROM"/>
|
<service name="ROM"/>
|
||||||
|
@ -10,7 +24,7 @@ install_config {
|
||||||
<service name="CPU"/>
|
<service name="CPU"/>
|
||||||
<service name="PD"/>
|
<service name="PD"/>
|
||||||
</parent-provides>
|
</parent-provides>
|
||||||
<start name="test-fork" caps="300">
|
<start name="test-fork" caps="500">
|
||||||
<resource name="RAM" quantum="1G"/>
|
<resource name="RAM" quantum="1G"/>
|
||||||
<config>
|
<config>
|
||||||
<arg value="name_of_executeable"/>
|
<arg value="name_of_executeable"/>
|
||||||
|
@ -25,13 +39,5 @@ install_config {
|
||||||
<route> <any-service> <parent/> </any-service> </route>
|
<route> <any-service> <parent/> </any-service> </route>
|
||||||
</start>
|
</start>
|
||||||
</config>
|
</config>
|
||||||
}
|
|
||||||
|
|
||||||
build_boot_image {
|
</runtime>
|
||||||
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]
|
|
3
repos/libports/recipes/src/test-libc_fork/content.mk
Normal file
3
repos/libports/recipes/src/test-libc_fork/content.mk
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
SRC_DIR = src/test/fork
|
||||||
|
|
||||||
|
include $(GENODE_DIR)/repos/base/recipes/src/content.inc
|
1
repos/libports/recipes/src/test-libc_fork/hash
Normal file
1
repos/libports/recipes/src/test-libc_fork/hash
Normal file
|
@ -0,0 +1 @@
|
||||||
|
2020-03-05 22e92d890bfb543101288b1da11c2ba76beb01ed
|
3
repos/libports/recipes/src/test-libc_fork/used_apis
Normal file
3
repos/libports/recipes/src/test-libc_fork/used_apis
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
base
|
||||||
|
posix
|
||||||
|
libc
|
|
@ -3,3 +3,4 @@ SRC_CC = test.cc
|
||||||
LIBS = posix
|
LIBS = posix
|
||||||
|
|
||||||
CC_CXX_WARN_STRICT =
|
CC_CXX_WARN_STRICT =
|
||||||
|
CC_CXX_OPT += -fno-exceptions
|
||||||
|
|
Loading…
Reference in New Issue
Block a user