You've already forked open-source-firmware-validation
mirror of
https://github.com/Dasharo/open-source-firmware-validation.git
synced 2026-03-06 14:51:55 -08:00
* add git-cliff and reuse Files that do not support comments or that have problems adding comments at the first line should have a separate .license file or a rule inside REUSE.toml (in case there are a lot of such files). .robot files generally support comments at the first line, but robotidy does not want comments to start at first line. It wants so, that everything that is located before first section should be placed inside "Comments" section. But reuse does not support license headers in any sections. So reuse and robotidy have a conflict here. Because there are a lot of .robot files, I have decided to add them into REUSE.toml instead of separate .license files or robotidy exceptions. Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com> * add LICENSES and license headers to files Files that does not have license headers have either .license file or a rule inside REUSE.toml. Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com> * .github: ISSUE_TEMPLATE: fix markdownlint Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com> * README: add git-cliff and reuse Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com> --------- Signed-off-by: Daniil Klimuk <daniil.klimuk@3mdeb.com>
35 lines
1008 B
Bash
Executable File
35 lines
1008 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# SPDX-FileCopyrightText: 2024 3mdeb <contact@3mdeb.com>
|
|
#
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|
source "${SCRIPT_DIR}/lib/robot.sh"
|
|
|
|
print_help() {
|
|
echo "Usage: $0 (test_file | directory_path)... [-- arbitrary robot args...]"
|
|
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
|
|
|
|
execute_robot "$@"
|