X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=test%2Ftools_test.c;h=70cce441befc02902d30bf8b229566cab75e3280;hb=refs%2Fchanges%2F51%2F4751%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..70cce44 100644 --- a/test/tools_test.c +++ b/test/tools_test.c @@ -45,12 +45,24 @@ #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" int main( ) { + int errors = 0; + fprintf( stderr, ">>>> starting tools_test\n" ); - return tools_test() > 0; + errors += tools_test() > 0; + + 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; }