Files

35 lines
1008 B
Bash
Raw Permalink Normal View History

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:17:57 +02:00
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
2024-03-02 15:04:45 +01:00
source "${SCRIPT_DIR}/lib/robot.sh"
print_help() {
echo "Usage: $0 (test_file | directory_path)... [-- arbitrary robot args...]"
2024-03-02 15:04:45 +01:00
echo
echo "This script is used to execute OSFV Robot Framework tests."
echo "You can specify either a single test or a whole directory of tests."
echo
echo "It expects at least RTE_IP and CONFIG environmental variables to be set"
echo
echo "The logs will be saved under logs directory, sorted by platform and date."
echo "to ensure they are not overwritten by further invocations."
echo
echo "Examples:"
echo " Execute a single test:"
echo " $0 dasharo-compatibility/custom-boot-menu-key.robot"
echo " Execute a whole set of tests:"
echo " $0 dasharo-compatibility"
echo
}
if [ "$#" -eq 0 ] || [ ! -e "$1" ]; then
print_help
exit 1
fi
2024-07-19 14:12:32 +02:00
execute_robot "$@"