diff options
author | Elliott Hughes <enh@google.com> | 2010-02-22 16:00:27 -0800 |
---|---|---|
committer | Elliott Hughes <enh@google.com> | 2010-02-22 16:10:42 -0800 |
commit | 8b7350e17c4a98aedc024dc593260d92154f0b1f (patch) | |
tree | 77172e543fa149a83859f8fe17280042c50e8cee | |
parent | 3e951a59b52fd39b9bd432d5724b94cc7a23a9ec (diff) | |
download | libcore-8b7350e17c4a98aedc024dc593260d92154f0b1f.zip libcore-8b7350e17c4a98aedc024dc593260d92154f0b1f.tar.gz libcore-8b7350e17c4a98aedc024dc593260d92154f0b1f.tar.bz2 |
Update run-core-tests' documentation, remove the leading : from the classpath, and add the json tests to the classpath.
(I did look at replacing this with a bash script we run on the host, but adb
turns out to have a command-line limit of 1024 bytes, and our classpath alone
is ~850 bytes long!)
-rwxr-xr-x | run-core-tests | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/run-core-tests b/run-core-tests index ba858f2..9c47f7c 100755 --- a/run-core-tests +++ b/run-core-tests @@ -1,3 +1,4 @@ +# -*- mode: bash -*- # # Copyright (C) 2007 The Android Open Source Project # @@ -13,30 +14,31 @@ # See the License for the specific language governing permissions and # limitations under the License. -# Run all the tests contained in the core-tests library. -# -# To install this script and the tests on a device: -# $ make (only necessary once) -# $ make CtsCoreTests snod (to create a system.img containing these files) -# OR -# $ make CtsCoreTests && adb sync (to push these files to a running system) +# To run these tests: +# mmm -j14 dalvik snod +# adb reboot && fastboot flashall +# adb shell run-core-tests tmp=/data/core-tests.tmp mkdir $tmp chmod 777 $tmp -modules="annotation archive concurrent crypto dom icu logging luni-kernel \ - luni math nio nio_char prefs regex security sql suncompat support \ - text x-net xml" +# Build the classpath by putting together the jar file for each module. +modules="annotation archive concurrent crypto dom icu json \ + logging luni-kernel luni math nio nio_char prefs regex security sql \ + suncompat support text x-net xml" classpath="" for module in $modules; do classpath="$classpath:/system/framework/core-tests-$module.jar" done +classpath=${classpath#:} exec dalvikvm \ -Duser.name=root \ -Duser.language=en \ -Duser.region=US \ + -Duser.dir=$tmp \ + -Duser.home=$tmp \ -Djava.io.tmpdir=$tmp \ -Djavax.net.ssl.trustStore=/system/etc/security/cacerts.bks \ -classpath $classpath \ |