summaryrefslogtreecommitdiff
path: root/test-art-target-test.sh
diff options
context:
space:
mode:
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)