CI: Add silent cmake SonarCloud scan
[ric-plt/lib/rmr.git] / test / tools_test.c
index fb6aafa..9ccc68d 100644 (file)
 #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, "<INFO> starting tools_test\n" );
+       errors += tools_test() > 0;
+
+       fprintf( stderr, "<INFO> testing wrapper\n" );
+       errors += wrapper_test();
+
+       test_summary( errors, "tool tests" );
+       if( errors == 0 ) {
+               fprintf( stderr, "<PASS> all tool tests were OK\n\n" );
+       } else {
+               fprintf( stderr, "<FAIL> %d errors in tool code\n\n", errors );
+       }
+
+       return !!errors;
 }