Files
chrony/test/simulation
Thomas Kupper d622b222a9 chronyc: add wider output option
Add option '-w' which set the output width from 80 to 94. This allows
for all table-outputting operations to display IPv4 and IPv6 addresses
aligned with the headers.

Extend test/simulation/110-chronyc to test for the five commands which
support wide mode.

To set wide display, call `chronyc` with option `-w`.

Example of a `clients` list before and after:

chronyc -n clients -p 5
Hostname                      NTP   Drop Int IntL Last     Cmd   Drop Int  Last
===============================================================================
2001:db8:1234:5678:90ab:cdef:1234:5678     952      0   7   -    75       0      0   -     -
192.168.1.1                     0      0   -   -     -       0      0   -     -

chronyc -n -w clients -p 5
Hostname                                    NTP   Drop Int IntL Last     Cmd   Drop Int  Last
=============================================================================================
2001:db8:1234:5678:90ab:cdef:1234:5678      952      0   7   -    75       0      0   -     -
192.168.1.1                                   0      0   -   -     -       0      0   -     -
2026-02-26 15:31:21 +01:00
..
2025-04-30 15:00:24 +02:00
2026-02-26 15:31:21 +01:00
2024-06-04 16:25:55 +02:00
2021-04-22 10:20:31 +02:00
2022-05-19 08:23:05 +02:00
2023-06-15 14:23:47 +02:00
2025-05-27 10:56:11 +02:00
2021-04-15 15:17:13 +02:00
2021-09-23 14:48:59 +02:00
2023-04-13 16:22:50 +02:00
2023-04-18 11:39:27 +02:00
2025-06-03 13:28:46 +02:00
2025-08-26 12:34:22 +02:00
2021-03-04 12:36:36 +01:00
2025-06-03 13:28:46 +02:00

This is a collection of simulation tests using the clknetsim simulator
(supported on Linux only).

https://gitlab.com/chrony/clknetsim

The CLKNETSIM_PATH environment variable should point to the directory where
clknetsim was downloaded and compiled. If the variable is not set, the tests
will look for clknetsim in ./clknetsim in the current directory.

The tests are written in bash and they can be run directly. The ./run script
runs all tests.