genode/ports/run/virtualbox_auto_disk.run
Alexander Boettcher c3b161e814 run: enable virtualbox auto test for nightly runs
With #1090 fixed the test should succeed now.
2014-03-14 13:17:36 +01:00

58 lines
1.4 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Tested for nova 64bit solely.
assert_spec 64bit
set use_vdi 1
set use_iso 0
set vdi_image "win7.vdi"
set config_of_app {
<start name="vbox-auto-test-helper">
<resource name="RAM" quantum="10M"/>
<route>
<service name="File_system"> <child name="rump_fs"/> </service>
<any-service> <parent/> <any-child /> </any-service>
</route>
</start>
}
source ${genode_dir}/ports/run/virtualbox_auto.inc
run_genode_until "vbox_auto_test_helper is done." 20
exec kill [exp_pid i $spawn_id]
set config_of_app {
<start name="vbox">
<binary name="virtualbox" />
<resource name="RAM" quantum="2G"/>
<config>}
if {$use_iso} {
append config_of_app "
<image type=\"iso\" file=\"/$iso_image\"/>"
}
if {$use_vdi} {
append config_of_app "
<image type=\"vdi\" file=\"/$vdi_image\" overlay=\"yes\"/>"
}
append config_of_app {
</config>
<route>
<service name="File_system"> <child name="rump_fs"/> </service>
<any-service> <parent/> <any-child /> </any-service>
</route>
</start>
}
source ${genode_dir}/ports/run/virtualbox_auto.inc
run_genode_until "ignore resize request to 720x400" 20
run_genode_until "ignore resize request to 640x480" 15 $spawn_id
run_genode_until "ignore resize request to 800x600" 35 $spawn_id
run_genode_until "ignore resize request to 800x600" 90 $spawn_id
run_genode_until "ignore resize request to 720x400" 10 $spawn_id
puts "\nTest succeeded"