mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-11-26 02:55:45 +01:00
ssl-opt.sh: Auto-skip tests that use files if MBEDTLS_FS_IO unset
This should allow to run ssl-opt.sh successfully in the default configuration minus MBEDTLS_PEM_PARSE_C minus MBEDTLS_FS_IO.
This commit is contained in:
parent
72309d0847
commit
7a11e72a4f
@ -553,6 +553,20 @@ run_test() {
|
|||||||
CLI_EXPECT="$3"
|
CLI_EXPECT="$3"
|
||||||
shift 3
|
shift 3
|
||||||
|
|
||||||
|
# Check if test uses files
|
||||||
|
TEST_USES_FILES=$(echo "$SRV_CMD $CLI_CMD" | grep "\.\(key\|crt\|pem\)" )
|
||||||
|
if [ ! -z "$TEST_USES_FILES" ]; then
|
||||||
|
requires_config_enabled MBEDTLS_FS_IO
|
||||||
|
fi
|
||||||
|
|
||||||
|
# should we skip?
|
||||||
|
if [ "X$SKIP_NEXT" = "XYES" ]; then
|
||||||
|
SKIP_NEXT="NO"
|
||||||
|
echo "SKIP"
|
||||||
|
SKIPS=$(( $SKIPS + 1 ))
|
||||||
|
return
|
||||||
|
fi
|
||||||
|
|
||||||
# fix client port
|
# fix client port
|
||||||
if [ -n "$PXY_CMD" ]; then
|
if [ -n "$PXY_CMD" ]; then
|
||||||
CLI_CMD=$( echo "$CLI_CMD" | sed s/+SRV_PORT/$PXY_PORT/g )
|
CLI_CMD=$( echo "$CLI_CMD" | sed s/+SRV_PORT/$PXY_PORT/g )
|
||||||
|
Loading…
Reference in New Issue
Block a user