1#!/bin/bash -x
2
3# Run the general RS CTS tests. We can expand this script to run more tests
4# as we see fit, but this essentially should be a reasonable smoke test of
5# RenderScript (to be run on build/test bots).
6
7CTS_TRADEFED=$ANDROID_BUILD_TOP/out/host/linux-x86/bin/cts-tradefed
8TMP_PATH=`mktemp -d`
9
10#$CTS_TRADEFED run commandAndExit cts --force-abi 64 -p android.renderscript
11#$CTS_TRADEFED run commandAndExit cts --force-abi 32 -p android.renderscript
12$CTS_TRADEFED run commandAndExit cts --output-file-path $TMP_PATH -p android.renderscript
13RESULT=$?
14
15CTS_RESULTS=$ANDROID_BUILD_TOP/cts-results
16RESULTS=$CTS_RESULTS/renderscript
17mkdir -p $CTS_RESULTS
18rm -rf $RESULTS
19mkdir $RESULTS
20find $TMP_PATH -name 'testResult.xml' -exec cp {} $RESULTS/ \;
21rm -rf $TMP_PATH
22
23exit $RESULT
24