@@ -12,11 +12,7 @@ Resource ../keys.robot
12
12
# Log Out And Close Connection - elementary teardown keyword for all tests.
13
13
Suite Setup Run Keywords
14
14
... Prepare Test Suite
15
- #... AND
16
- #... Restore Secure Boot Defaults
17
15
Suite Teardown Run Keywords
18
- ... Run Keyword If ${SECURE_BOOT_SUPPORT } and ${TESTS_IN_FIRMWARE_SUPPORT } Set Secure Boot State To Disabled
19
- ... AND
20
16
... Log Out And Close Connection
21
17
Test Setup Run Keyword
22
18
... Restore Initial DUT Connection Method
30
26
PFS001.502 Boot pfSense LTS CE (serial output) from disk after cold-boot
31
27
[Documentation] Boot pfSense LTS CE (serial output) from disk after cold-boot
32
28
Power On
29
+ # TBD
30
+
31
+ OPN001.503 Boot OPNsense (serial output) from disk after cold-boot
32
+ [Documentation] Boot OPNsense (serial output) from disk after cold-boot
33
+ Power On
34
+ Boot OPN
35
+ # TBD
33
36
34
37
PFS002.502 Boot pfSense LTS CE (serial output) from disk after warm-boot
38
+ [Documentation] Boot pfSense LTS CE (serial output) from disk after warm-boot
39
+ ... does not use rtcwake!!!
40
+ Power On
41
+ Boot PfSense
42
+ Enter Pf Sense Shell
43
+ Write Into Terminal poweroff
35
44
Power On
45
+ Boot PfSense
36
46
37
47
PFS003.502 Boot pfSense LTS CE (serial output) from disk after reboot
48
+ [Documentation] Boot pfSense LTS CE (serial output) from disk after reboot
38
49
Power On
50
+ Boot PfSense
51
+ Enter Pf Sense Shell
52
+ Write Into Terminal reboot
53
+ Boot PfSense
39
54
40
55
PFS004.502 Boot pfSense LTS CE (serial output) Installer into rescue shell
41
56
Power On
42
57
Boot PfSense Installer
43
- Enter pfSense Rescue Shell
44
-
45
- OPN001.503 OPNsense stable (serial output) installation on Hard Disk
46
- Power On
47
- Boot OPNsense Installer
58
+ Enter PfSense Rescue Shell
59
+ ${output } = Execute Command In Terminal ls
60
+ Should Contain ${output } COPYRIGHT
61
+ Should Contain ${output } .profile
48
62
49
- OPN001.503 Boot OPNsense stable (serial output) from Hard Disk
63
+ PFS005.502 Preseed pfSense Installer
50
64
Power On
51
-
52
- PFS001.502 pfSense stable (serial output) installation on Hard Disk
65
+ Boot PfSense Installer
66
+ Enter PfSense Rescue Shell
67
+ Execute Command In Terminal
68
+ ... awk -v sq="'" -v dq='"' -v ROOT_LABEL=PFBOOT '/^NEWFS_ESP=/ { print "NEWFS_ESP=" sq "newfs_msdos -L " ROOT_LABEL " " dq "%s" dq sq; next; }; { print; }' /usr/libexec/bsdinstall/zfsboot > /tmp/zfsboot
69
+ Execute Command In Terminal mount -u /
70
+ Execute Command In Terminal mv /tmp/zfsboot /usr/libexec/bsdinstall/zfsboot
71
+ Execute Command In Terminal chmod +x /usr/libexec/bsdinstall/zfsboot
72
+ Execute Command In Terminal sync
73
+ ${output } = Execute Command In Terminal grep PFBOOT /usr/libexec/bsdinstall/zfsboot
74
+ Should Contain ${output } PFBOOT
75
+
76
+ # There's no OPN005.503, preseed requires another FreeBSD system
77
+
78
+ PFS006.502 Boot pfSense Installer
53
79
Power On
54
80
Boot PfSense Installer
55
- # Enter pfSense Rescue Shell
56
- Install PsSense On Sata Drive
81
+ Execute Manual Step Click OK to PASS, after test ends, connect to DUT via serial and continue.
57
82
58
- PFS001.002 Boot pfSense stable (serial output) from Hard Disk
83
+ OPN006.503 Boot OPNsense Installer
59
84
Power On
60
- Boot Pf Sense
85
+ Boot OPNsense Installer
86
+ Execute Manual Step Click OK to PASS, after test ends, connect to DUT via serial and continue.
61
87
62
88
63
89
*** Keywords ***
64
- # Relabel pfSense ESP
65
- #
66
-
67
90
Boot PfSense Installer
68
91
[Documentation] Run /EFI/BOOT/bootx64.efi file from PFEFI-labeled partition;
69
92
... Select console type vt100 and accept the license
@@ -87,13 +110,20 @@ Boot OPNsense Installer
87
110
Read From Terminal Until FreeBSD/amd64 (OPNsense.localdomain) (ttyu0)
88
111
Read From Terminal Until login:
89
112
113
+ Enter PfSense Shell
114
+ Write Into Terminal 8
115
+ Read From Terminal Until ${PFSENSE_PROMPT }
116
+ Set Prompt For Terminal ${PFSENSE_PROMPT }
117
+
90
118
Enter PfSense Rescue Shell
91
- ${menu } = Read From Terminal Until OK
119
+ ${menu } = Read From Terminal Until <Cancel>
92
120
# end would be 5 but it's 3 due to two empty lines
93
121
${construction } = Parse Menu Snapshot Into Construction ${menu } 5 3
94
- Enter Submenu From Snapshot ${construction } Rescue Shell${SPACE * 8 } Launch a shell for rescue operations
95
- Write Into Terminal root
96
- Write Into Terminal root
122
+ Enter Submenu From Snapshot
123
+ ... ${construction }
124
+ ... Rescue Shell${SPACE_*_8 } Launch a shell for rescue operations
125
+ ... "APP"
126
+ Set Prompt For Terminal \#
97
127
98
128
Enter OPN Sense Rescue Shell:
99
129
Read From Terminal FreeBSD/amd64 (OPNsense.localdomain) (ttyu0)
@@ -104,17 +134,18 @@ Enter OPN Sense Rescue Shell:
104
134
Read From Terminal Until Enter an option:
105
135
Write Into Terminal 8
106
136
107
- Boot Pf Sense
108
- [Documentation] PFBOOT -> /efi/freebsd/loader .efi
137
+ Boot PfSense
138
+ [Documentation] PFBOOT -> /efi/boot/bootx64 .efi
109
139
Enter Boot From File
110
140
Enter Volume In File Explorer PFBOOT
111
141
Execute File In File Explorer efi
112
- Execute File In File Explorer freebsd
113
- Execute File In File Explorer loader .efi
142
+ Execute File In File Explorer boot
143
+ Execute File In File Explorer bootx64 .efi
114
144
Read From Terminal Until Enter an option:
115
- Write Into Terminal 8
116
- Read From Terminal Until ${PFSENSE_PROMPT }
117
145
118
146
Boot OPN Sense
119
147
Enter Boot From File
120
-
148
+ Enter Volume In File Explorer OPNBOOT
149
+ Execute File In File Explorer efi
150
+ Execute File In File Explorer boot
151
+ Execute File In File Explorer bootx64.efi
0 commit comments