diff options
| author | Garrett D'Amore <garrett@damore.org> | 2024-11-30 11:32:28 -0500 |
|---|---|---|
| committer | Garrett D'Amore <garrett@damore.org> | 2024-11-30 12:06:11 -0500 |
| commit | cb8e9066edacbd0440df54672b426c44f102085f (patch) | |
| tree | e1cdd426afb9e2f5eff498d540038d23c918a853 /src/sp | |
| parent | 12307a1afd2bb82901a03db9d3024288a4128563 (diff) | |
| download | nng-cb8e9066edacbd0440df54672b426c44f102085f.tar.gz nng-cb8e9066edacbd0440df54672b426c44f102085f.tar.bz2 nng-cb8e9066edacbd0440df54672b426c44f102085f.zip | |
tests: inproc converted to NUTS
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.
Diffstat (limited to 'src/sp')
| -rw-r--r-- | src/sp/transport/inproc/CMakeLists.txt | 1 | ||||
| -rw-r--r-- | src/sp/transport/inproc/inproc_test.c | 17 |
2 files changed, 18 insertions, 0 deletions
diff --git a/src/sp/transport/inproc/CMakeLists.txt b/src/sp/transport/inproc/CMakeLists.txt index b84ab01e..2132e8d7 100644 --- a/src/sp/transport/inproc/CMakeLists.txt +++ b/src/sp/transport/inproc/CMakeLists.txt @@ -13,3 +13,4 @@ nng_directory(inproc) nng_sources_if(NNG_TRANSPORT_INPROC inproc.c) nng_defines_if(NNG_TRANSPORT_INPROC NNG_TRANSPORT_INPROC) +nng_test_if(NNG_TRANSPORT_INPROC inproc_test) diff --git a/src/sp/transport/inproc/inproc_test.c b/src/sp/transport/inproc/inproc_test.c new file mode 100644 index 00000000..2683b1e4 --- /dev/null +++ b/src/sp/transport/inproc/inproc_test.c @@ -0,0 +1,17 @@ +// +// Copyright 2024 Staysail Systems, Inc. <info@staysail.tech> +// +// This software is supplied under the terms of the MIT License, a +// copy of which should be located in the distribution where this +// file was obtained (LICENSE.txt). A copy of the license may also be +// found online at https://opensource.org/licenses/MIT. +// + +#include <nuts.h> + +NUTS_DECLARE_TRAN_TESTS(inproc) + +NUTS_TESTS = { + NUTS_INSERT_TRAN_TESTS(inproc), + { NULL, NULL }, +}; |
