X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=test%2Frmr_nng_test.c;h=c9d9a6a3d23f50200d1a67cd9ea2e591cb7d356a;hb=b0ba22eb7deafbe43f7dac0e9d6abd8d4484c3bf;hp=1ebdb94e308ac6798e8ffd8e4bf640376726fc8c;hpb=8dd46415b94b33fa960bdd5732e909ffc4859520;p=ric-plt%2Flib%2Frmr.git diff --git a/test/rmr_nng_test.c b/test/rmr_nng_test.c index 1ebdb94..c9d9a6a 100644 --- a/test/rmr_nng_test.c +++ b/test/rmr_nng_test.c @@ -8,7 +8,7 @@ you may not use this file except in compliance with the License. You may obtain a copy of the License at - http://www.apache.org/licenses/LICENSE-2.0 + http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, @@ -51,6 +51,8 @@ #include #include #include +#include +#include #define DEBUG 1 @@ -64,13 +66,14 @@ #include "test_nng_em.c" // nng/nn emulation (before including things under test) -#include "../src/common/include/rmr.h" // things the users see -#include "../src/common/include/rmr_symtab.h" -#include "../src/common/include/rmr_agnostic.h" // transport agnostic header -#include "../src/nng/include/rmr_nng_private.h" // transport specific +#include "rmr.h" // things the users see +#include "rmr_symtab.h" +#include "rmr_agnostic.h" // transport agnostic header +#include "rmr_nng_private.h" // transport specific -#include "../src/common/src/symtab.c" -#include "../src/nng/src/rmr_nng.c" +#include "symtab.c" +#include "rmr_nng.c" +#include "mbuf_api.c" static void gen_rt( uta_ctx_t* ctx ); // defined in sr_nng_static_test, but used by a few others (eliminate order requirement below) @@ -84,6 +87,7 @@ static void gen_rt( uta_ctx_t* ctx ); // defined in sr_nng_static_test, but use #include "sr_nng_static_test.c" #include "wormhole_static_test.c" #include "rmr_nng_api_static_test.c" +#include "mbuf_api_static_test.c" /* @@ -110,6 +114,10 @@ int main() { fprintf( stderr, " starting RMr API tests\n" ); errors += rmr_api_test(); + + fprintf( stderr, " run RMr API tests with src name only env var set\n" ); + setenv( "RMR_SRC_NAMEONLY", "1", 1 ); + errors += rmr_api_test(); fprintf( stderr, " error count: %d\n", errors ); fprintf( stderr, " starting wormhole tests\n" ); @@ -120,6 +128,10 @@ int main() { errors += sr_nng_test(); // test the send/receive static functions fprintf( stderr, " error count: %d\n", errors ); + fprintf( stderr, " starting mbuf api tests\n" ); + errors += mbuf_api_test( ); + fprintf( stderr, " error count: %d\n", errors ); + if( errors == 0 ) { fprintf( stderr, " all tests were OK\n" ); } else {