2019-03-12 14:03:01 +00:00
|
|
|
<runtime ram="32M" caps="1000" binary="init">
|
|
|
|
|
2023-06-24 14:57:19 +00:00
|
|
|
<fail after_seconds="20"/>
|
|
|
|
<succeed>
|
2023-03-20 16:50:43 +00:00
|
|
|
[init -> test -> remove] *file /items cannot be removed because it is a directory*
|
2019-03-12 14:03:01 +00:00
|
|
|
[init -> test -> remove] remove file /items/2*
|
2023-03-20 16:50:43 +00:00
|
|
|
[init -> test -> remove] *file /3 cannot be removed because there is no such file*
|
2019-03-12 14:03:01 +00:00
|
|
|
[init -> test -> remove] remove file /4*
|
2019-03-21 08:54:42 +00:00
|
|
|
[init -> report_rom] report 'test -> fs_query -> listing'
|
|
|
|
[init -> report_rom] <listing>
|
|
|
|
[init -> report_rom] <dir path="/fs/items">
|
2020-02-19 09:32:14 +00:00
|
|
|
[init -> report_rom] <file name="1" writeable="yes">first</file>
|
2021-03-13 21:07:01 +00:00
|
|
|
[init -> report_rom] <file name="5" writeable="yes">fifth</file>
|
|
|
|
[init -> report_rom] </dir>
|
|
|
|
[init -> report_rom] <dir path="/fs/new/file/at/subdir">
|
|
|
|
[init -> report_rom] <file name="content" writeable="yes">new file</file>
|
2019-03-21 08:54:42 +00:00
|
|
|
[init -> report_rom] </dir>
|
|
|
|
[init -> report_rom] </listing>
|
2023-06-24 14:57:19 +00:00
|
|
|
</succeed>
|
2019-03-12 14:03:01 +00:00
|
|
|
|
|
|
|
<content>
|
|
|
|
<rom label="ld.lib.so"/>
|
|
|
|
<rom label="report_rom"/>
|
|
|
|
<rom label="sequence"/>
|
|
|
|
<rom label="vfs"/>
|
|
|
|
<rom label="vfs.lib.so"/>
|
|
|
|
<rom label="vfs_import.lib.so"/>
|
|
|
|
<rom label="fs_query"/>
|
|
|
|
<rom label="fs_tool"/>
|
|
|
|
<rom label="dummy"/>
|
|
|
|
</content>
|
|
|
|
|
|
|
|
<config>
|
|
|
|
<parent-provides>
|
|
|
|
<service name="ROM"/>
|
|
|
|
<service name="LOG"/>
|
|
|
|
<service name="RM"/>
|
|
|
|
<service name="CPU"/>
|
|
|
|
<service name="PD"/>
|
|
|
|
<service name="Timer"/>
|
|
|
|
</parent-provides>
|
|
|
|
|
|
|
|
<default-route>
|
|
|
|
<any-service> <parent/> <any-child/> </any-service>
|
|
|
|
</default-route>
|
|
|
|
|
|
|
|
<default caps="100"/>
|
|
|
|
|
|
|
|
<start name="report_rom">
|
|
|
|
<resource name="RAM" quantum="1M"/>
|
|
|
|
<provides> <service name="Report"/> <service name="ROM"/> </provides>
|
|
|
|
<config verbose="yes"/>
|
|
|
|
</start>
|
|
|
|
|
|
|
|
<start name="vfs">
|
|
|
|
<resource name="RAM" quantum="4M"/>
|
|
|
|
<provides><service name="File_system"/></provides>
|
|
|
|
<config>
|
|
|
|
<vfs>
|
|
|
|
<ram/>
|
|
|
|
<import>
|
|
|
|
<dir name="items">
|
|
|
|
<inline name="1">first</inline>
|
|
|
|
<inline name="2">second</inline>
|
|
|
|
</dir>
|
|
|
|
<inline name="4">fourth</inline>
|
|
|
|
</import>
|
|
|
|
</vfs>
|
|
|
|
<default-policy root="/" writeable="yes"/>
|
|
|
|
</config>
|
|
|
|
</start>
|
|
|
|
|
|
|
|
<start name="test" caps="700">
|
|
|
|
<binary name="sequence"/>
|
|
|
|
<resource name="RAM" quantum="16M"/>
|
|
|
|
<config>
|
|
|
|
<start name="sleep" caps="100">
|
|
|
|
<resource name="RAM" quantum="4M"/>
|
|
|
|
<binary name="dummy"/>
|
|
|
|
<config>
|
|
|
|
<sleep ms="500"/>
|
|
|
|
<exit/>
|
|
|
|
</config>
|
|
|
|
</start>
|
|
|
|
|
2021-03-13 21:07:01 +00:00
|
|
|
<start name="new-file" caps="500">
|
|
|
|
<binary name="fs_tool"/>
|
|
|
|
<config verbose="yes" exit="yes">
|
|
|
|
<vfs>
|
|
|
|
<fs writeable="yes"/>
|
|
|
|
</vfs>
|
|
|
|
<new-file path="/items/5">fifth</new-file>
|
|
|
|
<new-file path="/new/file/at/subdir/content">new file</new-file>
|
|
|
|
</config>
|
|
|
|
</start>
|
|
|
|
|
|
|
|
<start name="sleep" caps="100">
|
|
|
|
<resource name="RAM" quantum="4M"/>
|
|
|
|
<binary name="dummy"/>
|
|
|
|
<config>
|
|
|
|
<sleep ms="500"/>
|
|
|
|
<exit/>
|
|
|
|
</config>
|
|
|
|
</start>
|
|
|
|
|
2019-03-12 14:03:01 +00:00
|
|
|
<start name="remove" caps="500">
|
|
|
|
<binary name="fs_tool"/>
|
|
|
|
<config verbose="yes" exit="yes">
|
|
|
|
<vfs>
|
|
|
|
<fs writeable="yes"/>
|
|
|
|
</vfs>
|
|
|
|
<remove-file path="/items"/> <!-- is no file -->
|
|
|
|
<remove-file path="/items/2"/> <!-- should succeed -->
|
|
|
|
<remove-file path="/3"/> <!-- does not exist -->
|
|
|
|
<remove-file path="/4"/> <!-- should succeed -->
|
|
|
|
</config>
|
|
|
|
</start>
|
|
|
|
|
2019-03-21 08:54:42 +00:00
|
|
|
<start name="fs_query">
|
|
|
|
<resource name="RAM" quantum="1M"/>
|
|
|
|
<config>
|
|
|
|
<vfs> <dir name="fs"> <fs/> </dir> </vfs>
|
|
|
|
<query path="/fs/items" content="yes"/>
|
2021-03-13 21:07:01 +00:00
|
|
|
<query path="/fs/new/file/at/subdir" content="yes"/>
|
2019-03-21 08:54:42 +00:00
|
|
|
</config>
|
|
|
|
</start>
|
|
|
|
|
2019-03-12 14:03:01 +00:00
|
|
|
<start name="sleep" caps="100">
|
|
|
|
<resource name="RAM" quantum="4M"/>
|
|
|
|
<binary name="dummy"/>
|
|
|
|
<config>
|
|
|
|
<log string="sleep forever..."/>
|
|
|
|
</config>
|
|
|
|
</start>
|
|
|
|
|
|
|
|
</config>
|
|
|
|
</start>
|
|
|
|
</config>
|
|
|
|
</runtime>
|