test: always write packet log
This commit is contained in:
parent
cea68ebc6f
commit
28876d6afa
3 changed files with 1 additions and 6 deletions
|
@ -7,7 +7,6 @@ test_start "reply to client configured as server"
|
||||||
server_conf="server 192.168.123.2
|
server_conf="server 192.168.123.2
|
||||||
acquisitionport 123"
|
acquisitionport 123"
|
||||||
client_conf="acquisitionport 123"
|
client_conf="acquisitionport 123"
|
||||||
log_packets=1
|
|
||||||
|
|
||||||
run_test || test_fail
|
run_test || test_fail
|
||||||
check_chronyd_exit || test_fail
|
check_chronyd_exit || test_fail
|
||||||
|
|
|
@ -4,8 +4,6 @@
|
||||||
|
|
||||||
test_start "port and acquisitionport directives"
|
test_start "port and acquisitionport directives"
|
||||||
|
|
||||||
log_packets=1
|
|
||||||
|
|
||||||
run_test || test_fail
|
run_test || test_fail
|
||||||
check_chronyd_exit || test_fail
|
check_chronyd_exit || test_fail
|
||||||
check_source_selection || test_fail
|
check_source_selection || test_fail
|
||||||
|
|
|
@ -51,7 +51,6 @@ default_wander=1e-9
|
||||||
default_refclock_jitter=""
|
default_refclock_jitter=""
|
||||||
|
|
||||||
default_update_interval=0
|
default_update_interval=0
|
||||||
default_log_packets=0
|
|
||||||
default_shift_pll=2
|
default_shift_pll=2
|
||||||
|
|
||||||
default_server_strata=1
|
default_server_strata=1
|
||||||
|
@ -351,8 +350,7 @@ run_simulation() {
|
||||||
test_message 2 0 "running simulation:"
|
test_message 2 0 "running simulation:"
|
||||||
|
|
||||||
start_server $nodes \
|
start_server $nodes \
|
||||||
-o tmp/log.offset -f tmp/log.freq \
|
-o tmp/log.offset -f tmp/log.freq -p tmp/log.packets \
|
||||||
$([ $log_packets -ne 0 ] && echo -p tmp/log.packets) \
|
|
||||||
-R $(awk "BEGIN {print $update_interval < 0 ? 2^-($update_interval) : 1}") \
|
-R $(awk "BEGIN {print $update_interval < 0 ? 2^-($update_interval) : 1}") \
|
||||||
-r $(awk "BEGIN {print $max_sync_time * 2^$update_interval}") \
|
-r $(awk "BEGIN {print $max_sync_time * 2^$update_interval}") \
|
||||||
-l $(awk "BEGIN {print $limit * 2^$update_interval}") && test_ok || test_error
|
-l $(awk "BEGIN {print $limit * 2^$update_interval}") && test_ok || test_error
|
||||||
|
|
Loading…
Reference in a new issue