summaryrefslogtreecommitdiff
path: root/print_results
diff options
context:
space:
mode:
Diffstat (limited to 'print_results')
-rwxr-xr-xprint_results20
1 files changed, 20 insertions, 0 deletions
diff --git a/print_results b/print_results
new file mode 100755
index 0000000..c4c60ef
--- /dev/null
+++ b/print_results
@@ -0,0 +1,20 @@
+#!/usr/bin/bash
+# Analyze and print general test results
+
+export TEST_DIR="test_results"
+
+echo "Test results"
+echo "SW"
+./print_subtest "test_results" ""
+echo "WR"
+./print_subtest "test_results" "-wr"
+echo "General"
+
+UNPASS=`grep "cppunittests INFO | Passed:" $TEST_DIR/cppunittest | cut -d ' ' -f 5`
+UNFAIL=`grep "cppunittests INFO | Failed:" $TEST_DIR/cppunittest | cut -d ' ' -f 5`
+echo "CPP UNIT: PASSED: $UNPASS FAILED: $UNFAIL"
+
+JSPASS=`grep "TEST-PASS" $TEST_DIR/jsapi | wc -l`
+echo "JSAPI: PASSED: $JSPASS"
+
+echo "JStests: "`tail -n 1 $TEST_DIR/jstests`
bgstack15