mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-31 16:35:28 +00:00
ec711b008e
Issue #3781.
117 lines
2.4 KiB
Plaintext
117 lines
2.4 KiB
Plaintext
if {![have_spec x86_64]} {
|
|
puts "\nTest requires x86_64\n"
|
|
exit 0
|
|
}
|
|
|
|
if {[have_spec linux]} {
|
|
puts "\nRun script is not supported on this platform\n"
|
|
exit 0
|
|
}
|
|
|
|
create_boot_directory
|
|
|
|
import_from_depot \
|
|
[depot_user]/src/[base_src] \
|
|
[depot_user]/src/init \
|
|
[depot_user]/src/nic_loopback \
|
|
[depot_user]/src/vfs_block \
|
|
[depot_user]/src/rtc_drv \
|
|
[depot_user]/src/sequence \
|
|
[depot_user]/src/vfs \
|
|
[depot_user]/src/vfs_import
|
|
|
|
append config {
|
|
<config>
|
|
<parent-provides>
|
|
<service name="CPU"/>
|
|
<service name="LOG"/>
|
|
<service name="PD"/>
|
|
<service name="RAM"/>
|
|
<service name="ROM"/>
|
|
<service name="IRQ"/>
|
|
<service name="IO_PORT"/>
|
|
</parent-provides>
|
|
|
|
<default-route>
|
|
<any-service> <parent/> <any-child/> </any-service> </default-route>
|
|
|
|
<start name="timer" caps="96">
|
|
<resource name="RAM" quantum="1M"/>
|
|
<provides> <service name="Timer"/> </provides>
|
|
</start>
|
|
|
|
<start name="rtc_drv" caps="96">
|
|
<resource name="RAM" quantum="1M"/>
|
|
<provides> <service name="Rtc"/> </provides>
|
|
</start>
|
|
|
|
<start name="nic_loopback" caps="96">
|
|
<resource name="RAM" quantum="1M"/>
|
|
<provides> <service name="Nic"/> </provides>
|
|
</start>
|
|
|
|
<start name="vfs_block" caps="96">
|
|
<resource name="RAM" quantum="40M"/>
|
|
<provides> <service name="Block"/> </provides>
|
|
<config>
|
|
<vfs>
|
|
<ram/>
|
|
<import>
|
|
<zero name="block_file" size="32M"/>
|
|
</import>
|
|
</vfs>
|
|
<default-policy file="/block_file" block_size="4096"
|
|
writeable="yes"/>
|
|
</config>
|
|
</start>
|
|
|
|
<start name="test" caps="256">
|
|
<binary name="sequence"/>
|
|
<resource name="RAM" quantum="16M"/>
|
|
<config>
|
|
<start name="solo5-test_hello">
|
|
<config>
|
|
<solo5 cmdline="Hello_Solo5"/>
|
|
<rtc/> <nic/> <block/>
|
|
</config>
|
|
</start>
|
|
<start name="solo5-test_fpu"/>
|
|
<start name="solo5-test_globals"/>
|
|
<start name="solo5-test_quiet"/>
|
|
<start name="solo5-test_blk">
|
|
<config> <block/> </config>
|
|
</start>}
|
|
|
|
if { ![get_cmd_switch --autopilot] || ![have_include "power_on/qemu"] } {
|
|
append config {
|
|
<start name="solo5-test_time">
|
|
<config> <rtc/> </config>
|
|
</start>}
|
|
}
|
|
|
|
append config {
|
|
</config>
|
|
</start>
|
|
</config>
|
|
}
|
|
|
|
install_config $config
|
|
|
|
build {
|
|
test/solo5
|
|
}
|
|
|
|
build_boot_image {
|
|
solo5.lib.so
|
|
solo5-test_blk
|
|
solo5-test_fpu
|
|
solo5-test_globals
|
|
solo5-test_hello
|
|
solo5-test_quiet
|
|
solo5-test_time
|
|
}
|
|
|
|
append qemu_args " -nographic "
|
|
|
|
run_genode_until {child "test" exited with exit value 0} 40
|