2014-09-10 08:11:25 +00:00
|
|
|
|
# Tested for nova.
|
2014-05-28 12:48:33 +00:00
|
|
|
|
assert_spec nova
|
2014-03-10 11:19:52 +00:00
|
|
|
|
|
2014-02-12 12:53:42 +00:00
|
|
|
|
set use_vdi 1
|
|
|
|
|
set use_iso 0
|
|
|
|
|
set vdi_image "win7.vdi"
|
|
|
|
|
|
|
|
|
|
set config_of_app {
|
2014-07-02 10:11:20 +00:00
|
|
|
|
<start name="vbox-auto-test-helper" priority="-1">
|
2014-02-12 12:53:42 +00:00
|
|
|
|
<resource name="RAM" quantum="10M"/>
|
|
|
|
|
<route>
|
|
|
|
|
<service name="File_system"> <child name="rump_fs"/> </service>
|
|
|
|
|
<any-service> <parent/> <any-child /> </any-service>
|
|
|
|
|
</route>
|
2014-04-14 09:57:22 +00:00
|
|
|
|
<config>
|
|
|
|
|
<libc stdout="/dev/log" stderr="/dev/log">
|
|
|
|
|
<vfs>
|
|
|
|
|
<fs />
|
|
|
|
|
<dir name="dev"> <log/> </dir>
|
|
|
|
|
</vfs>
|
|
|
|
|
</libc>
|
|
|
|
|
</config>
|
2014-02-12 12:53:42 +00:00
|
|
|
|
</start>
|
|
|
|
|
}
|
|
|
|
|
|
2014-05-07 09:48:19 +00:00
|
|
|
|
source ${genode_dir}/repos/ports/run/virtualbox_auto.inc
|
2014-02-12 12:53:42 +00:00
|
|
|
|
|
|
|
|
|
run_genode_until "vbox_auto_test_helper is done." 20
|
|
|
|
|
exec kill [exp_pid −i $spawn_id]
|
|
|
|
|
|
2014-05-28 12:48:33 +00:00
|
|
|
|
# reset values used before
|
|
|
|
|
set build_components { }
|
|
|
|
|
set boot_modules { }
|
|
|
|
|
|
2014-02-12 12:53:42 +00:00
|
|
|
|
set config_of_app {
|
2014-07-02 10:11:20 +00:00
|
|
|
|
<start name="vbox" priority="-2">
|
2014-02-12 12:53:42 +00:00
|
|
|
|
<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 {
|
2014-04-14 09:57:22 +00:00
|
|
|
|
<libc stdout="/dev/log" stderr="/dev/log">
|
|
|
|
|
<vfs>
|
|
|
|
|
<fs />
|
|
|
|
|
<dir name="dev"> <log/> </dir>
|
|
|
|
|
</vfs>
|
|
|
|
|
</libc>
|
2014-02-12 12:53:42 +00:00
|
|
|
|
</config>
|
|
|
|
|
<route>
|
|
|
|
|
<service name="File_system"> <child name="rump_fs"/> </service>
|
|
|
|
|
<any-service> <parent/> <any-child /> </any-service>
|
|
|
|
|
</route>
|
|
|
|
|
</start>
|
|
|
|
|
}
|
|
|
|
|
|
2014-05-07 09:48:19 +00:00
|
|
|
|
source ${genode_dir}/repos/ports/run/virtualbox_auto.inc
|
2014-02-12 12:53:42 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
run_genode_until "ignore resize request to 720x400" 20
|
2014-05-23 07:26:57 +00:00
|
|
|
|
run_genode_until "ignore resize request to 640x480" 25 $spawn_id
|
2014-03-10 11:19:52 +00:00
|
|
|
|
run_genode_until "ignore resize request to 800x600" 35 $spawn_id
|
2014-06-13 12:37:34 +00:00
|
|
|
|
run_genode_until {\[init -\> vbox\].*Guest Additions capability report:.*seamless: yes, hostWindowMapping: no, graphics: yes} 60 $spawn_id
|
2014-02-12 12:53:42 +00:00
|
|
|
|
|
|
|
|
|
puts "\nTest succeeded"
|