mirror of
https://github.com/genodelabs/genode.git
synced 2025-02-20 09:46:20 +00:00
os: add tests to autopilot
Since the autopilot has become able to use the depot, futher tests can be enabled by default.
This commit is contained in:
parent
c1ff581fb4
commit
cb78516bf1
@ -49,6 +49,8 @@ proc nic_drv_config { } {
|
|||||||
return "<config><card type=\"fsl,imx25-fec\" mii=\"rmii\" irq=\"87\" mmio=\"0x63fec000\"/></config>" }
|
return "<config><card type=\"fsl,imx25-fec\" mii=\"rmii\" irq=\"87\" mmio=\"0x63fec000\"/></config>" }
|
||||||
if {[have_spec wand_quad]} {
|
if {[have_spec wand_quad]} {
|
||||||
return "<config><card type=\"fsl,imx6q-fec\" mii=\"rgmii\" irq=\"150\" mmio=\"0x2188000\"/></config>" }
|
return "<config><card type=\"fsl,imx6q-fec\" mii=\"rgmii\" irq=\"150\" mmio=\"0x2188000\"/></config>" }
|
||||||
|
if {[have_spec omap4] || [have_spec arndale] || [have_spec rpi]} {
|
||||||
|
return {<config uhci="yes" ohci="yes" ehci="yes"><nic mac="02:00:00:00:01:01"/></config>} }
|
||||||
return ""
|
return ""
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1,5 +1,11 @@
|
|||||||
create_boot_directory
|
create_boot_directory
|
||||||
|
|
||||||
|
# the test currently is tied to the x86-only iPXE NIC driver
|
||||||
|
if {![have_spec x86] || [have_spec linux]} {
|
||||||
|
puts "Run script does not support this platform."
|
||||||
|
exit 0
|
||||||
|
}
|
||||||
|
|
||||||
import_from_depot genodelabs/src/[base_src] \
|
import_from_depot genodelabs/src/[base_src] \
|
||||||
genodelabs/src/report_rom \
|
genodelabs/src/report_rom \
|
||||||
genodelabs/src/fs_rom \
|
genodelabs/src/fs_rom \
|
||||||
@ -45,7 +51,7 @@ set config {
|
|||||||
|
|
||||||
append_platform_drv_config
|
append_platform_drv_config
|
||||||
|
|
||||||
proc depot_user { } { return nfeske }
|
proc depot_user { } { return genodelabs }
|
||||||
|
|
||||||
proc depot_user_download { } {
|
proc depot_user_download { } {
|
||||||
return [exec cat [genode_dir]/depot/[depot_user]/download] }
|
return [exec cat [genode_dir]/depot/[depot_user]/download] }
|
||||||
@ -106,7 +112,7 @@ append config {
|
|||||||
set fd [open [run_dir]/genode/installation w]
|
set fd [open [run_dir]/genode/installation w]
|
||||||
puts $fd "
|
puts $fd "
|
||||||
<installation arch=\"x86_64\">
|
<installation arch=\"x86_64\">
|
||||||
<archive path=\"[depot_user]/pkg/wm/2017-12-13\"/>
|
<archive path=\"[depot_user]/pkg/wm/2018-02-26\"/>
|
||||||
</installation>"
|
</installation>"
|
||||||
close $fd
|
close $fd
|
||||||
|
|
||||||
@ -124,5 +130,5 @@ build_boot_image $boot_modules
|
|||||||
|
|
||||||
append qemu_args " -nographic -net nic,model=e1000 -net user "
|
append qemu_args " -nographic -net nic,model=e1000 -net user "
|
||||||
|
|
||||||
run_genode_until forever
|
run_genode_until {.*\[init -> depot_download -> manager\] installation complete.*\n} 120
|
||||||
|
|
||||||
|
@ -4,17 +4,26 @@
|
|||||||
# \date 2016-06-05
|
# \date 2016-06-05
|
||||||
#
|
#
|
||||||
|
|
||||||
|
if {[have_spec odroid_xu] || [have_spec linux]} {
|
||||||
|
puts "Run script does not support this platform."
|
||||||
|
exit 0
|
||||||
|
}
|
||||||
|
|
||||||
set build_components {
|
set build_components {
|
||||||
app/fetchurl
|
app/fetchurl
|
||||||
core init
|
core init
|
||||||
drivers/nic
|
drivers/nic
|
||||||
drivers/timer
|
drivers/timer
|
||||||
lib/vfs/lxip
|
lib/vfs/lxip
|
||||||
|
server/report_rom
|
||||||
}
|
}
|
||||||
|
|
||||||
source ${genode_dir}/repos/base/run/platform_drv.inc
|
source ${genode_dir}/repos/base/run/platform_drv.inc
|
||||||
append_platform_drv_build_components
|
append_platform_drv_build_components
|
||||||
|
|
||||||
|
lappend_if [expr {[nic_drv_binary] == "nic_drv"}] build_components drivers/nic
|
||||||
|
lappend_if [expr {[nic_drv_binary] == "usb_drv"}] build_components drivers/usb
|
||||||
|
|
||||||
build $build_components
|
build $build_components
|
||||||
|
|
||||||
create_boot_directory
|
create_boot_directory
|
||||||
@ -45,14 +54,15 @@ append config {
|
|||||||
<resource name="RAM" quantum="1M"/>
|
<resource name="RAM" quantum="1M"/>
|
||||||
<provides> <service name="Timer"/> </provides>
|
<provides> <service name="Timer"/> </provides>
|
||||||
</start>
|
</start>
|
||||||
<start name="nic_drv">
|
<start name="nic_drv" caps="120">
|
||||||
<binary name="} [nic_drv_binary] {"/>
|
<binary name="} [nic_drv_binary] {"/>
|
||||||
<resource name="RAM" quantum="4M"/>
|
<resource name="RAM" quantum="16M"/>
|
||||||
<provides> <service name="Nic"/> </provides>
|
<provides> <service name="Nic"/> </provides>
|
||||||
|
} [nic_drv_config] {
|
||||||
</start>
|
</start>
|
||||||
<start name="report_rom">
|
<start name="report_rom">
|
||||||
<resource name="RAM" quantum="4M"/>
|
<resource name="RAM" quantum="4M"/>
|
||||||
<provides> <service name="Report"/> </provides>
|
<provides> <service name="ROM"/> <service name="Report"/> </provides>
|
||||||
<config verbose="yes"/>
|
<config verbose="yes"/>
|
||||||
</start>
|
</start>
|
||||||
|
|
||||||
@ -89,11 +99,11 @@ set boot_modules {
|
|||||||
libssh.lib.so
|
libssh.lib.so
|
||||||
libssl.lib.so
|
libssl.lib.so
|
||||||
lxip.lib.so
|
lxip.lib.so
|
||||||
nic_drv
|
|
||||||
pthread.lib.so
|
pthread.lib.so
|
||||||
timer
|
timer
|
||||||
vfs_lxip.lib.so
|
vfs_lxip.lib.so
|
||||||
zlib.lib.so
|
zlib.lib.so
|
||||||
|
report_rom
|
||||||
}
|
}
|
||||||
|
|
||||||
# platform-specific modules
|
# platform-specific modules
|
||||||
@ -102,6 +112,8 @@ lappend boot_modules [nic_drv_binary]
|
|||||||
|
|
||||||
build_boot_image $boot_modules
|
build_boot_image $boot_modules
|
||||||
|
|
||||||
append qemu_args " -nographic -net nic,model=e1000 -net user"
|
append_if [have_spec x86] qemu_args " -net nic,model=e1000 "
|
||||||
|
append_if [have_spec lan9118] qemu_args " -net nic,model=lan9118 "
|
||||||
|
append qemu_args " -nographic -net user"
|
||||||
|
|
||||||
run_genode_until {child "fetchurl" exited with exit value 0} 120
|
run_genode_until {child "fetchurl" exited with exit value 0} 120
|
||||||
|
@ -17,6 +17,7 @@ install_config {
|
|||||||
<default-route>
|
<default-route>
|
||||||
<any-service> <any-child/> <parent/> </any-service>
|
<any-service> <any-child/> <parent/> </any-service>
|
||||||
</default-route>
|
</default-route>
|
||||||
|
<default caps="100"/>
|
||||||
<start name="timer">
|
<start name="timer">
|
||||||
<resource name="RAM" quantum="1M"/>
|
<resource name="RAM" quantum="1M"/>
|
||||||
<provides><service name="Timer"/></provides>
|
<provides><service name="Timer"/></provides>
|
||||||
|
@ -113,3 +113,9 @@ demo
|
|||||||
ping
|
ping
|
||||||
ping_nic_router
|
ping_nic_router
|
||||||
nvme
|
nvme
|
||||||
|
weak_ptr
|
||||||
|
extract
|
||||||
|
verify
|
||||||
|
fetchurl
|
||||||
|
depot_query
|
||||||
|
depot_download
|
||||||
|
Loading…
x
Reference in New Issue
Block a user