mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-22 06:57:51 +00:00
ca971bbfd8
This patch changes the top-level directory layout as a preparatory step for improving the tools for managing 3rd-party source codes. The rationale is described in the issue referenced below. Issue #1082
76 lines
1.3 KiB
Tcl
76 lines
1.3 KiB
Tcl
#
|
|
# \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
|
|
#
|
|
|
|
install_config {
|
|
<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">
|
|
<resource name="RAM" quantum="4M"/>
|
|
<provides> <service name="File_system"/> </provides>
|
|
<config> <policy label="" root="/" writeable="yes" /> </config>
|
|
</start>
|
|
<start name="test-libc_vfs">
|
|
<resource name="RAM" quantum="2M"/>
|
|
<config>
|
|
<iterations value="1"/>
|
|
<libc stdout="/dev/log" cwd="/tmp" >
|
|
<vfs>
|
|
<dir name="tmp" >
|
|
<fs/>
|
|
</dir>
|
|
<dir name="dev"> <log/> </dir>
|
|
</vfs>
|
|
</libc>
|
|
</config>
|
|
</start>
|
|
</config>
|
|
}
|
|
|
|
#
|
|
# Boot modules
|
|
#
|
|
|
|
build_boot_image {
|
|
core init
|
|
ld.lib.so libc.lib.so
|
|
ram_fs test-libc_vfs
|
|
}
|
|
|
|
#
|
|
# Execute test case
|
|
#
|
|
|
|
append qemu_args " -m 128 -nographic "
|
|
run_genode_until {.*child exited with exit value 0.*} 60
|
|
|
|
puts "\nTest succeeded\n"
|
|
|
|
# vi: set ft=tcl :
|