Add unit test stats to output
[ric-plt/xapp-frame-cpp.git] / test / unit_test.sh
index a4f9d0a..fd6f2e2 100755 (executable)
@@ -117,17 +117,21 @@ echo "tests successfully built" >&2
 
 spew="cat"
 
+# order here is important to ensure coverage files accumulate
+tests="metrics_test jhash_test config_test  unit_test"
+
 #run everything, then generate coverage stats after all have run
-for x in metrics_test jhash_test config_test  unit_test
+for x in $tests
 do
        ./$x >/tmp/PID$$.log 2>&1
        abort_if_error $? "test failed: $x"
+       grep SUMMARY /tmp/PID$$.log
 done
 
 # it seems that we loose coverage reporting if metrics_test's gcov file is generated
 # after unit test.  Very strange. To be safe, run unit_test last.
 #
-for x in metrics_test jhash_test config_test unit_test
+for x in $tests
 do
        gcov $x.c >/dev/null 2>&1
 done