Blame test/simulation/115-cmdmontime
|
Packit Service |
623930 |
#!/bin/bash
|
|
Packit Service |
623930 |
|
|
Packit Service |
623930 |
. ./test.common
|
|
Packit Service |
623930 |
|
|
Packit Service |
623930 |
test_start "cmdmon timestamps"
|
|
Packit Service |
623930 |
|
|
Packit Service |
623930 |
# The following tests need 64-bit time_t
|
|
Packit Service |
623930 |
check_config_h 'HAVE_LONG_TIME_T 1' || test_skip
|
|
Packit Service |
623930 |
check_config_h 'FEAT_CMDMON 1' || test_skip
|
|
Packit Service |
623930 |
|
|
Packit Service |
623930 |
limit=2
|
|
Packit Service |
623930 |
client_server_options="noselect"
|
|
Packit Service |
623930 |
client_conf="local stratum 1"
|
|
Packit Service |
623930 |
chronyc_start="1.5"
|
|
Packit Service |
623930 |
chronyc_conf="tracking"
|
|
Packit Service |
623930 |
|
|
Packit Service |
623930 |
for year in `seq 1850 100 2300`; do
|
|
Packit Service |
623930 |
date="Jan 01 00:00:00 $year"
|
|
Packit Service |
623930 |
export CLKNETSIM_START_DATE=$(date -d "$date UTC" +'%s')
|
|
Packit Service |
623930 |
run_test || test_fail
|
|
Packit Service |
623930 |
check_chronyd_exit || test_fail
|
|
Packit Service |
623930 |
check_chronyc_output "^.*Ref time \(UTC\).*$date.*$" || test_fail
|
|
Packit Service |
623930 |
done
|
|
Packit Service |
623930 |
|
|
Packit Service |
623930 |
test_pass
|