[SSH-7408]: Implemented '>' test type.

This commit is contained in:
Kamil Boratyński 2015-12-05 21:14:24 +01:00
parent 9a30640327
commit 2e37c17675
1 changed files with 11 additions and 0 deletions

View File

@ -146,6 +146,17 @@
else
RESULT="UNKNOWN"
fi
elif [ "${TESTTYPE}" = ">" ]; then
if [ "${FOUNDVALUE}" -le "${WEAKVALUE}" ]; then
RESULT="WEAK"
elif [ "${FOUNDVALUE}" -le "${WEAKVALUE}" -a "${FOUNDVALUE}" -ge "${MEDIUMSCOREDVALUE}" ]; then
RESULT="MIDSCORED"
elif [ "${FOUNDVALUE}" -ge "${EXPECTEDVALUE}" ]; then
RESULT="GOOD"
else
RESULT="UNKNOWN"
fi
else
RESULT="NONE"
fi