mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-20 14:13:09 +00:00
8bd0efced6
Adapted launchpad and also the rm_fault and resource_request tests. Issue #2407
54 lines
1.2 KiB
Plaintext
54 lines
1.2 KiB
Plaintext
build "core init drivers/timer test/libc_getenv"
|
|
|
|
create_boot_directory
|
|
|
|
install_config {
|
|
<config>
|
|
<parent-provides>
|
|
<service name="CPU"/>
|
|
<service name="LOG"/>
|
|
<service name="PD"/>
|
|
<service name="RM"/>
|
|
<service name="ROM"/>
|
|
</parent-provides>
|
|
<default-route>
|
|
<any-service> <parent/> <any-child/> </any-service>
|
|
</default-route>
|
|
<default caps="100"/>
|
|
<start name="timer">
|
|
<resource name="RAM" quantum="2M"/>
|
|
<provides> <service name="Timer"/> </provides>
|
|
</start>
|
|
<start name="test-libc_getenv">
|
|
<resource name="RAM" quantum="4M"/>
|
|
<config>
|
|
<vfs> <dir name="dev"> <log/> </dir> </vfs>
|
|
<libc stdout="/dev/log"/>
|
|
<arg value="test-libc_getenv"/>
|
|
<arg value="foo"/>
|
|
<arg value="bar"/>
|
|
<arg value="baz"/>
|
|
<env key="foo" value="bar"/>
|
|
<env key="bar" value="foo"/>
|
|
</config>
|
|
</start>
|
|
</config>
|
|
}
|
|
|
|
build_boot_image {
|
|
core init timer test-libc_getenv
|
|
ld.lib.so libc.lib.so libm.lib.so posix.lib.so
|
|
}
|
|
|
|
append qemu_args " -nographic "
|
|
|
|
run_genode_until "child .* exited with exit value 0.*\n" 10
|
|
|
|
grep_output {\[init -\> test-libc_getenv\]}
|
|
|
|
compare_output_to {
|
|
[init -> test-libc_getenv] foo="bar"
|
|
[init -> test-libc_getenv] bar="foo"
|
|
[init -> test-libc_getenv] baz="(null)"
|
|
}
|