Skip to content

Commit

Permalink
Allow saving test data and improve log output
Browse files Browse the repository at this point in the history
Signed-off-by: Richard T Bonhomme <[email protected]>
  • Loading branch information
TinCanTech committed Apr 11, 2022
1 parent 1aeddd9 commit 3e24a76
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions op-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ run_unit_test ()

# Start unit tests
log ">>> BEGIN unit tests:"
[ "$no_delete" ] && export SAVE_PKI=1

if [ "${dry_run}" ]; then
log "<<dry-run>> sh ${utest_bin} ${verb}"
estat=1
Expand All @@ -119,6 +121,7 @@ run_unit_test ()
fi
fi
log "<<< END unit tests:"
unset SAVE_PKI
else
log "unit-test abandoned"
estat=1
Expand Down Expand Up @@ -249,6 +252,8 @@ download_opensslv3 () {
log "version check failed: ${ERSA_UT}/${target_file}"
ssl_bin="${ERSA_UT}/${target_file}"
ssl_bin_ok=1
# Set up Easy-RSA Unit-Test for OpenSSL-v3
export EASYRSA_OPENSSL="${ssl_bin}"
else
# download and basic check
log "curl_it ${target_file}"
Expand All @@ -270,8 +275,7 @@ download_opensslv3 () {
fi
fi

log "setup openssl3 - hey hokey-dokey-lopey"
log "OpenSSL-v3 ENabled"
log "OpenSSL-v3 enabled"

else
if [ "$EASYRSA_NIX" ]; then
Expand Down

0 comments on commit 3e24a76

Please sign in to comment.