mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-07-29 11:41:15 +03:00
ssl-opt.sh: support to parse --outcome-file
Adjust where to set absolute path for MBEDTLS_TEST_OUTCOME_FILE as it's supposed to set its absolute path after all possible value assignment. Signed-off-by: Yanray Wang <yanray.wang@arm.com>
This commit is contained in:
@ -177,6 +177,9 @@ get_options() {
|
|||||||
-p|--preserve-logs)
|
-p|--preserve-logs)
|
||||||
PRESERVE_LOGS=1
|
PRESERVE_LOGS=1
|
||||||
;;
|
;;
|
||||||
|
--outcome-file)
|
||||||
|
shift; MBEDTLS_TEST_OUTCOME_FILE=$1
|
||||||
|
;;
|
||||||
--port)
|
--port)
|
||||||
shift; SRV_PORT=$1
|
shift; SRV_PORT=$1
|
||||||
;;
|
;;
|
||||||
@ -200,14 +203,6 @@ get_options() {
|
|||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
# Make the outcome file path relative to the original directory, not
|
|
||||||
# to .../tests
|
|
||||||
case "$MBEDTLS_TEST_OUTCOME_FILE" in
|
|
||||||
[!/]*)
|
|
||||||
MBEDTLS_TEST_OUTCOME_FILE="$ORIGINAL_PWD/$MBEDTLS_TEST_OUTCOME_FILE"
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
# Read boolean configuration options from mbedtls_config.h for easy and quick
|
# Read boolean configuration options from mbedtls_config.h for easy and quick
|
||||||
# testing. Skip non-boolean options (with something other than spaces
|
# testing. Skip non-boolean options (with something other than spaces
|
||||||
# and a comment after "#define SYMBOL"). The variable contains a
|
# and a comment after "#define SYMBOL"). The variable contains a
|
||||||
@ -1599,6 +1594,14 @@ cleanup() {
|
|||||||
|
|
||||||
get_options "$@"
|
get_options "$@"
|
||||||
|
|
||||||
|
# Make the outcome file path relative to the original directory, not
|
||||||
|
# to .../tests
|
||||||
|
case "$MBEDTLS_TEST_OUTCOME_FILE" in
|
||||||
|
[!/]*)
|
||||||
|
MBEDTLS_TEST_OUTCOME_FILE="$ORIGINAL_PWD/$MBEDTLS_TEST_OUTCOME_FILE"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
populate_enabled_hash_algs
|
populate_enabled_hash_algs
|
||||||
|
|
||||||
# Optimize filters: if $FILTER and $EXCLUDE can be expressed as shell
|
# Optimize filters: if $FILTER and $EXCLUDE can be expressed as shell
|
||||||
|
Reference in New Issue
Block a user