3 ==================================================================================
4 Copyright (c) 2020 Nokia
5 Copyright (c) 2020 AT&T Intellectual Property.
7 Licensed under the Apache License, Version 2.0 (the "License");
8 you may not use this file except in compliance with the License.
9 You may obtain a copy of the License at
11 http://www.apache.org/licenses/LICENSE-2.0
13 Unless required by applicable law or agreed to in writing, software
14 distributed under the License is distributed on an "AS IS" BASIS,
15 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 See the License for the specific language governing permissions and
17 limitations under the License.
18 ==================================================================================
22 Mmemonic: rmr_si_rcv_test.c
23 Abstract: This drives only the receive tests for the SI API. Because
24 of the threaded nature of SI receives it is not possible to
25 mix these tests with the other coverage tests which allocate
28 Author: E. Scott Daniels
29 Date: 14 April 2020 (AKD)
50 #include <sys/epoll.h>
52 #include <semaphore.h>
55 #define PARANOID_CHECKS 1 // must have parinoid testing on to not fail on nil pointer tests
57 // specific test tools in this directory
59 #include "test_support.c" // things like fail_if()
60 #include "test_ctx_support.c" // dummy context support
61 #include "test_msg_support.c"
62 #include "test_gen_rt.c"
65 #include "rmr.h" // things the users see
66 #include "rmr_symtab.h"
67 #include "rmr_logging.h"
68 #include "rmr_agnostic.h" // transport agnostic header
76 static void gen_rt( uta_ctx_t* ctx ); // defined in sr_si_static_test, but used by a few others (eliminate order requirement below)
79 #include "rmr_si_rcv_static_test.c" // the only test driver
83 Drive each of the separate tests and report.
88 rmr_set_vlevel( 5 ); // enable all debugging
90 fprintf( stderr, "\n<INFO> starting receive tests (%d)\n", errors );
91 errors += rmr_rcv_test();
92 fprintf( stderr, "<INFO> error count: %d\n", errors );
95 fprintf( stderr, "<PASS> all tests were OK\n\n" );
97 fprintf( stderr, "<FAIL> %d modules reported errors\n\n", errors );