From cb8e9066edacbd0440df54672b426c44f102085f Mon Sep 17 00:00:00 2001 From: Garrett D'Amore Date: Sat, 30 Nov 2024 11:32:28 -0500 Subject: 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. --- src/sp/transport/inproc/CMakeLists.txt | 1 + src/sp/transport/inproc/inproc_test.c | 17 +++++++++++++++++ 2 files changed, 18 insertions(+) create mode 100644 src/sp/transport/inproc/inproc_test.c (limited to 'src/sp') 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. +// +// 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_DECLARE_TRAN_TESTS(inproc) + +NUTS_TESTS = { + NUTS_INSERT_TRAN_TESTS(inproc), + { NULL, NULL }, +}; -- cgit v1.2.3-70-g09d2