Skip to content

Commit

Permalink
scripts: Remove regression-qemu and move its functionality to regress…
Browse files Browse the repository at this point in the history
…ion.sh

Signed-off-by: Pawel Langowski <[email protected]>
  • Loading branch information
PLangowski committed Jul 3, 2024
1 parent 6b72d0a commit 26cbcd3
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 41 deletions.
34 changes: 0 additions & 34 deletions scripts/regression-qemu.sh

This file was deleted.

44 changes: 37 additions & 7 deletions scripts/regression.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,42 @@
SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
source "${SCRIPT_DIR}/lib/robot.sh"

# FW_FILE and DEVICE_IP are required for full regression
check_env_variable "FW_FILE"
check_env_variable "DEVICE_IP"
if [ $CONFIG == "qemu" ]; then
export RTE_IP=127.0.0.1
export SNIPEIT_NO="no"
compatibility_tests=(
"dasharo-compatibility/custom-boot-menu-key.robot"
"dasharo-compatibility/uefi-shell.robot"
"dasharo-compatibility/network-boot.robot"
"dasharo-compatibility/dmidecode.robot"
# FIXME: unsafe to enable https://github.com/Dasharo/dasharo-issues/issues/887
#"dasharo-compatibility/reset-to-defaults.robot"
)

check_test_station_variables
security_tests=(
"dasharo-security/network-stack.robot"
"dasharo-security/secure-boot.robot"
"dasharo-security/measured-boot.robot"
"dasharo-security/uefi-password.robot"
)

execute_robot "dasharo-compatibility"
execute_robot "dasharo-security"
execute_robot "dasharo-performance"
# Compatibility tests
for test in "${compatibility_tests[@]}"; do
execute_robot "$test"
done

# Security tests
for test in "${security_tests[@]}"; do
execute_robot "$test"
done
else
# FW_FILE and DEVICE_IP are required for full regression
check_env_variable "FW_FILE"
check_env_variable "DEVICE_IP"

check_test_station_variables

execute_robot "dasharo-compatibility"
execute_robot "dasharo-security"
execute_robot "dasharo-performance"
fi

0 comments on commit 26cbcd3

Please sign in to comment.