run_rs_cts.sh 784 B

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