mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-23 04:25:44 +01:00
all.sh: cleaned up usage output
This commit is contained in:
parent
7ad603e662
commit
709346aed8
@ -56,22 +56,28 @@ fi
|
|||||||
|
|
||||||
usage()
|
usage()
|
||||||
{
|
{
|
||||||
printf "Usage: $0\n"
|
cat <<EOF
|
||||||
printf " -h|--help\t\tPrint this help.\n"
|
Usage: $0 [OPTION]...
|
||||||
printf " -m|--memory\t\tAdditional optional memory tests.\n"
|
-h|--help Print this help.
|
||||||
printf " -f|--force\t\tForce the tests to overwrite any modified files.\n"
|
|
||||||
printf " -s|--seed\t\tInteger seed value to use for this test run.\n"
|
General options:
|
||||||
printf " -r|--release-test\t\tRun this script in release mode. This fixes the seed value to 1.\n"
|
-f|--force Force the tests to overwrite any modified files.
|
||||||
printf " --no-yotta\t\tSkip yotta build\n"
|
-m|--memory Additional optional memory tests.
|
||||||
printf " --out-of-source-dir=<path>\t\tDirectory used for CMake out-of-source build tests."
|
--no-yotta Skip yotta build.
|
||||||
printf " --openssl=<OpenSSL_path>\t\tPath to OpenSSL executable to use for most tests.\n"
|
--out-of-source-dir=<path> Directory used for CMake out-of-source build tests.
|
||||||
printf " --openssl-legacy=<OpenSSL_path>\t\tPath to OpenSSL executable to use for legacy tests e.g. SSLv3.\n"
|
-r|--release-test Run this script in release mode. This fixes the seed value to 1.
|
||||||
printf " --gnutls-cli=<GnuTLS_cli_path>\t\tPath to GnuTLS client executable to use for most tests.\n"
|
-s|--seed Integer seed value to use for this test run.
|
||||||
printf " --gnutls-serv=<GnuTLS_serv_path>\t\tPath to GnuTLS server executable to use for most tests.\n"
|
|
||||||
printf " --gnutls-legacy-cli=<GnuTLS_cli_path>\t\tPath to GnuTLS client executable to use for legacy tests.\n"
|
Tool path options:
|
||||||
printf " --gnutls-legacy-serv=<GnuTLS_serv_path>\t\tPath to GnuTLS server executable to use for legacy tests.\n"
|
--armc5-bin-dir=<ARMC5_bin_dir_path> ARM Compiler 5 bin directory.
|
||||||
printf " --armc5-bin-dir=<ARMC5_bin_dir_path>\t\tPath to the ARM Compiler 5 bin directory.\n"
|
--armc6-bin-dir=<ARMC6_bin_dir_path> ARM Compiler 6 bin directory.
|
||||||
printf " --armc6-bin-dir=<ARMC6_bin_dir_path>\t\tPath to the ARM Compiler 6 bin directory.\n"
|
--gnutls-cli=<GnuTLS_cli_path> GnuTLS client executable to use for most tests.
|
||||||
|
--gnutls-serv=<GnuTLS_serv_path> GnuTLS server executable to use for most tests.
|
||||||
|
--gnutls-legacy-cli=<GnuTLS_cli_path> GnuTLS client executable to use for legacy tests.
|
||||||
|
--gnutls-legacy-serv=<GnuTLS_serv_path> GnuTLS server executable to use for legacy tests.
|
||||||
|
--openssl=<OpenSSL_path> OpenSSL executable to use for most tests.
|
||||||
|
--openssl-legacy=<OpenSSL_path> OpenSSL executable to use for legacy tests e.g. SSLv3.
|
||||||
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
# remove built files as well as the cmake cache/config
|
# remove built files as well as the cmake cache/config
|
||||||
@ -127,42 +133,21 @@ check_tools()
|
|||||||
|
|
||||||
while [ $# -gt 0 ]; do
|
while [ $# -gt 0 ]; do
|
||||||
case "$1" in
|
case "$1" in
|
||||||
--memory|-m*)
|
--armc5-bin-dir)
|
||||||
MEMORY=${1#-m}
|
shift
|
||||||
|
ARMC5_BIN_DIR="$1"
|
||||||
|
;;
|
||||||
|
--armc6-bin-dir)
|
||||||
|
shift
|
||||||
|
ARMC6_BIN_DIR="$1"
|
||||||
;;
|
;;
|
||||||
--force|-f)
|
--force|-f)
|
||||||
FORCE=1
|
FORCE=1
|
||||||
;;
|
;;
|
||||||
--seed|-s)
|
|
||||||
shift
|
|
||||||
SEED="$1"
|
|
||||||
;;
|
|
||||||
--release-test|-r)
|
|
||||||
RELEASE=1
|
|
||||||
;;
|
|
||||||
--no-yotta)
|
|
||||||
YOTTA=0
|
|
||||||
;;
|
|
||||||
--out-of-source-dir)
|
|
||||||
shift
|
|
||||||
OUT_OF_SOURCE_DIR="$1"
|
|
||||||
;;
|
|
||||||
--openssl)
|
|
||||||
shift
|
|
||||||
OPENSSL="$1"
|
|
||||||
;;
|
|
||||||
--openssl-legacy)
|
|
||||||
shift
|
|
||||||
OPENSSL_LEGACY="$1"
|
|
||||||
;;
|
|
||||||
--gnutls-cli)
|
--gnutls-cli)
|
||||||
shift
|
shift
|
||||||
GNUTLS_CLI="$1"
|
GNUTLS_CLI="$1"
|
||||||
;;
|
;;
|
||||||
--gnutls-serv)
|
|
||||||
shift
|
|
||||||
GNUTLS_SERV="$1"
|
|
||||||
;;
|
|
||||||
--gnutls-legacy-cli)
|
--gnutls-legacy-cli)
|
||||||
shift
|
shift
|
||||||
GNUTLS_LEGACY_CLI="$1"
|
GNUTLS_LEGACY_CLI="$1"
|
||||||
@ -171,17 +156,43 @@ while [ $# -gt 0 ]; do
|
|||||||
shift
|
shift
|
||||||
GNUTLS_LEGACY_SERV="$1"
|
GNUTLS_LEGACY_SERV="$1"
|
||||||
;;
|
;;
|
||||||
--armc5-bin-dir)
|
--gnutls-serv)
|
||||||
shift
|
shift
|
||||||
ARMC5_BIN_DIR="$1"
|
GNUTLS_SERV="$1"
|
||||||
;;
|
;;
|
||||||
--armc6-bin-dir)
|
--help|-h)
|
||||||
shift
|
|
||||||
ARMC6_BIN_DIR="$1"
|
|
||||||
;;
|
|
||||||
--help|-h|*)
|
|
||||||
usage
|
usage
|
||||||
exit 1
|
exit
|
||||||
|
;;
|
||||||
|
--memory|-m)
|
||||||
|
MEMORY=1
|
||||||
|
;;
|
||||||
|
--no-yotta)
|
||||||
|
YOTTA=0
|
||||||
|
;;
|
||||||
|
--openssl)
|
||||||
|
shift
|
||||||
|
OPENSSL="$1"
|
||||||
|
;;
|
||||||
|
--openssl-legacy)
|
||||||
|
shift
|
||||||
|
OPENSSL_LEGACY="$1"
|
||||||
|
;;
|
||||||
|
--out-of-source-dir)
|
||||||
|
shift
|
||||||
|
OUT_OF_SOURCE_DIR="$1"
|
||||||
|
;;
|
||||||
|
--release-test|-r)
|
||||||
|
RELEASE=1
|
||||||
|
;;
|
||||||
|
--seed|-s)
|
||||||
|
shift
|
||||||
|
SEED="$1"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
echo >&2 "Unknown option: $1"
|
||||||
|
echo >&2 "Run $0 --help for usage."
|
||||||
|
exit 120
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
shift
|
shift
|
||||||
|
Loading…
Reference in New Issue
Block a user