Skip to content

Commit

Permalink
tests: added skipped test for zlib if openssl version is 3.0.*
Browse files Browse the repository at this point in the history
  • Loading branch information
fatimazq committed Dec 25, 2023
1 parent 5e5b84e commit b878823
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/encryption.test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,12 @@ MODE_ENC=("aes-128-cbc" "aes-192-cbc" "aes-256-cbc" "aes-128-cbc_base64" "aes-19
"ccrypt" "des-ede" "des-ede3" "des-ede-cbc" "des-ede3-cbc" "gcrypt" "zlib")

for ((i=0;i<${#MODE_ENC[@]};i++)); do
# Skip test for using zlib mode if openssl is version 3.0.*
if openssl version | grep -i 3.0 >/dev/null 2>&1; then
if echo "${MODE_ENC[i]}" | grep -i zlib >/dev/null 2>&1; then
continue
fi
fi
cat <<'EOF' > file/example-${MODE_ENC[i]}.sh
#!/bin/bash
echo "Hello world!"
Expand Down

0 comments on commit b878823

Please sign in to comment.