diff options
author | Alex Light <allight@google.com> | 2014-08-27 11:13:47 -0700 |
---|---|---|
committer | Alex Light <allight@google.com> | 2014-08-27 18:49:20 +0000 |
commit | 1ef4ce87e54a595a67263e550916b97a1b468b99 (patch) | |
tree | 134a4f661cef5d5dcd1f57e56bf44114c0e42a0d /test/run-test | |
parent | 469f2ee9a3c3d77f0352faed19d8c83c7397a638 (diff) | |
download | art-1ef4ce87e54a595a67263e550916b97a1b468b99.zip art-1ef4ce87e54a595a67263e550916b97a1b468b99.tar.gz art-1ef4ce87e54a595a67263e550916b97a1b468b99.tar.bz2 |
Really fix tests.
Remove extra line in Android.run-test.mk.
Update junit code in 082 and 021.
Set correct bootclasspath for --no-image.
Make host core.art depend on dex files being installed.
Make 118 pass in the correct bootclasspath.
Bug: 17290452
Change-Id: I415eddfa3632ec7eda927abe95925202de193749
Diffstat (limited to 'test/run-test')
-rwxr-xr-x | test/run-test | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/run-test b/test/run-test index 2b4a41d..eed28a5 100755 --- a/test/run-test +++ b/test/run-test @@ -317,6 +317,26 @@ elif [ "$runtime" = "art" ]; then fi if [ "$have_image" = "no" ]; then + if [ "$runtime" != "art" ]; then + echo "--no-image is only supported on the art runtime" + exit 1 + fi + if [ "$target_mode" = "no" ]; then + framework="${ANDROID_HOST_OUT}/framework" + bpath_suffix="-hostdex" + else + framework="/system/framework" + bpath_suffix="" + fi + # TODO If the target was compiled WITH_DEXPREOPT=true then these tests will + # fail since these jar files will be stripped. + bpath="${framework}/core-libart${bpath_suffix}.jar" + bpath="${bpath}:${framework}/conscrypt${bpath_suffix}.jar" + bpath="${bpath}:${framework}/okhttp${bpath_suffix}.jar" + bpath="${bpath}:${framework}/core-junit${bpath_suffix}.jar" + bpath="${bpath}:${framework}/bouncycastle${bpath_suffix}.jar" + # Pass down the bootclasspath + run_args="${run_args} --runtime-option -Xbootclasspath:${bpath}" run_args="${run_args} --no-image" fi |