2018-01-19 18:23:39 +00:00
|
|
|
build { init app/depot_query app/depot_deploy }
|
2017-07-05 08:40:29 +00:00
|
|
|
|
|
|
|
create_boot_directory
|
|
|
|
|
2019-02-19 13:24:52 +00:00
|
|
|
import_from_depot [depot_user]/src/[base_src] \
|
|
|
|
[depot_user]/src/report_rom \
|
|
|
|
[depot_user]/src/fs_rom \
|
|
|
|
[depot_user]/src/vfs \
|
|
|
|
[depot_user]/src/init
|
2017-07-05 08:40:29 +00:00
|
|
|
|
|
|
|
create_tar_from_depot_binaries [run_dir]/genode/depot.tar \
|
2019-02-19 13:24:52 +00:00
|
|
|
[depot_user]/pkg/test-fs_report
|
2017-07-05 08:40:29 +00:00
|
|
|
|
|
|
|
proc query_pkg {} {
|
2017-12-11 16:19:03 +00:00
|
|
|
return test-fs_report/[_current_depot_archive_version pkg test-fs_report] }
|
2017-07-05 08:40:29 +00:00
|
|
|
|
|
|
|
install_config {
|
|
|
|
<config>
|
|
|
|
<parent-provides>
|
|
|
|
<service name="ROM"/>
|
|
|
|
<service name="IRQ"/>
|
|
|
|
<service name="IO_MEM"/>
|
|
|
|
<service name="IO_PORT"/>
|
|
|
|
<service name="PD"/>
|
|
|
|
<service name="RM"/>
|
|
|
|
<service name="CPU"/>
|
|
|
|
<service name="LOG"/>
|
|
|
|
</parent-provides>
|
|
|
|
|
|
|
|
<default-route>
|
|
|
|
<any-service> <parent/> <any-child/> </any-service>
|
|
|
|
</default-route>
|
|
|
|
<default caps="100"/>
|
|
|
|
|
|
|
|
<start name="timer">
|
|
|
|
<resource name="RAM" quantum="1M"/>
|
|
|
|
<provides> <service name="Timer"/> </provides>
|
|
|
|
</start>
|
|
|
|
|
|
|
|
<start name="report_rom">
|
|
|
|
<binary name="report_rom"/>
|
|
|
|
<resource name="RAM" quantum="1M"/>
|
|
|
|
<provides> <service name="Report"/> <service name="ROM"/> </provides>
|
|
|
|
<config verbose="yes">
|
|
|
|
<policy label="depot_deploy -> blueprint" report="depot_query -> blueprint"/>
|
2018-01-23 18:21:25 +00:00
|
|
|
<policy label="depot_query -> query" report="depot_deploy -> query"/>
|
|
|
|
<policy label="dynamic -> config" report="depot_deploy -> init.config"/>
|
2017-07-05 08:40:29 +00:00
|
|
|
</config>
|
|
|
|
</start>
|
|
|
|
|
|
|
|
<start name="vfs">
|
|
|
|
<resource name="RAM" quantum="4M"/>
|
|
|
|
<provides> <service name="File_system"/> </provides>
|
|
|
|
<config>
|
2019-11-29 10:26:22 +00:00
|
|
|
<vfs>
|
|
|
|
<tar name="depot.tar"/>
|
|
|
|
<dir name="badguy">
|
|
|
|
<dir name="pkg">
|
|
|
|
<dir name="invalid">
|
|
|
|
<dir name="current">
|
|
|
|
<inline name="archives"/>
|
|
|
|
<inline name="runtime">
|
|
|
|
<runtime ram="1M" caps="100" binary="chroot">
|
|
|
|
<content>
|
|
|
|
<rom label="chroot"/>
|
|
|
|
</content>
|
|
|
|
</runtime>
|
|
|
|
</inline>
|
|
|
|
</dir>
|
|
|
|
</dir>
|
|
|
|
</dir>
|
|
|
|
</dir>
|
|
|
|
</vfs>
|
2017-07-05 08:40:29 +00:00
|
|
|
<policy label="depot_query -> depot" root="/" />
|
|
|
|
<policy label="fs_rom -> " root="/" />
|
|
|
|
</config>
|
|
|
|
</start>
|
|
|
|
|
|
|
|
<start name="fs_rom">
|
|
|
|
<resource name="RAM" quantum="4M"/>
|
|
|
|
<provides> <service name="ROM"/> </provides>
|
|
|
|
</start>
|
|
|
|
|
|
|
|
<start name="depot_query">
|
2018-04-19 13:07:09 +00:00
|
|
|
<resource name="RAM" quantum="2M"/>
|
2018-01-23 18:21:25 +00:00
|
|
|
<config query="rom">
|
2017-07-05 08:40:29 +00:00
|
|
|
<vfs> <dir name="depot"> <fs label="depot"/> </dir> </vfs>
|
|
|
|
</config>
|
2018-01-23 18:21:25 +00:00
|
|
|
<route>
|
|
|
|
<service name="ROM" label="query"> <child name="report_rom"/> </service>
|
|
|
|
<any-service> <parent/> <any-child/> </any-service>
|
|
|
|
</route>
|
2017-07-05 08:40:29 +00:00
|
|
|
</start>
|
|
|
|
|
|
|
|
<start name="depot_deploy">
|
|
|
|
<resource name="RAM" quantum="1M"/>
|
2018-01-23 18:21:25 +00:00
|
|
|
<config arch="} [depot_spec] {">
|
2017-07-05 08:40:29 +00:00
|
|
|
<static>
|
|
|
|
<parent-provides>
|
|
|
|
<service name="ROM"/>
|
|
|
|
<service name="CPU"/>
|
|
|
|
<service name="PD"/>
|
|
|
|
<service name="LOG"/>
|
|
|
|
<service name="Timer"/>
|
|
|
|
</parent-provides>
|
|
|
|
</static>
|
|
|
|
<common_routes>
|
2018-01-19 18:23:39 +00:00
|
|
|
<service name="ROM" label_last="ld.lib.so"> <parent/> </service>
|
|
|
|
<service name="ROM" label_last="init"> <parent/> </service>
|
2017-07-05 08:40:29 +00:00
|
|
|
<service name="CPU"> <parent/> </service>
|
|
|
|
<service name="PD"> <parent/> </service>
|
|
|
|
<service name="LOG"> <parent/> </service>
|
|
|
|
<service name="Timer"> <parent/> </service>
|
|
|
|
</common_routes>
|
2019-11-29 10:26:22 +00:00
|
|
|
<start name="invalid" pkg="badguy/pkg/invalid/current"/>
|
2019-02-19 13:24:52 +00:00
|
|
|
<start name="test" pkg="} [depot_user] {/pkg/} [query_pkg] {"/>
|
2017-07-05 08:40:29 +00:00
|
|
|
</config>
|
|
|
|
<route>
|
|
|
|
<service name="ROM" label="blueprint"> <child name="report_rom"/> </service>
|
|
|
|
<any-service> <parent/> <any-child/> </any-service>
|
|
|
|
</route>
|
|
|
|
</start>
|
|
|
|
|
2018-01-23 18:21:25 +00:00
|
|
|
<start name="dynamic" caps="8000">
|
2017-07-05 08:40:29 +00:00
|
|
|
<resource name="RAM" quantum="64M"/>
|
|
|
|
<binary name="init"/>
|
|
|
|
<route>
|
2018-01-19 18:23:39 +00:00
|
|
|
<service name="ROM" label_last="ld.lib.so"> <parent/> </service>
|
|
|
|
<service name="ROM" label_last="init"> <parent/> </service>
|
2017-07-05 08:40:29 +00:00
|
|
|
<service name="ROM" label="config"> <child name="report_rom"/> </service>
|
|
|
|
<service name="ROM"> <child name="fs_rom"/> </service>
|
|
|
|
<service name="Timer"> <child name="timer"/> </service>
|
|
|
|
<any-service> <parent/> <any-child/> </any-service>
|
|
|
|
</route>
|
|
|
|
</start>
|
|
|
|
|
|
|
|
</config>}
|
|
|
|
|
2023-11-17 17:11:02 +00:00
|
|
|
build_boot_image [build_artifacts]
|
2017-07-05 08:40:29 +00:00
|
|
|
|
2018-04-13 06:51:03 +00:00
|
|
|
append qemu_args " -nographic "
|
|
|
|
|
2019-11-29 10:26:22 +00:00
|
|
|
run_genode_until {.*\] child "test-fs_report" exited with exit value 0.*\n} 30
|
2017-07-05 08:40:29 +00:00
|
|
|
|