haproxy/tests/unit
Willy Tarreau 048f1689d1 TESTS: add a unit test for the multi-byte range checks
The test scans the whole number space in 32 bits and compares the different
functions with the reference that does one byte at a time. In 64-bit mode,
it picks 2^32 64-bit random numbers and tests that they the 64-bit functions
all produce the expected results when submitted such numbers.

It optionally takes an initial offset and step so that it can run on
multiple cores (or even machines), though the test is reasonably fast
on modern machines, around 10s per core.
2024-04-24 16:05:38 +02:00
..
ist.c TESTS: slightly reorganize the code in the tests/ directory 2021-04-02 10:51:12 +02:00
test-1-among.c TESTS: add a unit test for one_among_mask() 2022-06-21 20:29:57 +02:00
test-arg.c TESTS: slightly reorganize the code in the tests/ directory 2021-04-02 10:51:12 +02:00
test-inherited-fd.py TESTS: slightly reorganize the code in the tests/ directory 2021-04-02 10:51:12 +02:00
test-int-range.c TESTS: add a unit test for the multi-byte range checks 2024-04-24 16:05:38 +02:00
test-list.c Revert "MAJOR: import: update mt_list to support exponential back-off" 2023-09-15 17:13:43 +02:00
test-sockpair.py TESTS: slightly reorganize the code in the tests/ directory 2021-04-02 10:51:12 +02:00