mirror of
https://github.com/Mbed-TLS/mbedtls.git
synced 2025-01-03 23:43:40 +00:00
Add compat.sh ARIA run to all.sh
Warning: needs OpenSSL >= 1.1.1-pre1 installed and environment variable OPENSSL_NEXT pointing to it.
This commit is contained in:
parent
bba64067bf
commit
6b3689237d
@ -81,6 +81,11 @@ if [ -n "${OPENSSL_LEGACY+set}" ]; then
|
|||||||
echo
|
echo
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if [ -n "${OPENSSL_NEXT+set}" ]; then
|
||||||
|
print_version "$OPENSSL_NEXT" "version" "openssl next version not found!"
|
||||||
|
echo
|
||||||
|
fi
|
||||||
|
|
||||||
: ${GNUTLS_CLI:=gnutls-cli}
|
: ${GNUTLS_CLI:=gnutls-cli}
|
||||||
print_version "$GNUTLS_CLI" "--version" "gnuTLS client not found!" "head -n 1"
|
print_version "$GNUTLS_CLI" "--version" "gnuTLS client not found!" "head -n 1"
|
||||||
echo
|
echo
|
||||||
|
@ -101,6 +101,7 @@ YOTTA=1
|
|||||||
# Default commands, can be overriden by the environment
|
# Default commands, can be overriden by the environment
|
||||||
: ${OPENSSL:="openssl"}
|
: ${OPENSSL:="openssl"}
|
||||||
: ${OPENSSL_LEGACY:="$OPENSSL"}
|
: ${OPENSSL_LEGACY:="$OPENSSL"}
|
||||||
|
: ${OPENSSL_NEXT:="$OPENSSL"}
|
||||||
: ${GNUTLS_CLI:="gnutls-cli"}
|
: ${GNUTLS_CLI:="gnutls-cli"}
|
||||||
: ${GNUTLS_SERV:="gnutls-serv"}
|
: ${GNUTLS_SERV:="gnutls-serv"}
|
||||||
: ${GNUTLS_LEGACY_CLI:="$GNUTLS_CLI"}
|
: ${GNUTLS_LEGACY_CLI:="$GNUTLS_CLI"}
|
||||||
@ -141,6 +142,7 @@ Tool path options:
|
|||||||
--gnutls-legacy-serv=<GnuTLS_serv_path> GnuTLS server 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=<OpenSSL_path> OpenSSL executable to use for most tests.
|
||||||
--openssl-legacy=<OpenSSL_path> OpenSSL executable to use for legacy tests e.g. SSLv3.
|
--openssl-legacy=<OpenSSL_path> OpenSSL executable to use for legacy tests e.g. SSLv3.
|
||||||
|
--openssl-next=<OpenSSL_path> OpenSSL executable to use for recent things like ARIA
|
||||||
EOF
|
EOF
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -268,6 +270,10 @@ while [ $# -gt 0 ]; do
|
|||||||
shift
|
shift
|
||||||
OPENSSL_LEGACY="$1"
|
OPENSSL_LEGACY="$1"
|
||||||
;;
|
;;
|
||||||
|
--openssl-next)
|
||||||
|
shift
|
||||||
|
OPENSSL_NEXT="$1"
|
||||||
|
;;
|
||||||
--out-of-source-dir)
|
--out-of-source-dir)
|
||||||
shift
|
shift
|
||||||
OUT_OF_SOURCE_DIR="$1"
|
OUT_OF_SOURCE_DIR="$1"
|
||||||
@ -397,6 +403,7 @@ echo "FORCE: $FORCE"
|
|||||||
echo "SEED: ${SEED-"UNSET"}"
|
echo "SEED: ${SEED-"UNSET"}"
|
||||||
echo "OPENSSL: $OPENSSL"
|
echo "OPENSSL: $OPENSSL"
|
||||||
echo "OPENSSL_LEGACY: $OPENSSL_LEGACY"
|
echo "OPENSSL_LEGACY: $OPENSSL_LEGACY"
|
||||||
|
echo "OPENSSL_NEXT: $OPENSSL_NEXT"
|
||||||
echo "GNUTLS_CLI: $GNUTLS_CLI"
|
echo "GNUTLS_CLI: $GNUTLS_CLI"
|
||||||
echo "GNUTLS_SERV: $GNUTLS_SERV"
|
echo "GNUTLS_SERV: $GNUTLS_SERV"
|
||||||
echo "GNUTLS_LEGACY_CLI: $GNUTLS_LEGACY_CLI"
|
echo "GNUTLS_LEGACY_CLI: $GNUTLS_LEGACY_CLI"
|
||||||
@ -419,7 +426,8 @@ export GNUTLS_SERV="$GNUTLS_SERV"
|
|||||||
[ ! -z ${SEED+set} ] && export SEED
|
[ ! -z ${SEED+set} ] && export SEED
|
||||||
|
|
||||||
# Make sure the tools we need are available.
|
# Make sure the tools we need are available.
|
||||||
check_tools "$OPENSSL" "$OPENSSL_LEGACY" "$GNUTLS_CLI" "$GNUTLS_SERV" \
|
check_tools "$OPENSSL" "$OPENSSL_LEGACY" "$OPENSSL_NEXT" \
|
||||||
|
"$GNUTLS_CLI" "$GNUTLS_SERV" \
|
||||||
"$GNUTLS_LEGACY_CLI" "$GNUTLS_LEGACY_SERV" "doxygen" "dot" \
|
"$GNUTLS_LEGACY_CLI" "$GNUTLS_LEGACY_SERV" "doxygen" "dot" \
|
||||||
"arm-none-eabi-gcc" "i686-w64-mingw32-gcc"
|
"arm-none-eabi-gcc" "i686-w64-mingw32-gcc"
|
||||||
if [ $RUN_ARMCC -ne 0 ]; then
|
if [ $RUN_ARMCC -ne 0 ]; then
|
||||||
@ -547,6 +555,9 @@ if_build_succeeded tests/ssl-opt.sh -f Default
|
|||||||
msg "test: compat.sh RC4, DES & NULL (full config)" # ~ 2 min
|
msg "test: compat.sh RC4, DES & NULL (full config)" # ~ 2 min
|
||||||
if_build_succeeded env OPENSSL_CMD="$OPENSSL_LEGACY" GNUTLS_CLI="$GNUTLS_LEGACY_CLI" GNUTLS_SERV="$GNUTLS_LEGACY_SERV" tests/compat.sh -e '3DES\|DES-CBC3' -f 'NULL\|DES\|RC4\|ARCFOUR'
|
if_build_succeeded env OPENSSL_CMD="$OPENSSL_LEGACY" GNUTLS_CLI="$GNUTLS_LEGACY_CLI" GNUTLS_SERV="$GNUTLS_LEGACY_SERV" tests/compat.sh -e '3DES\|DES-CBC3' -f 'NULL\|DES\|RC4\|ARCFOUR'
|
||||||
|
|
||||||
|
msg "test: compat.sh ARIA"
|
||||||
|
if_build_succeeded env OPENSSL_CMD="$OPENSSL_NEXT" tests/compat.sh -e '^$' -f 'ARIA'
|
||||||
|
|
||||||
msg "test/build: curves.pl (gcc)" # ~ 4 min
|
msg "test/build: curves.pl (gcc)" # ~ 4 min
|
||||||
cleanup
|
cleanup
|
||||||
cmake -D CMAKE_BUILD_TYPE:String=Debug .
|
cmake -D CMAKE_BUILD_TYPE:String=Debug .
|
||||||
|
Loading…
Reference in New Issue
Block a user