summaryrefslogtreecommitdiff
path: root/run_rs_cts.sh
blob: 380e6280d63d7d3b0c7a43b5864fe916087a52c8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash -x

# Run the general RS CTS tests. We can expand this script to run more tests
# as we see fit, but this essentially should be a reasonable smoke test of
# RenderScript (to be run on build/test bots).

CTS_TRADEFED=$ANDROID_BUILD_TOP/out/host/linux-x86/bin/cts-tradefed
TMP_PATH=`mktemp -d`

#$CTS_TRADEFED run commandAndExit cts --force-abi 64 -p android.renderscript
#$CTS_TRADEFED run commandAndExit cts --force-abi 32 -p android.renderscript
$CTS_TRADEFED run commandAndExit cts --output-file-path $TMP_PATH -p android.renderscript
RESULT=$?

CTS_RESULTS=$ANDROID_BUILD_TOP/cts-results
RESULTS=$CTS_RESULTS/renderscript
mkdir -p $CTS_RESULTS
rm -rf $RESULTS
mkdir $RESULTS
find $TMP_PATH -name 'testResult.xml' -exec cp {} $RESULTS/ \;
rm -rf $TMP_PATH

exit $RESULT