X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=test%2Ftools_test.c;h=9ccc68dbe6cd76feaa15d7eb4085b6058b8fd9e0;hb=refs%2Fchanges%2F25%2F5925%2F2;hp=3a09d44c89f0384e1cfcb3fb80016579efa49084;hpb=fc5c77b3d78988aa407118235d7f5978642df753;p=ric-plt%2Flib%2Frmr.git diff --git a/test/tools_test.c b/test/tools_test.c index 3a09d44..9ccc68d 100644 --- a/test/tools_test.c +++ b/test/tools_test.c @@ -45,12 +45,28 @@ #define NO_EMULATION #include "test_support.c" // our private library of test tools +#include "logging.c" // tools references logging, so pull in too #include "tools_static.c" #include "tools_static_test.c" +#include "wrapper_static_test.c" int main( ) { - fprintf( stderr, ">>>> starting tools_test\n" ); - return tools_test() > 0; + int errors = 0; + + fprintf( stderr, " starting tools_test\n" ); + errors += tools_test() > 0; + + fprintf( stderr, " testing wrapper\n" ); + errors += wrapper_test(); + + test_summary( errors, "tool tests" ); + if( errors == 0 ) { + fprintf( stderr, " all tool tests were OK\n\n" ); + } else { + fprintf( stderr, " %d errors in tool code\n\n", errors ); + } + + return !!errors; }