Skip to content

Commit

Permalink
Add option '-p' to test '--passin' and '--passout'
Browse files Browse the repository at this point in the history
Signed-off-by: Richard T Bonhomme <[email protected]>
  • Loading branch information
TinCanTech committed May 13, 2022
1 parent e7a5d32 commit 8c05298
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions op-test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,11 @@ run_unit_test ()
[ "$no_delete" ] && export SAVE_PKI=1

if [ "${dry_run}" ]; then
log "<<dry-run>> sh ${utest_bin} ${verb}"
log "<<dry-run>> 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
Expand Down Expand Up @@ -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 ;;
Expand Down

0 comments on commit 8c05298

Please sign in to comment.