summaryrefslogtreecommitdiff
path: root/test-art-target-test.sh
diff options
context:
space:
mode:
authorVishal Bhoj <vishal.bhoj@linaro.org>2015-09-10 07:57:46 +0530
committerVishal Bhoj <vishal.bhoj@linaro.org>2015-09-10 10:22:56 +0530
commit2ff120b1745a50504daec3e1b61968b6bc5ed695 (patch)
tree411f0853aadf293f96c9f6a27eba3bac045a5ab0 /test-art-target-test.sh
parentfd4236fbd3ca14175abe628a0c78be053c9bea8b (diff)
downloadart-build-tests.sh-2ff120b1745a50504daec3e1b61968b6bc5ed695.tar.gz
More cleanup on capturing failed test details
Signed-off-by: Vishal Bhoj <vishal.bhoj@linaro.org>
Diffstat (limited to 'test-art-target-test.sh')
-rwxr-xr-xtest-art-target-test.sh12
1 files changed, 10 insertions, 2 deletions
diff --git a/test-art-target-test.sh b/test-art-target-test.sh
index 55d5335..b4efd46 100755
--- a/test-art-target-test.sh
+++ b/test-art-target-test.sh
@@ -32,11 +32,19 @@ make -j4 $MAKE_TARGETS > $WORKSPACE/build-logs.txt 2>&1
if [ $? -ne 0 ]; then
echo "Error: *** Error make failed"
cat $WORKSPACE/build-logs.txt
+ echo "YVALUE=`grep "2mPASSED" $WORKSPACE/build-logs.txt | wc -l`" > ${WORKSPACE}/pass_case.txt
+ echo "YVALUE=`grep "1mFAILED" $WORKSPACE/build-logs.txt | wc -l`" > ${WORKSPACE}/fail_case.txt
+ echo "YVALUE=`grep "3mSKIPPING" $WORKSPACE/build-logs.txt | wc -l`" > ${WORKSPACE}/skip_case.txt
+ grep -rni "1mFAILED" $WORKSPACE/build-logs.txt | sed "s/.*://g" | sed "s/ .*//g" > ${WORKSPACE}/failing-tests.txt
+ grep -rni "3mSKIPPING" $WORKSPACE/build-logs.txt | sed "s/.*://g" | sed "s/ .*//g" > ${WORKSPACE}/skipped-tests.txt
exit -1
fi
-echo "YVALUE=`grep "PASSED" $WORKSPACE/build-logs.txt | wc -l`" > ${WORKSPACE}/pass_case.txt
-echo "YVALUE=`grep "FAILED" $WORKSPACE/build-logs.txt | wc -l`" > ${WORKSPACE}/fail_case.txt
+echo "YVALUE=`grep "2mPASSED" $WORKSPACE/build-logs.txt | wc -l`" > ${WORKSPACE}/pass_case.txt
+echo "YVALUE=`grep "1mFAILED" $WORKSPACE/build-logs.txt | wc -l`" > ${WORKSPACE}/fail_case.txt
+echo "YVALUE=`grep "3mSKIPPING" $WORKSPACE/build-logs.txt | wc -l`" > ${WORKSPACE}/skip_case.txt
+grep -rni "1mFAILED" $WORKSPACE/build-logs.txt | sed "s/.*://g" | sed "s/ .*//g" > ${WORKSPACE}/failing-tests.txt
+grep -rni "3mSKIPPING" $WORKSPACE/build-logs.txt | sed "s/.*://g" | sed "s/ .*//g" > ${WORKSPACE}/skipped-tests.txt
MAKE_END=$(date +%s.%N)