Blame test/simulation/003-largefreqoffset
|
Packit Service |
623930 |
#!/bin/bash
|
|
Packit Service |
623930 |
|
|
Packit Service |
623930 |
. ./test.common
|
|
Packit Service |
623930 |
|
|
Packit Service |
623930 |
test_start "large frequency offset"
|
|
Packit Service |
623930 |
|
|
Packit Service |
623930 |
max_sync_time=1000
|
|
Packit Service |
623930 |
|
|
Packit Service |
623930 |
for freq_offset in -5e-2 -5e-3 5e-3 5e-2; do
|
|
Packit Service |
623930 |
# Adjust offset so it's close to 0 on first clock update
|
|
Packit Service |
623930 |
time_offset=$(awk "BEGIN {print -($freq_offset * 130)}")
|
|
Packit Service |
623930 |
run_test || test_fail
|
|
Packit Service |
623930 |
check_chronyd_exit || test_fail
|
|
Packit Service |
623930 |
check_source_selection || test_fail
|
|
Packit Service |
623930 |
check_packet_interval || test_fail
|
|
Packit Service |
623930 |
check_sync || test_fail
|
|
Packit Service |
623930 |
done
|
|
Packit Service |
623930 |
|
|
Packit Service |
623930 |
test_pass
|