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 7 CTS_TRADEFED=$ANDROID_BUILD_TOP/out/host/linux-x86/bin/cts-tradefed 8 TMP_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 13 RESULT=$? 14 15 CTS_RESULTS=$ANDROID_BUILD_TOP/cts-results 16 RESULTS=$CTS_RESULTS/renderscript 17 mkdir -p $CTS_RESULTS 18 rm -rf $RESULTS 19 mkdir $RESULTS 20 find $TMP_PATH -name 'testResult.xml' -exec cp {} $RESULTS/ \; 21 rm -rf $TMP_PATH 22 23 exit $RESULT 24