mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-20 14:13:09 +00:00
ab5187d673
This patch complements the commit "libc: execve" with the ability to execute files stored at arbitrary sub directories of the file system. Issue #3481 Issue #3500
37 lines
900 B
Plaintext
37 lines
900 B
Plaintext
build { core init test/execve }
|
|
|
|
create_boot_directory
|
|
|
|
install_config {
|
|
<config verbose="yes">
|
|
<parent-provides>
|
|
<service name="ROM"/>
|
|
<service name="LOG"/>
|
|
<service name="CPU"/>
|
|
<service name="PD"/>
|
|
</parent-provides>
|
|
<start name="test-execve" caps="300">
|
|
<resource name="RAM" quantum="1G"/>
|
|
<config ld_verbose="yes">
|
|
<arg value="name_of_executeable"/>
|
|
<arg value="100"/>
|
|
<libc stdin="/null" stdout="/log" stderr="/log"/>
|
|
<vfs> <rom name="test-execve"/> <null/> <log/> </vfs>
|
|
</config>
|
|
<route>
|
|
<service name="ROM" label="/test-execve">
|
|
<parent label="test-execve"/> </service>
|
|
<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-execve
|
|
}
|
|
|
|
append qemu_args " -nographic "
|
|
|
|
run_genode_until "child.*exited.*value 0.*\n" 15
|