-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
regression-novacustom.sh
executable file
·107 lines (93 loc) · 2.37 KB
/
regression-novacustom.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
#!/usr/bin/env bash
# This one must be retrieved manually from the DUT before starting regression
DEVICE_IP=192.168.4.69
# Uncomment one of these
CONFIG="novacustom-nv41mz"
FW_FILE="coreboot.rom"
if [ ! -f "${FW_FILE}" ]; then
echo "${FW_FILE} not found. Please provide correct FW_FILE value"
exit 1
fi
# Function to execute the robot command
execute_robot() {
local _category=$1
local _test_name=$2
local _log_file="${_test_name}_log.html"
# local _report_file="${_test_name}_report.html"
# local _output_file="${_test_name}.xml"
robot -L TRACE \
-l ${CONFIG}-${OS}/${_log_file} \
-v device_ip:${DEVICE_IP} \
-v rte_ip:${RTE_IP} \
-v config:${CONFIG} \
-v snipeit:no \
-v fw_file:${FW_FILE} \
dasharo-${_category}/${_test_name}.robot
}
# Function to handle Ctrl+C
handle_ctrl_c() {
echo "Ctrl+C pressed. Exiting."
# You can add cleanup tasks here if needed
exit 1
}
# Trap SIGINT (Ctrl+C)
trap 'handle_ctrl_c' SIGINT
compatibility_tests=(
"efi"
"display-ports-and-lcd-support"
"usb-hid-and-msc-support"
"uefi-shell"
"dmidecode"
"custom-boot-menu-key"
"wifi-bluetooth-support"
"audio-subsystem"
"nvme-support"
"network-boot"
"uefi-shell"
"cpu-status"
"reset-to-defaults"
"platform-suspend-and-resume"
"ec-and-super-IO"
"sd-card-reader"
"usb-camera"
"docking-station-usb-c"
"docking-station-usb-devices"
"docking-station-net-interface"
"docking-station-display-ports"
"docking-station-audio"
"docking-station-sd-card-reader"
# "thunderbolt-docking-station"
# "thunderbolt-docking-station-usb-devices"
# "thunderbolt-docking-station-net-interface"
# "thunderbolt-docking-station-display-ports"
# "thunderbolt-docking-station-audio"
)
security_tests=(
"tpm-support"
"measured-boot"
"verified-boot"
"network-stack"
"me-neuter"
"uefi-password"
"early-boot-dma-protection"
"usb-stack"
"bios-lock"
"smm-bios-write-protection"
)
# performance_tests=(
# "cpu-temperature"
# "cpu-frequency"
# )
OS=ubuntu
# Compatibility tests
for test in "${compatibility_tests[@]}"; do
execute_robot "compatibility" "$test"
done
# Security tests
for test in "${security_tests[@]}"; do
execute_robot "security" "$test"
done
# Performance tests
# for test in "${performance_tests[@]}"; do
# execute_robot "performance" "$test"
# done