Skip to content

Commit

Permalink
ssl-tests-nss-client.sh: skip on unsupported systems
Browse files Browse the repository at this point in the history
  • Loading branch information
zzambers committed Aug 23, 2023
1 parent 20951ba commit 659bc72
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions jtreg-wrappers/ssl-tests-nss-client.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,17 @@
set -eu
rm -rf build

if grep -q 'Alpine' /etc/os-release > /dev/null 2>&1 ; then
echo "Skipping on Alpine, as it does not have required NSS tools"
exit 0
if ! type tstclnt > /dev/null 2>&1 \
&& ! [ -e "/usr/lib64/nss/unsupported-tools/tstclnt" ] \
&& ! [ -e "/usr/lib/nss/unsupported-tools/tstclnt" ] ; then
if grep -Eiq 'Fedora|Red Hat|Ubuntu' /etc/os-release > /dev/null 2>&1 ; then
# Error on system, where it should be available
echo "Error: Missing tstclnt tool, please install NSS tools"
exit 1
else
echo "Skipping, required tstclnt tool not found"
exit 0
fi
fi

if ! type listsuites > /dev/null 2>&1 \
Expand Down

0 comments on commit 659bc72

Please sign in to comment.