summaryrefslogtreecommitdiff
path: root/test-art-target-test.sh
blob: 55d533548b013fdf2c51413c0481d90d28347792 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#!/bin/bash
. $PWD/setup-android.sh
sudo chmod -R 777 /tmp/


TEST_ART_COMMAND="test-art-target"
TEST_ART_OUTPUT_DIR=$WORKSPACE/$TEST_ART_COMMAND/
export GTEST_OUTPUT=xml:$TEST_ART_OUTPUT_DIR
MAKE_TARGETS=$TEST_ART_COMMAND
mkdir -p $WORKSPACE/$TEST_ART_COMMAND/

MAKE_START=$(date +%s.%N)
source build/envsetup.sh
lunch armv8-userdebug 
./art/tools/buildbot-build.sh -j8 --target
sudo out/host/linux-x86/bin/adb start-server
./art/tools/setup-buildbot-device.sh

export ART_BUILD_HOST_DEBUG=false
export ART_TEST_ANDROID_ROOT="/data/local/tmp/system"
export ART_TEST_FULL=false
export ART_TEST_INTERPRETER=true
export ART_TEST_KEEP_GOING=true
export ART_TEST_OPTIMIZING=true
export ART_TEST_RUN_TEST_2ND_ARCH=false
export ART_TEST_RUN_TEST_DEBUG=false
export ART_TEST_RUN_TEST_NDEBUG=true
export ART_USE_OPTIMIZING_COMPILER=true

make -j4 $MAKE_TARGETS  > $WORKSPACE/build-logs.txt 2>&1

if [ $? -ne 0 ]; then
    echo "Error: *** Error make failed"
    cat $WORKSPACE/build-logs.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

MAKE_END=$(date +%s.%N)

MAKE_TIME=$(echo "$MAKE_END - $MAKE_START" | bc)
echo "YVALUE=${MAKE_TIME}" > ${WORKSPACE}/make_time.txt
echo "YVALUE=${REPO_TIME}" > ${WORKSPACE}/repo_time.txt
ccache -s