genode/repos/gems/run/vfs_import.run
Emery Hemingway bebbc87c3a Replace static "genodelabs" depot user with "[depot_user]" call
Use "depot_user" TCL procedure may be used in run scripts for tests not
related to downloading specific packages.

Fix #3170
2019-02-26 14:44:31 +01:00

91 lines
2.2 KiB
Plaintext

build { app/sequence server/vfs lib/vfs/import test/libc }
create_boot_directory
import_from_depot \
[depot_user]/src/[base_src] \
[depot_user]/src/coreutils \
[depot_user]/src/init \
[depot_user]/src/libc \
[depot_user]/src/noux \
[depot_user]/src/posix \
install_config {
<config verbose="yes">
<parent-provides>
<service name="ROM"/>
<service name="LOG"/>
<service name="RM"/>
<service name="CPU"/>
<service name="PD"/>
<service name="IRQ"/>
<service name="IO_MEM"/>
<service name="IO_PORT"/>
</parent-provides>
<default-route>
<any-service> <any-child/> <parent/> </any-service>
</default-route>
<default caps="100"/>
<start name="timer">
<resource name="RAM" quantum="1M"/>
<provides><service name="Timer"/></provides>
</start>
<start name="vfs">
<resource name="RAM" quantum="4M"/>
<provides><service name="File_system"/></provides>
<config>
<vfs> <ram/> </vfs>
<default-policy root="/" writeable="yes"/>
</config>
</start>
<start name="test" caps="500">
<binary name="sequence"/>
<resource name="RAM" quantum="1G"/>
<config>
<start name="true" caps="500">
<binary name="noux"/>
<config stdin="/dev/null" stdout="/dev/log" stderr="/dev/log">
<fstab>
<dir name="fs"> <fs/> </dir>
<dir name="dev"> <log/> <null/> </dir>
<ram/>
<import overwrite="yes">
<tar name="coreutils.tar" />
<dir name="fs">
<symlink name="link" target="test"/>
<inline name="test">Hello world!</inline>
</dir>
</import>
</fstab>
<start name="/bin/true"> </start>
</config>
</start>
<start name="cat" caps="500">
<binary name="noux"/>
<config stdin="/dev/null" stdout="/dev/log" stderr="/dev/log">
<fstab>
<dir name="fs"> <fs writeable="no"/> </dir>
<dir name="dev"> <log/> <null/> </dir>
<ram/>
<import>
<tar name="coreutils.tar" />
</import>
</fstab>
<start name="/bin/cat"> <arg value="/fs/link"/> </start>
</config>
</start>
</config>
</start>
</config>
}
build_boot_image { vfs_import.lib.so libc.lib.so vfs vfs.lib.so sequence }
append qemu_args " -nographic -serial mon:stdio "
run_genode_until {Hello world!} 30