summaryrefslogtreecommitdiff
path: root/test-art-target-test.sh
diff options
context:
space:
mode:
authorVishal Bhoj <vishal.bhoj@linaro.org>2015-09-10 20:23:36 +0530
committerVishal Bhoj <vishal.bhoj@linaro.org>2015-09-10 22:36:37 +0530
commit6964d17b44968c5477eefeb25ca90dd84b3fac58 (patch)
tree91cb83529a7330a5391119405f90bbe67ab3dd77 /test-art-target-test.sh
parentc2d631065743ece5a4dd628129292f73580fb7b3 (diff)
downloadart-build-tests.sh-6964d17b44968c5477eefeb25ca90dd84b3fac58.tar.gz
Fix errors in test-art-target-test
Signed-off-by: Vishal Bhoj <vishal.bhoj@linaro.org>
Diffstat (limited to 'test-art-target-test.sh')
-rwxr-xr-xtest-art-target-test.sh39
1 files changed, 18 insertions, 21 deletions
diff --git a/test-art-target-test.sh b/test-art-target-test.sh
index 50b0f48..6186957 100755
--- a/test-art-target-test.sh
+++ b/test-art-target-test.sh
@@ -32,17 +32,18 @@ make -j4 $MAKE_TARGETS > $WORKSPACE/build-logs-64.txt 2>&1
if [ $? -ne 0 ]; then
echo "Error: *** Error make failed"
cat $WORKSPACE/build-logs-64.txt
- echo "YVALUE=`grep "2mPASSED" $WORKSPACE/build-logs.txt | grep "gtest" | ec -l`" > ${WORKSPACE}/gtest-pass_count-64.txt
- echo "YVALUE=`grep "1mFAILED" $WORKSPACE/build-logs.txt | grep "gtest" | wc -l`" > ${WORKSPACE}/gtest-fail_count-64.txt
- echo "YVALUE=`grep "3mSKIPPING" $WORKSPACE/build-logs.txt | grep "gtest" | wc -l`" > ${WORKSPACE}/gtest-skip_case-64.txt
- echo "YVALUE=`grep "2mPASSED" $WORKSPACE/build-logs.txt | grep "run-test" | wc -l`" > ${WORKSPACE}/run-test-pass_count-64.txt
- echo "YVALUE=`grep "1mFAILED" $WORKSPACE/build-logs.txt | grep "run-test" | wc -l`" > ${WORKSPACE}/run-test-fail_count-64.txt
- echo "YVALUE=`grep "3mSKIPPING" $WORKSPACE/build-logs.txt | grep "run-test" | wc -l`" > ${WORKSPACE}/run-test-skip_case-64.txt
- grep -rni "1mFAILED" $WORKSPACE/build-logs-64.txt | sed "s/.*://g" | sed "s/ .*//g" > ${WORKSPACE}/failing-tests-64.txt
- grep -rni "3mSKIPPING" $WORKSPACE/build-logs-64.txt | sed "s/.*://g" | sed "s/ .*//g" > ${WORKSPACE}/skipped-tests-32.txt
failed=1
fi
+echo "YVALUE=`grep "2mPASSED" $WORKSPACE/build-logs-64.txt | grep "gtest" | wc -l`" > ${WORKSPACE}/gtest-pass_count-64.txt
+echo "YVALUE=`grep "1mFAILED" $WORKSPACE/build-logs-64.txt | grep "gtest" | wc -l`" > ${WORKSPACE}/gtest-fail_count-64.txt
+echo "YVALUE=`grep "3mSKIPPING" $WORKSPACE/build-logs-64.txt | grep "gtest" | wc -l`" > ${WORKSPACE}/gtest-skip_count-64.txt
+echo "YVALUE=`grep "2mPASSED" $WORKSPACE/build-logs-64.txt | grep "run-test" | wc -l`" > ${WORKSPACE}/run-test-pass_count-64.txt
+echo "YVALUE=`grep "1mFAILED" $WORKSPACE/build-logs-64.txt | grep "run-test" | wc -l`" > ${WORKSPACE}/run-test-fail_count-64.txt
+echo "YVALUE=`grep "3mSKIPPING" $WORKSPACE/build-logs-64.txt | grep "run-test" | wc -l`" > ${WORKSPACE}/run-test-skip_count-64.txt
+grep -rni "1mFAILED" $WORKSPACE/build-logs-64.txt | sed "s/.*://g" | sed "s/ .*//g" > ${WORKSPACE}/failing-tests-64.txt
+grep -rni "3mSKIPPING" $WORKSPACE/build-logs-64.txt | sed "s/.*://g" | sed "s/ .*//g" > ${WORKSPACE}/skipped-tests-64.txt
+
source build/envsetup.sh
lunch aosp_arm-eng
./art/tools/buildbot-build.sh -j8 --32
@@ -64,22 +65,18 @@ make -j4 $MAKE_TARGETS > $WORKSPACE/build-logs-32.txt 2>&1
if [ $? -ne 0 ]; then
echo "Error: *** Error make failed"
cat $WORKSPACE/build-logs-32.txt
- echo "YVALUE=`grep "2mPASSED" $WORKSPACE/build-logs-32.txt | grep "gtest" | ec -l`" > ${WORKSPACE}/gtest-pass_count-32.txt
- echo "YVALUE=`grep "1mFAILED" $WORKSPACE/build-logs-32.txt | grep "gtest" | wc -l`" > ${WORKSPACE}/gtest-fail_count-32.txt
- echo "YVALUE=`grep "3mSKIPPING" $WORKSPACE/build-logs-32.txt | grep "gtest" | wc -l`" > ${WORKSPACE}/gtest-skip_case-32.txt
- echo "YVALUE=`grep "2mPASSED" $WORKSPACE/build-logs-32.txt | grep "run-test" | wc -l`" > ${WORKSPACE}/run-test-pass_count-32.txt
- echo "YVALUE=`grep "1mFAILED" $WORKSPACE/build-logs-32.txt | grep "run-test" | wc -l`" > ${WORKSPACE}/run-test-fail_count-32.txt
- echo "YVALUE=`grep "3mSKIPPING" $WORKSPACE/build-logs-32.txt | grep "run-test" | wc -l`" > ${WORKSPACE}/run-test-skip_case-32.txt
- grep -rni "1mFAILED" $WORKSPACE/build-logs-32.txt | sed "s/.*://g" | sed "s/ .*//g" > ${WORKSPACE}/failing-tests-32.txt
- grep -rni "3mSKIPPING" $WORKSPACE/build-logs-32.txt | sed "s/.*://g" | sed "s/ .*//g" > ${WORKSPACE}/skipped-tests-32.txt
failed=1
fi
-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
+echo "YVALUE=`grep "2mPASSED" $WORKSPACE/build-logs-32.txt | grep "gtest" | wc -l`" > ${WORKSPACE}/gtest-pass_count-32.txt
+echo "YVALUE=`grep "1mFAILED" $WORKSPACE/build-logs-32.txt | grep "gtest" | wc -l`" > ${WORKSPACE}/gtest-fail_count-32.txt
+echo "YVALUE=`grep "3mSKIPPING" $WORKSPACE/build-logs-32.txt | grep "gtest" | wc -l`" > ${WORKSPACE}/gtest-skip_count-32.txt
+echo "YVALUE=`grep "2mPASSED" $WORKSPACE/build-logs-32.txt | grep "run-test" | wc -l`" > ${WORKSPACE}/run-test-pass_count-32.txt
+echo "YVALUE=`grep "1mFAILED" $WORKSPACE/build-logs-32.txt | grep "run-test" | wc -l`" > ${WORKSPACE}/run-test-fail_count-32.txt
+echo "YVALUE=`grep "3mSKIPPING" $WORKSPACE/build-logs-32.txt | grep "run-test" | wc -l`" > ${WORKSPACE}/run-test-skip_count-32.txt
+grep -rni "1mFAILED" $WORKSPACE/build-logs-32.txt | sed "s/.*://g" | sed "s/ .*//g" > ${WORKSPACE}/failing-tests-32.txt
+grep -rni "3mSKIPPING" $WORKSPACE/build-logs-32.txt | sed "s/.*://g" | sed "s/ .*//g" > ${WORKSPACE}/skipped-tests-32.txt
+
MAKE_END=$(date +%s.%N)