diff options
| author | 2016-05-06 19:44:15 +0000 | |
|---|---|---|
| committer | 2016-05-06 19:44:17 +0000 | |
| commit | 3cbdfc6b0863a7419ec42f458c41c41bf2d155b1 (patch) | |
| tree | 5ee4ae2ca0fcb8163e975d61f8f243f8b46073c8 | |
| parent | 5bcbdd59c066f46642f6ddf5833d58ce4170c1e0 (diff) | |
| parent | 90d48f28af67ab44d755363bf92d57a1b3e72a29 (diff) | |
Merge "Fix libart tests on target"
| -rwxr-xr-x | test/etc/run-test-jar | 3 | ||||
| -rwxr-xr-x | test/run-test | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/test/etc/run-test-jar b/test/etc/run-test-jar index 01114b7690..aa45d40cb4 100755 --- a/test/etc/run-test-jar +++ b/test/etc/run-test-jar @@ -473,11 +473,14 @@ if [ "$HOST" = "n" ]; then LD_LIBRARY_PATH=$ANDROID_ROOT/$LIBRARY_DIRECTORY fi + PUBLIC_LIBS=libart.so:libartd.so + # Create a script with the command. The command can get longer than the longest # allowed adb command and there is no way to get the exit status from a adb shell # command. cmdline="cd $DEX_LOCATION && \ export ANDROID_DATA=$DEX_LOCATION && \ + export ANDROID_ADDITIONAL_PUBLIC_LIBRARIES=$PUBLIC_LIBS && \ export DEX_LOCATION=$DEX_LOCATION && \ export ANDROID_ROOT=$ANDROID_ROOT && \ $mkdir_cmdline && \ diff --git a/test/run-test b/test/run-test index 424c54f2c9..bfb17095dd 100755 --- a/test/run-test +++ b/test/run-test @@ -467,7 +467,7 @@ elif [ "$runtime" = "art" ]; then run_args="${run_args} --runtime-option -Djava.library.path=${ANDROID_HOST_OUT}/lib${suffix64}" else guess_target_arch_name - run_args="${run_args} --runtime-option -Djava.library.path=/data/art-test/${target_arch_name}" + run_args="${run_args} --runtime-option -Djava.library.path=/data/art-test/${target_arch_name}:/system/lib${suffix64}" run_args="${run_args} --boot /data/art-test/core${image_suffix}${pic_image_suffix}${multi_image_suffix}.art" fi if [ "$relocate" = "yes" ]; then |