7
7
# It assumes that the module files are present at '<build-dir>/bin/'
8
8
#
9
9
10
- assert_spec x86
10
+ assert {[have_spec x86]}
11
+ assert {[have_spec foc] || [have_spec sel4] || [have_spec nova] || [have_spec hw]}
11
12
12
- if { [get_cmd_switch --autopilot] && [have_spec x86_32] } {
13
- puts "\n Run script is not supported on this platform. \n";
14
- exit 0
15
- }
13
+ if {[have_cmd_switch --autopilot]} {
16
14
17
- if { [get_cmd_switch --autopilot] && [have_include "power_on/qemu"] } {
18
- puts "\n Run script is not supported on this platform. \n";
19
- exit 0
20
- }
15
+ assert {![have_spec x86_32]} \
16
+ "Autopilot mode is not supported on this platform."
21
17
22
- if { [get_cmd_switch --autopilot] && [have_spec hw] && ![have_include "power_on/qemu"] } {
23
- puts "\n Run script is not supported on this platform. \n";
24
- exit 0
25
- }
18
+ assert {![have_include power_on/qemu]} \
19
+ "Autopilot mode is not supported on this platform."
26
20
27
- if {[have_spec foc] || [have_spec sel4] || [have_spec nova] || [have_spec hw]} {
28
- } else {
29
- puts "\n Run script is not supported on this platform. \n";
30
- exit 0
21
+ assert {!([have_spec hw] && ![have_include power_on/qemu])} \
22
+ "Autopilot mode is not supported on this platform."
31
23
}
32
24
33
25
set use_multiboot 0
@@ -43,7 +35,7 @@ set use_block_sata 0
43
35
# The test machine in autopilot mode has a usb hid test device which
44
36
# attach/detach several times and clutters the log.
45
37
#
46
- set use_usb [expr ![get_cmd_switch --autopilot]]
38
+ set use_usb [expr ![have_cmd_switch --autopilot]]
47
39
48
40
set use_part_block 0
49
41
@@ -88,7 +80,7 @@ append qemu_args " -m 1536 "
88
80
append qemu_args " -cpu EPYC "
89
81
append_qemu_nic_args
90
82
91
- if { [get_cmd_switch --autopilot] } {
83
+ if { [have_cmd_switch --autopilot] } {
92
84
append qemu_args " -nographic "
93
85
run_genode_until {\[init -\> seoul\] VMM: # CPU: vendor_id} 60
94
86
0 commit comments