test options

This commit is contained in:
Ondrej Mejzlik 2024-06-12 14:20:54 +02:00
commit 99c3d2aa3d

View file

@ -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
}