"Fossies" - the Fresh Open Source Software Archive

Member "chrony-3.5/test/simulation/135-ratelimit" (10 May 2019, 424 Bytes) of package /linux/misc/chrony-3.5.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Bash source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 #!/bin/bash
    2 
    3 . ./test.common
    4 test_start "ratelimit directive"
    5 
    6 server_conf="ratelimit interval 6 burst 2 leak 4"
    7 client_server_options="minpoll 3 maxpoll 3"
    8 min_sync_time=16
    9 
   10 run_test || test_fail
   11 check_chronyd_exit || test_fail
   12 check_packet_interval || test_fail
   13 check_sync || test_fail
   14 
   15 check_file_messages "   2   1   " 1200 1300 log.packets || test_fail
   16 check_file_messages "   1   2   " 180 220 log.packets || test_fail
   17 
   18 test_pass