From 99c3d2aa3dc8777650700f39403c2da8ba67b8f6 Mon Sep 17 00:00:00 2001 From: Ondrej Mejzlik Date: Wed, 12 Jun 2024 14:20:54 +0200 Subject: [PATCH] test options --- Sanity/basic-sanity/runtest.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Sanity/basic-sanity/runtest.sh b/Sanity/basic-sanity/runtest.sh index ab1b486..81f389f 100755 --- a/Sanity/basic-sanity/runtest.sh +++ b/Sanity/basic-sanity/runtest.sh @@ -41,6 +41,12 @@ rlJournalStart rlGetTestState && { rlPhaseStartTest rlRun "ntpstat" 0 "ntpstat runs" + rlRun "ntpstat | grep 'synchronised'" 0 "ntpstat displays sync message" + rlRun "ntpstat | grep 'correct'" 0 "ntpstat shows some relevant info" + rlRun "ntpstat | grep 'polling'" 0 "ntpstat shows some relevant info" + rlRun "ntpstat -h" 0 "help message works" + rlRun "ntpstat -m 0 | grep 'exceeded maximum'" 0 "ntpstat honors -m option" + rlRun "ntpstat -m 1000 | grep 'exceeded maximum'" 1 "ntpstat honors -m option" rlPhaseEnd }