2024-03-02 15:04:45 +01:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
2024-12-17 18:49:05 +01:00
|
|
|
# SPDX-FileCopyrightText: 2024 3mdeb <contact@3mdeb.com>
|
|
|
|
|
#
|
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
2024-07-24 07:18:17 +02:00
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
2024-03-02 15:04:45 +01:00
|
|
|
source "${SCRIPT_DIR}/lib/robot.sh"
|
|
|
|
|
|
|
|
|
|
# FW_FILE and DEVICE_IP are required for full regression
|
|
|
|
|
check_env_variable "FW_FILE"
|
2024-04-11 17:10:39 +02:00
|
|
|
check_env_variable "DEVICE_IP"
|
2024-03-02 15:04:45 +01:00
|
|
|
|
2024-09-29 19:37:04 +03:00
|
|
|
if [ ! -f "$FW_FILE" ]; then
|
|
|
|
|
echo "Error: Environment variable FW_FILE doesn't point to a file."
|
|
|
|
|
exit 1
|
|
|
|
|
fi
|
|
|
|
|
|
2025-04-09 14:50:35 +02:00
|
|
|
_REGRESSION_RUN="True"
|
|
|
|
|
export _REGRESSION_RUN
|
|
|
|
|
|
2024-04-16 11:15:55 +02:00
|
|
|
check_test_station_variables
|
|
|
|
|
|
2025-03-27 18:16:43 +01:00
|
|
|
if [ -z "$NO_SETUP" ]; then
|
|
|
|
|
execute_robot "util/basic-platform-setup.robot" "${@}"
|
|
|
|
|
fi
|
|
|
|
|
|
2026-02-04 07:55:00 +01:00
|
|
|
execute_robot "util/test.robot" "${@}"
|
|
|
|
|
execute_robot "util/test2.robot" "${@}"
|
|
|
|
|
execute_robot "util/test3.robot" "${@}"
|