0
0
mirror of https://github.com/OpenVPN/openvpn3.git synced 2024-09-20 12:12:15 +02:00
openvpn3/test/unittests
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
..
comp-testdata Move compression unit test from common to core repository 2019-04-15 17:05:09 +02:00
CMakeLists.txt tests: Added unit test for linux/cputime.hpp 2019-06-03 19:05:34 +02:00
core_tests.cpp Add unit tests for route emulation and establish common test suite 2019-03-12 11:36:29 +01:00
README-comp.txt Convert unit test to Googletest 2019-04-15 17:23:37 +02:00
test_b64.cpp Fix base64 unit test with mbedtls and windows 2019-04-18 14:47:16 +02:00
test_common.h Add unit tests for route emulation and establish common test suite 2019-03-12 11:36:29 +01:00
test_comp.cpp Convert unit test to Googletest 2019-04-15 17:23:37 +02:00
test_cpu_time.cpp tests: Added unit test for linux/cputime.hpp 2019-06-03 19:05:34 +02:00
test_log.cpp Add unit tests for route emulation and establish common test suite 2019-03-12 11:36:29 +01:00
test_route_emulation.cpp Add unit tests for route emulation and establish common test suite 2019-03-12 11:36:29 +01:00
test_sitnl.cpp test_sitnl.cpp: account for old iptools output 2019-05-14 16:32:03 +03:00
unittests.vcxproj Wintun: experimental support 2019-05-29 20:21:28 +03:00
unittests.vcxproj.filters Integrate Google Test framework 2017-09-27 16:16:18 +08:00