0
0
mirror of https://github.com/OpenVPN/openvpn3.git synced 2024-09-20 12:12:15 +02:00
openvpn3/test
David Sommerseth a55fe2b554
tests: Added unit test for linux/cputime.hpp
This test attempts to assure that the measurements we get from
openvpn::cpu_time() is within a reasonable range of what we should
normally expect.

This is achieved by using a simple worker thread which ensures the
process is not "idling" (like it would with sleep()) but in a real busy
loop which takes some time.  Then we measure the time spent in the busy
loop, both using a simplistic time() and comparing that with what
cpu_time() returns.

This unit test also supports measuring multiple running threads
individually too.

Signed-off-by: David Sommerseth <davids@openvpn.net>
2019-06-03 19:05:34 +02:00
..
ovpncli Wintun: experimental support 2019-05-29 20:21:28 +03:00
ssl tls-crypt-v2: implement abstract metadata parser 2018-12-06 09:19:22 +10:00
unittests tests: Added unit test for linux/cputime.hpp 2019-06-03 19:05:34 +02:00
unused [OVPN3-140] Update company names in copyrights 2017-12-22 17:59:39 +08:00