parent
8876dd057d
commit
c7f1b85652
@ -1,9 +1,15 @@
|
||||
File terminal is a service that provides Genode's Terminal_session interface
|
||||
for a given file via a File_system_session.
|
||||
File terminal is a service that provides a terminal-session interface and
|
||||
redirects the terminal input and output to a file.
|
||||
|
||||
! <config>
|
||||
! <policy label="client1" filename="test.txt" />
|
||||
! <policy label="client2" filename="file.dat" io_buffer_size="4K"/>h
|
||||
! <libc stdout="/dev/log">
|
||||
! <vfs>
|
||||
! <dir name="dev"> <log/> </dir>
|
||||
! <fs/>
|
||||
! </vfs>
|
||||
! </libc>
|
||||
! </config>
|
||||
|
||||
To keep things simple a client can only open one file at the moment.
|
||||
To keep things simple, a client can only open one file at the moment.
|
||||
|
@ -1,3 +1,3 @@
|
||||
TARGET = file_terminal
|
||||
SRC_CC = main.cc
|
||||
LIBS = libc libc_fs libc_log
|
||||
LIBS = libc libc_vfs
|
||||
|
@ -1,3 +1,3 @@
|
||||
TARGET = tcp_terminal
|
||||
SRC_CC = main.cc
|
||||
LIBS = libc libc_lwip_nic_dhcp libc_log libc_lock_pipe
|
||||
LIBS = libc libc_lwip_nic_dhcp libc_vfs libc_lock_pipe
|
||||
|
@ -1,7 +0,0 @@
|
||||
LIBS = libc
|
||||
|
||||
SRC_CC = plugin.cc
|
||||
|
||||
vpath %.cc $(REP_DIR)/src/lib/libc_block
|
||||
|
||||
SHARED_LIB = yes
|
@ -1,7 +0,0 @@
|
||||
SRC_CC = plugin.cc
|
||||
LIBS += libc
|
||||
INC_DIR += $(REP_DIR)/src/lib/libc
|
||||
|
||||
vpath plugin.cc $(REP_DIR)/src/lib/libc_fs
|
||||
|
||||
SHARED_LIB = yes
|
@ -1,6 +0,0 @@
|
||||
SRC_CC = plugin.cc
|
||||
LIBS += libc
|
||||
|
||||
vpath plugin.cc $(REP_DIR)/src/lib/libc_log
|
||||
|
||||
SHARED_LIB = yes
|
@ -1,6 +0,0 @@
|
||||
SRC_CC = plugin.cc
|
||||
LIBS += libc
|
||||
|
||||
vpath plugin.cc $(REP_DIR)/src/lib/libc_rom
|
||||
|
||||
SHARED_LIB = yes
|
@ -1,67 +0,0 @@
|
||||
#
|
||||
# \brief Test for using the libc_fs plugin with the RAM file system
|
||||
# \author Norman Feske
|
||||
# \date 2012-04-11
|
||||
#
|
||||
|
||||
#
|
||||
# Build
|
||||
#
|
||||
|
||||
build { core init server/ram_fs test/libc_fs }
|
||||
|
||||
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_fs">
|
||||
<resource name="RAM" quantum="2M"/>
|
||||
<config>
|
||||
<iterations value="1"/>
|
||||
</config>
|
||||
</start>
|
||||
</config>
|
||||
}
|
||||
|
||||
#
|
||||
# Boot modules
|
||||
#
|
||||
|
||||
build_boot_image {
|
||||
core init
|
||||
ld.lib.so libc.lib.so libc_log.lib.so libc_fs.lib.so
|
||||
ram_fs test-libc_fs
|
||||
}
|
||||
|
||||
#
|
||||
# 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 :
|
@ -1,5 +1,6 @@
|
||||
set mkfs_cmd mkfs.exfat
|
||||
set mkfs_opts ""
|
||||
set filesystem fuse_exfat
|
||||
set mkfs_cmd mkfs.exfat
|
||||
set mkfs_opts ""
|
||||
set filesystem fuse_exfat
|
||||
set libc_dev_blkdev {<block name="blkdev"/>}
|
||||
|
||||
source ${genode_dir}/libports/run/libc_filesystem_test.inc
|
||||
|
@ -1,5 +1,6 @@
|
||||
set mkfs_cmd mkfs.ext2
|
||||
set mkfs_opts "-F"
|
||||
set filesystem fuse_ext2
|
||||
set mkfs_cmd mkfs.ext2
|
||||
set mkfs_opts "-F"
|
||||
set filesystem fuse_ext2
|
||||
set libc_dev_blkdev {<block name="blkdev"/>}
|
||||
|
||||
source ${genode_dir}/libports/run/libc_filesystem_test.inc
|
||||
|