From 9a306403274c02d95119574f54a1f5e0519345a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20Boraty=C5=84ski?= Date: Sat, 5 Dec 2015 20:52:26 +0100 Subject: [PATCH] [SSH-7408]: Implemented '<' test type. --- include/tests_ssh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/include/tests_ssh b/include/tests_ssh index 82a5d388..02e4a386 100644 --- a/include/tests_ssh +++ b/include/tests_ssh @@ -135,6 +135,17 @@ else RESULT="UNKNOWN" fi + + elif [ "${TESTTYPE}" = "<" ]; then + if [ "${FOUNDVALUE}" -ge "${WEAKVALUE}" ]; then + RESULT="WEAK" + elif [ "${FOUNDVALUE}" -ge "${MEDIUMSCOREDVALUE}" -o "${FOUNDVALUE}" -le "${MEDIUMSCOREDVALUE}" ]; then + RESULT="MIDSCORED" + elif [ "${FOUNDVALUE}" -le "${EXPECTEDVALUE}" ]; then + RESULT="GOOD" + else + RESULT="UNKNOWN" + fi else RESULT="NONE" fi