summaryrefslogtreecommitdiff
path: root/test-art-target-test.sh
diff options
context:
space:
mode:
authorVishal Bhoj <vishal.bhoj@linaro.org>2016-01-19 17:11:36 +0530
committerVishal Bhoj <vishal.bhoj@linaro.org>2016-01-19 17:11:38 +0530
commiteee94c342c2aac9f50f61f0e6da880f40a044b8b (patch)
treeeaa30db01bafbf881d4f0ff14d9b9a8b03c34571 /test-art-target-test.sh
parent53c456af244744a2de08106103575432824e22ec (diff)
downloadart-build-tests.sh-eee94c342c2aac9f50f61f0e6da880f40a044b8b.tar.gz
test-art-target-test: Have separate logs for each subset of tests
Same log is actually show up multiple times in parsed logs hence breaking them and dumping only relavant logs. Signed-off-by: Vishal Bhoj <vishal.bhoj@linaro.org>
Diffstat (limited to 'test-art-target-test.sh')
-rwxr-xr-xtest-art-target-test.sh42
1 files changed, 26 insertions, 16 deletions
diff --git a/test-art-target-test.sh b/test-art-target-test.sh
index 049716b..2993e20 100755
--- a/test-art-target-test.sh
+++ b/test-art-target-test.sh
@@ -47,40 +47,45 @@ make -j12 test-art-target-sync
export ART_TEST_NO_SYNC=true
-make -j2 test-art-target-gtest64 > $WORKSPACE/build-logs-64.txt 2>&1
+make -j2 test-art-target-gtest64 > $WORKSPACE/build-logs-gtest-64.txt 2>&1
if [[ $? -ne 0 ]]; then
echo "Error: *** Error test-art-target-gtest64 failed"
- cat $WORKSPACE/build-logs-64.txt
+ cat $WORKSPACE/build-logs-gtest-64.txt
failed=1
fi
-make -j2 test-art-target-run-test-default >> $WORKSPACE/build-logs-64.txt 2>&1
+make -j2 test-art-target-run-test-default >> $WORKSPACE/build-logs-run-test-default-64.txt 2>&1
if [[ $? -ne 0 ]]; then
echo "Error: *** Error test-art-target-run-test-default failed"
- cat $WORKSPACE/build-logs-64.txt
+ cat $WORKSPACE/build-logs-run-test-default-64.txt
failed=1
fi
-make -j2 test-art-target-run-test-interpreter >> $WORKSPACE/build-logs-64.txt 2>&1
+make -j2 test-art-target-run-test-interpreter >> $WORKSPACE/build-logs-run-test-interpreter-64.txt 2>&1
if [[ $? -ne 0 ]]; then
echo "Error: *** Error test-art-target-run-test-interpreter failed"
- cat $WORKSPACE/build-logs-64.txt
+ cat $WORKSPACE/build-logs-run-test-interpreter-64.txt
failed=1
fi
export ART_TEST_RUN_TEST_DEBUGGABLE=true
-make -j2 test-art-target-run-test-optimizing >> $WORKSPACE/build-logs-64.txt 2>&1
+make -j2 test-art-target-run-test-optimizing >> $WORKSPACE/build-logs-run-test-optimizing-64.txt 2>&1
if [[ $? -ne 0 ]]; then
echo "Error: *** Error test-art-target-run-test-optimizing failed"
- cat $WORKSPACE/build-logs-64.txt
+ cat $WORKSPACE/build-logs-run-test-optimizing-64.txt
failed=1
fi
+cat $WORKSPACE/build-logs-gtest-64.txt > $WORKSPACE/build-logs-64.txt
+cat $WORKSPACE/build-logs-run-test-default-64.txt >> $WORKSPACE/build-logs-64.txt
+cat $WORKSPACE/build-logs-run-test-interpreter-64.txt >> $WORKSPACE/build-logs-64.txt
+cat $WORKSPACE/build-logs-run-test-optimizing-64.txt >> $WORKSPACE/build-logs-64.txt
+
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
@@ -121,40 +126,45 @@ make -j12 test-art-target-sync
export ART_TEST_NO_SYNC=true
-make -j2 test-art-target-gtest32 > $WORKSPACE/build-logs-32.txt 2>&1
+make -j2 test-art-target-gtest32 > $WORKSPACE/build-logs-gtest-32.txt 2>&1
if [[ $? -ne 0 ]]; then
echo "Error: *** Error test-art-target-gtest64 failed"
- cat $WORKSPACE/build-logs-32.txt
+ cat $WORKSPACE/build-logs-gtest-32.txt
failed=1
fi
-make -j2 test-art-target-run-test-default >> $WORKSPACE/build-logs-32.txt 2>&1
+make -j2 test-art-target-run-test-default >> $WORKSPACE/build-logs-run-test-default-32.txt 2>&1
if [[ $? -ne 0 ]]; then
echo "Error: *** Error test-art-target-run-test-default failed"
- cat $WORKSPACE/build-logs-32.txt
+ cat $WORKSPACE/build-logs-run-test-default-32.txt
failed=1
fi
-make -j2 test-art-target-run-test-interpreter >> $WORKSPACE/build-logs-32.txt 2>&1
+make -j2 test-art-target-run-test-interpreter >> $WORKSPACE/build-logs-run-test-interpreter-32.txt 2>&1
if [[ $? -ne 0 ]]; then
echo "Error: *** Error test-art-target-run-test-interpreter failed"
- cat $WORKSPACE/build-logs-32.txt
+ cat $WORKSPACE/build-logs-run-test-interpreter-32.txt
failed=1
fi
export ART_TEST_RUN_TEST_DEBUGGABLE=true
-make -j2 test-art-target-run-test-optimizing >> $WORKSPACE/build-logs-32.txt 2>&1
+make -j2 test-art-target-run-test-optimizing >> $WORKSPACE/build-logs-run-test-optimizing-32.txt 2>&1
if [[ $? -ne 0 ]]; then
echo "Error: *** Error test-art-target-run-test-optimizing failed"
- cat $WORKSPACE/build-logs-32.txt
+ cat $WORKSPACE/build-logs-run-test-optimizing-32.txt
failed=1
fi
+cat $WORKSPACE/build-logs-gtest-32.txt > $WORKSPACE/build-logs-32.txt
+cat $WORKSPACE/build-logs-run-test-default-32.txt >> $WORKSPACE/build-logs-32.txt
+cat $WORKSPACE/build-logs-run-test-interpreter-32.txt >> $WORKSPACE/build-logs-32.txt
+cat $WORKSPACE/build-logs-run-test-optimizing-32.txt >> $WORKSPACE/build-logs-32.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