Dan Albert | b377bbb | 2015-01-30 14:07:34 -0800 | [diff] [blame] | 1 | #!/bin/bash -x |
Stephen Hines | 9723424 | 2014-11-07 17:47:21 -0800 | [diff] [blame] | 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 |
Dan Albert | b377bbb | 2015-01-30 14:07:34 -0800 | [diff] [blame] | 8 | TMP_PATH=`mktemp -d` |
Stephen Hines | 9723424 | 2014-11-07 17:47:21 -0800 | [diff] [blame] | 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 |
Dan Albert | b377bbb | 2015-01-30 14:07:34 -0800 | [diff] [blame] | 12 | $CTS_TRADEFED run commandAndExit cts --output-file-path $TMP_PATH -p android.renderscript |
Dan Albert | 03f89fe | 2015-02-04 12:38:51 -0800 | [diff] [blame] | 13 | RESULT=$? |
Dan Albert | b377bbb | 2015-01-30 14:07:34 -0800 | [diff] [blame] | 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 | |
Dan Albert | 03f89fe | 2015-02-04 12:38:51 -0800 | [diff] [blame] | 23 | exit $RESULT |