- 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;