1
0
mirror of https://github.com/Mbed-TLS/mbedtls.git synced 2025-08-01 10:06:53 +03:00

Use quiet make wrappers from all.sh

Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
This commit is contained in:
Dave Rodgman
2024-01-16 17:33:27 +00:00
parent 99fa0d08d3
commit a0b7c08b60

View File

@ -124,6 +124,25 @@ pre_check_environment () {
}
pre_initialize_variables () {
special_options="--list-components|--list-all-components|-h|--help"
if [[ ! "$@" =~ $special_options ]]; then
# skip wrappers for "special options" which don't actually run any tests
# Pick up "quiet" wrappers for make and cmake, which don't output very much
# unless there is an error. This reduces logging overhead in the CI.
#
# Note that the cmake wrapper breaks unless we use an absolute path here.
export PATH=${PWD}/tests/scripts/quiet:$PATH
if [[ ! -x ${PWD}/tests/scripts/quiet/make ]]; then
echo "can't find quiet/make"
exit 1
fi
if [[ ! -x ${PWD}/tests/scripts/quiet/cmake ]]; then
echo "can't find quiet/cmake"
exit 1
fi
fi
CONFIG_H='include/mbedtls/config.h'
CRYPTO_CONFIG_H='include/psa/crypto_config.h'
@ -3730,7 +3749,7 @@ run_component () {
# Preliminary setup
pre_check_environment
pre_initialize_variables
pre_initialize_variables "$@"
pre_parse_command_line "$@"
pre_check_git