2014-04-11 19:14:10 +00:00
|
|
|
#
|
|
|
|
# \brief Test for using the libc_vfs plugin
|
|
|
|
# \author Norman Feske
|
|
|
|
# \date 2014-04-10
|
|
|
|
#
|
|
|
|
|
|
|
|
#
|
|
|
|
# Build
|
|
|
|
#
|
|
|
|
|
|
|
|
build { core init server/ram_fs test/libc_vfs }
|
|
|
|
|
|
|
|
create_boot_directory
|
|
|
|
|
|
|
|
#
|
|
|
|
# Generate config
|
|
|
|
#
|
|
|
|
|
2015-11-12 10:54:12 +00:00
|
|
|
set config {
|
2014-04-11 19:14:10 +00:00
|
|
|
<config>
|
|
|
|
<parent-provides>
|
|
|
|
<service name="ROM"/>
|
|
|
|
<service name="RAM"/>
|
|
|
|
<service name="CAP"/>
|
|
|
|
<service name="PD"/>
|
|
|
|
<service name="RM"/>
|
|
|
|
<service name="CPU"/>
|
|
|
|
<service name="LOG"/>
|
|
|
|
<service name="SIGNAL"/>
|
|
|
|
</parent-provides>
|
|
|
|
<default-route>
|
|
|
|
<any-service> <parent/> <any-child/> </any-service>
|
|
|
|
</default-route>
|
|
|
|
<start name="ram_fs">
|
2015-11-17 15:07:57 +00:00
|
|
|
<resource name="RAM" quantum="12M"/>
|
2014-04-11 19:14:10 +00:00
|
|
|
<provides> <service name="File_system"/> </provides>
|
2015-11-18 11:17:32 +00:00
|
|
|
<config> <policy root="/" writeable="yes" /> </config>
|
2014-04-11 19:14:10 +00:00
|
|
|
</start>
|
|
|
|
<start name="test-libc_vfs">
|
|
|
|
<resource name="RAM" quantum="2M"/>
|
|
|
|
<config>
|
2015-11-12 10:54:12 +00:00
|
|
|
<iterations value="1"/>}
|
|
|
|
append_if [have_include "power_on/qemu"] config {
|
|
|
|
<write-read size="1M" buffer_size="8K"/>}
|
|
|
|
append config {
|
2014-04-14 09:57:22 +00:00
|
|
|
<libc stdout="/dev/log" cwd="/tmp" >
|
2014-04-11 19:14:10 +00:00
|
|
|
<vfs>
|
|
|
|
<dir name="tmp" >
|
|
|
|
<fs/>
|
|
|
|
</dir>
|
2014-04-14 09:57:22 +00:00
|
|
|
<dir name="dev"> <log/> </dir>
|
2014-04-11 19:14:10 +00:00
|
|
|
</vfs>
|
|
|
|
</libc>
|
|
|
|
</config>
|
|
|
|
</start>
|
|
|
|
</config>
|
|
|
|
}
|
|
|
|
|
2015-11-12 10:54:12 +00:00
|
|
|
install_config $config
|
|
|
|
|
2014-04-11 19:14:10 +00:00
|
|
|
#
|
|
|
|
# Boot modules
|
|
|
|
#
|
|
|
|
|
|
|
|
build_boot_image {
|
|
|
|
core init
|
2014-04-14 09:57:22 +00:00
|
|
|
ld.lib.so libc.lib.so
|
2014-04-11 19:14:10 +00:00
|
|
|
ram_fs test-libc_vfs
|
|
|
|
}
|
|
|
|
|
|
|
|
#
|
|
|
|
# Execute test case
|
|
|
|
#
|
|
|
|
|
|
|
|
append qemu_args " -m 128 -nographic "
|
2014-08-22 12:43:54 +00:00
|
|
|
run_genode_until {.*child "test-libc_vfs" exited with exit value 0.*} 60
|
2014-04-11 19:14:10 +00:00
|
|
|
|
|
|
|
# vi: set ft=tcl :
|