Fix rmr_rpobe command line bug; add test coverage
[ric-plt/lib/rmr.git] / test / tools_test.c
1 // : vi ts=4 sw=4 noet :
2 /*
3 ==================================================================================
4             Copyright (c) 2019 Nokia
5             Copyright (c) 2018-2019 AT&T Intellectual Property.
6
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
10
11            http://www.apache.org/licenses/LICENSE-2.0
12
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 ==================================================================================
19 */
20
21
22 /*
23         Mnemonic:       tools_test.c
24         Abstract:       Unit tests for the RMr tools module.
25         Author:         E. Scott Daniels
26         Date:           21 January 2019
27 */
28
29
30 #include <stdio.h>
31 #include <stdlib.h>
32 #include <netdb.h>
33 #include <errno.h>
34 #include <string.h>
35 #include <errno.h>
36 #include <pthread.h>
37 #include <ctype.h>
38 #include <pthread.h>
39 #include <semaphore.h>
40
41 #include "rmr.h"
42 #include "rmr_logging.h"
43 #include "rmr_agnostic.h"
44
45 #define NO_EMULATION
46 #include "test_support.c"               // our private library of test tools
47
48 #include "logging.c"            // tools references logging, so pull in too
49 #include "tools_static.c"
50
51 #include "tools_static_test.c"
52
53 int main( ) {
54         fprintf( stderr, ">>>> starting tools_test\n" );
55         return tools_test() > 0;
56 }
57