blob: 380e6280d63d7d3b0c7a43b5864fe916087a52c8 [file] [log] [blame]
Dan Albertb377bbb2015-01-30 14:07:34 -08001#!/bin/bash -x
Stephen Hines97234242014-11-07 17:47:21 -08002
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
Dan Albertb377bbb2015-01-30 14:07:34 -08008TMP_PATH=`mktemp -d`
Stephen Hines97234242014-11-07 17:47:21 -08009
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 Albertb377bbb2015-01-30 14:07:34 -080012$CTS_TRADEFED run commandAndExit cts --output-file-path $TMP_PATH -p android.renderscript
Dan Albert03f89fe2015-02-04 12:38:51 -080013RESULT=$?
Dan Albertb377bbb2015-01-30 14:07:34 -080014
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
Dan Albert03f89fe2015-02-04 12:38:51 -080023exit $RESULT