aboutsummaryrefslogtreecommitdiff
path: root/src/testing/util.c
Commit message (Collapse)AuthorAge
* logging: better debug & test logsGarrett D'Amore2024-11-04
| | | | | | Don't emit the log for date change unless we are in debug mode. Emit a newline when starting a new NUTS test. Change the default log level - it was too noisy.
* Update acutest.h.Garrett D'Amore2024-11-03
| | | | | | This includes creating acutest_message_color_, as we need that for our colorized logging. We also used // clang-format off for the file, to preserve the original formatting.
* Logging improvements (#1816)Garrett D'Amore2024-04-21
| | | | | | | | | | | | * Add nng_str_sockaddr to get string representation of socket address. * Added nng_log_get_level() is meant to allow users to obtain the current level and avoid some possibly expensive operations just to collect debugging information when debugging is not in effect. We use a custom logger for NUTS, and this fits within the NUTS test framework well, so that if -v is supplied we get more content. All tests now get this by default.
* New NUTS test framework (NNG Unit Test Support).Garrett D'Amore2020-11-23
This is based on testutil/acutest, but is cleaner and fixes some short-comings. We will be adding more support for additional common paradigms to better facilitate transport tests. While here we added some more test cases, and fixed a possible symbol collision in the the stats framework (due to Linux use of a macro definition of "si_value" in a standard OS header). Test coverage may regress slightly as we are no longer using some of the legacy APIs.