From 8c05298f628d6053886784e59e6f55a9888684fb Mon Sep 17 00:00:00 2001 From: Richard T Bonhomme Date: Fri, 13 May 2022 14:14:58 +0100 Subject: [PATCH] Add option '-p' to test '--passin' and '--passout' Signed-off-by: Richard T Bonhomme --- op-test.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/op-test.sh b/op-test.sh index ffea324a7..96d88fcf1 100644 --- a/op-test.sh +++ b/op-test.sh @@ -109,11 +109,11 @@ run_unit_test () [ "$no_delete" ] && export SAVE_PKI=1 if [ "${dry_run}" ]; then - log "<> sh ${utest_bin} ${verb}" + log "<> sh ${utest_bin} ${verb} $use_passwords" estat=1 else log ">>>>>>: sh ${utest_bin} ${verb}" - if sh "${utest_bin}" "${verb}"; then + if sh "${utest_bin}" "${verb}" "$use_passwords"; then log "OK" estat=0 else @@ -340,6 +340,7 @@ while [ -n "$1" ]; do -vv) verb='-vv' ;; -sc) enable_shellcheck=1 ;; -o3) enable_openssl3=1 ;; + -p) use_passwords='-p' ;; -dr) dry_run=1 ;; -nt|--no-test) unset -v enable_unit_test ;; -nc|--no-curl) unset -v enable_curl ;;