diff --git a/tests/scripts/all.sh b/tests/scripts/all.sh index 2f891f779..d5c6ddc2a 100755 --- a/tests/scripts/all.sh +++ b/tests/scripts/all.sh @@ -94,6 +94,7 @@ pre_initialize_variables () { CONFIG_H='include/mbedtls/config.h' CONFIG_BAK="$CONFIG_H.bak" + COMPONENTS= MEMORY=0 FORCE=0 KEEP_GOING=0 @@ -126,8 +127,12 @@ pre_initialize_variables () { usage() { cat <&2 "Unknown option: $1" echo >&2 "Run $0 --help for usage." exit 120 ;; + *) + COMPONENTS="$COMPONENTS $1";; esac shift done + + if [ -z "$COMPONENTS" ]; then + COMPONENTS="$ALL_COMPONENTS" + fi } pre_check_git () { @@ -999,7 +1010,7 @@ pre_check_tools cleanup # Run all the test components. -for component in $ALL_COMPONENTS; do +for component in $COMPONENTS; do run_component "component_$component" done