Skip to content

Commit

Permalink
tlsfuzzer.sh: Make it more informative on errors
Browse files Browse the repository at this point in the history
  • Loading branch information
t8m committed Jan 18, 2024
1 parent ae5587d commit f1eb85e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/recipes/95-test_external_tlsfuzzer_data/tlsfuzzer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# OpenSSL external testing using the TLSFuzzer test suite
#
set -e
set -x

PWD="$(pwd)"

Expand All @@ -31,12 +32,13 @@ export PATH="$O_EXE:$PATH"
export LD_LIBRARY_PATH="$O_LIB:$LD_LIBRARY_PATH"
export OPENSSL_ROOT_DIR="$O_LIB"

# Check/Set openssl version
OPENSSL_VERSION=$(${O_EXE}/openssl version | cut -f 2 -d ' ')

CLI="${O_EXE}/openssl"
SERV="${O_EXE}/openssl"

# Check/Set openssl version
OPENSSL_VERSION=$($CLI version | cut -f 2 -d ' ')

TMPFILE="${PWD}/tls-fuzzer.$$.tmp"
PSKFILE="${PWD}/tls-fuzzer.psk.$$.tmp"

Expand All @@ -51,6 +53,7 @@ echo " BLDTOP: $BLDTOP"
echo " OPENSSL_ROOT_DIR: $OPENSSL_ROOT_DIR"
echo " Python: $PYTHON"
echo " TESTDATADIR: $TESTDATADIR"
echo " OPENSSL_VERSION: $OPENSSL_VERSION"
echo "------------------------------------------------------------------"

cd "${SRCTOP}/tlsfuzzer"
Expand Down

0 comments on commit f1eb85e

Please sign in to comment.