aboutsummaryrefslogtreecommitdiff
path: root/src/testing
Commit message (Collapse)AuthorAge
* Fix typos across docs, comments, and CMakemochalins2025-06-02
|
* Introduce DTLS transport for NNG.Garrett D'Amore2025-06-01
| | | | | | | | | | | | | This introduces a new experimental transport for DTLS, that provides encryption over UDP. It has a simpler protocol than the current UDP SP protocol (but we intend to fix that by making the UDP transport simpler in a follow up!) There are a few other fixes in the TLS layer itself, and in the build, that were needed to accomplish this work. Also there was an endianness bug in the UDP protocol handling, which is fixed here.
* tests: start using nng_err in NUTSGarrett D'Amore2025-01-12
|
* http: server error handling improvements and testsGarrett D'Amore2025-01-12
| | | | | | | We want to consume the request properly on an error, so that we can give a reasonable response. We were prematurely closing the connection for certain failure modes. We still have to fix overly long URIs and headers, but thats next!
* tests: make NUTS_PASS use TEST_ASSERTGarrett D'Amore2025-01-04
| | | | | This will ensure that we fast fail if a test cannot complete, rather than muddling on and reporting failures elsewhere.
* api: fold TLS supplemental headers into nng.hGarrett D'Amore2025-01-04
|
* protocols: move content from the protocols to nng.hGarrett D'Amore2025-01-01
| | | | | This should simplify things for developers. Just one header to include in most cases now.
* tests: use zero port for performance testGarrett D'Amore2024-12-31
| | | | This is another occasional test failure due to EADDRINUSE that we can avoid.
* socket: rename nng_close to nng_socket_closeGarrett D'Amore2024-12-31
|
* aio: nng_aio_defer replaced by nng_aio_startGarrett D'Amore2024-12-26
| | | | | This represents an API change, and we remove the nng_aio_begin function as well, introducing the lightweight nng_aio_reset instead.
* nuts: add 20 millisecond delay before nng_finiGarrett D'Amore2024-12-21
| | | | | | This is to allow finalizers to run for the HTTP framework. This is a bug workaround for now, and should be fixed in the HTTP framework later by using reference counts correctly.
* nuts: try to avoid address in use for most testsGarrett D'Amore2024-12-07
| | | | | | We get test failures somewhat frequently due to port conflicts. This attempts to make more of the tests use the trick of binding to port 0, and letting us use the random port instead.
* tests: fix sign bug in comparing timesGarrett D'Amore2024-11-30
|
* tests: Allow more time for larger messagesGarrett D'Amore2024-11-30
|
* tests: incompletely initialized address in has_ipv6 checkGarrett D'Amore2024-11-30
|
* tests: time collection overhead might be zero for coarse timers (Windows)Garrett D'Amore2024-11-30
|
* tests: convert TCPv6 transport test to NUTS (and consolidate with v4)Garrett D'Amore2024-11-30
|
* tests: better reporting of timing overheadGarrett D'Amore2024-11-30
|
* tests: add a couple more transport specific testsGarrett D'Amore2024-11-30
|
* tests: inproc converted to NUTSGarrett D'Amore2024-11-30
| | | | | | | | This actually represents a conversion of the transport tests implemented in Convey terms to NUTS. As part of this, have implemented a simple round trip performance test, using PAIR. The rest of the transport tests will shortly be converted to this as well.
* tls: add ecdsa test caseGarrett D'Amore2024-11-17
|
* refactor initialization/finalizationGarrett D'Amore2024-11-11
| | | | | | | | | Applications must now call nng_init(), but they can supply a set of parameters optionally. The code is now safe for multiple libraries to do this concurrently, meaning nng_fini no longer can race against another instance starting up. The nni_init checks on all public APIs are removed now.
* 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.
* Introduce NUTS_SKIP and use it in a few tests.Garrett D'Amore2024-11-03
| | | | | This lets us see that we are skipping tests due to lack of support, and makes it a little clearer to an observer.
* 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.
* Remove the legacy transport registration functions.Garrett D'Amore2024-10-06
| | | | | | This also allows to remove most of the transport headers. Only zerotier.h sticks around, and only for now. (We expect to eject it into a separate module.)
* test: support UDP urls for marryGarrett D'Amore2024-10-05
|
* Move the rest of the functionality from platform.h into core.Garrett D'Amore2024-04-23
| | | | This also deprecates supplemental/util/platform.h.
* 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.
* fixes #1588 TLS should log errorsGarrett D'Amore2024-04-14
| | | | | This isn't complete, but it should go much further in assisting debugging TLS related errors.
* Added realtime clock support, and better timestamping.Garrett D'Amore2024-04-14
| | | | | The realtime clock is not (yet) exposed for user applications, but it is used for logging timestamps accurately.
* windows: marry - warning about HANDLE vs intGarrett D'Amore2024-02-25
|
* Add support for socket:// in NUTS marry function.Garrett D'Amore2024-02-18
| | | | | This also adds a HUGE test for REP using socket so that we can discriminate failures that might exist using sockets instead of inproc.
* fix the wrong size in stream xfr alloc.wangha2023-08-23
|
* Don't use deprecated function in test.Garrett D'Amore2021-11-28
|
* fixes #1526 NNG_USE_CLOCKID Bug?Garrett D'Amore2021-11-27
| | | | | | | This makes CLOCK_MONOTONIC the default (as it should have been) for platforms that have it defined, except for Apple platforms which lack support for using anything other than the real time clock with condition variables. (And unfortunately silently ignore attempts to do otherwise.)
* Fix LeakAnalyzer complaints due to deferred reap.Garrett D'Amore2021-07-07
|
* fixes #1415 pair.c compiler warningGarrett D'Amore2021-01-24
|
* fixes #1398 integrate new acutest.h (#1400)Garrett D'Amore2021-01-03
|
* 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.