Add fork test to depot autopilot
This commit is contained in:
parent
03f5126c4d
commit
2275f0b399
|
@ -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
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
Test for the fork mechanism provided by the libc.
|
|
@ -0,0 +1,4 @@
|
|||
_/src/test-libc_fork
|
||||
_/src/libc
|
||||
_/src/vfs
|
||||
_/src/posix
|
|
@ -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">
|
||||
<parent-provides>
|
||||
<service name="ROM"/>
|
||||
|
@ -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>
|
|
@ -0,0 +1,3 @@
|
|||
SRC_DIR = src/test/fork
|
||||
|
||||
include $(GENODE_DIR)/repos/base/recipes/src/content.inc
|
|
@ -0,0 +1 @@
|
|||
2020-03-05 22e92d890bfb543101288b1da11c2ba76beb01ed
|
|
@ -0,0 +1,3 @@
|
|||
base
|
||||
posix
|
||||
libc
|
Loading…
Reference in New Issue