2016-03-18 22:36:32 +00:00
|
|
|
assert_spec linux
|
|
|
|
|
2023-05-04 14:18:04 +00:00
|
|
|
build { core init timer lib/ld server/dynamic_rom app/rom_to_file server/lx_fs }
|
2016-03-18 22:36:32 +00:00
|
|
|
|
|
|
|
create_boot_directory
|
|
|
|
|
|
|
|
install_config {
|
|
|
|
<config>
|
|
|
|
<parent-provides>
|
|
|
|
<service name="LOG"/>
|
|
|
|
<service name="RM"/>
|
|
|
|
<service name="ROM" />
|
|
|
|
<service name="CPU" />
|
|
|
|
<service name="PD" />
|
|
|
|
</parent-provides>
|
|
|
|
<default-route>
|
2017-02-23 12:24:21 +00:00
|
|
|
<any-service> <parent/> <any-child/> </any-service>
|
2016-03-18 22:36:32 +00:00
|
|
|
</default-route>
|
2022-01-26 16:32:34 +00:00
|
|
|
<default caps="100"/>
|
2016-03-18 22:36:32 +00:00
|
|
|
<start name="timer">
|
|
|
|
<resource name="RAM" quantum="1M"/>
|
|
|
|
<provides><service name="Timer"/></provides>
|
|
|
|
</start>
|
|
|
|
<start name="dynamic_rom">
|
|
|
|
<resource name="RAM" quantum="4M"/>
|
|
|
|
<provides><service name="ROM"/></provides>
|
|
|
|
<config verbose="yes">
|
|
|
|
<rom name="test">
|
|
|
|
<inline description="update"><test />
|
|
|
|
</inline>
|
|
|
|
<sleep milliseconds="1000" />
|
|
|
|
<inline description="finished"/>
|
|
|
|
</rom>
|
|
|
|
</config>
|
|
|
|
</start>
|
2018-07-04 16:48:04 +00:00
|
|
|
<start name="lx_fs" ld="no">
|
2016-03-18 22:36:32 +00:00
|
|
|
<resource name="RAM" quantum="4M"/>
|
|
|
|
<provides> <service name="File_system" /> </provides>
|
|
|
|
<config>
|
2016-11-24 14:28:32 +00:00
|
|
|
<policy label_prefix="rom_to_file" root="/fs_test" writeable="yes" />
|
2016-03-18 22:36:32 +00:00
|
|
|
</config>
|
|
|
|
</start>
|
|
|
|
<start name="rom_to_file">
|
|
|
|
<resource name="RAM" quantum="4M"/>
|
2022-01-26 16:32:34 +00:00
|
|
|
<config rom="test">
|
|
|
|
<vfs> <fs/> </vfs>
|
|
|
|
</config>
|
2017-02-23 12:24:21 +00:00
|
|
|
<route>
|
|
|
|
<service name="ROM" label="test"> <child name="dynamic_rom"/> </service>
|
|
|
|
<service name="File_system"> <child name="lx_fs"/> </service>
|
|
|
|
<any-service> <parent/> </any-service>
|
|
|
|
</route>
|
2016-03-18 22:36:32 +00:00
|
|
|
</start>
|
|
|
|
</config>}
|
|
|
|
|
|
|
|
exec mkdir -p bin/fs_test
|
|
|
|
|
2023-05-04 14:18:04 +00:00
|
|
|
build_boot_image [list {*}[build_artifacts] fs_test]
|
2016-03-18 22:36:32 +00:00
|
|
|
|
|
|
|
append qemu_args " -nographic "
|
|
|
|
|
|
|
|
run_genode_until "finished" 10
|
|
|
|
|
|
|
|
set output [exec cat bin/fs_test/test]
|
|
|
|
|
|
|
|
compare_output_to {<test />}
|
|
|
|
|
|
|
|
exec rm -r bin/fs_test
|