run-libcore-tests - how to run the tests under libcore/luni/src/test/java/libcore ?

69 views
Skip to first unread message

Roberto Tyley

unread,
Jan 17, 2012, 9:37:10 PM1/17/12
to android-...@googlegroups.com
I'd like to run the libcore java tests - specifically the ones in the libcore.java.io package - they don't seem to get invoked as part of the plain 'make' target, what's the correct make target to invoke?

cheers
Roberto

p.s. I noticed there was a script called 'run-libcore-tests' but running that complained that '/libcore/out/target/common/obj/JAVA_LIBRARIES/core-tests_intermediates/javalib.jar' didn't exist. I haven't figured out what the process required to create that is - compiling a full system image doesn't seem to do it. Full error is:


...
Actions: 109
executing mkdir -p /tmp/vogar/e1fd08f3-af6f-42e1-b894-453c6ab516f4/core-tests_intermediatesException in thread "main" java.lang.RuntimeException: Unable to compute MD5 of "/home/roberto/development/android-repos/libcore/out/target/common/obj/JAVA_LIBRARIES/core-tests_intermediates/javalib.jar"
at vogar.Md5Cache.md5(Md5Cache.java:67)
at vogar.Md5Cache.makeKey(Md5Cache.java:93)
at vogar.android.AndroidSdk.dex(AndroidSdk.java:201)
at vogar.android.DeviceDalvikVm.dexAndPush(DeviceDalvikVm.java:79)
at vogar.android.DeviceDalvikVm.installRunner(DeviceDalvikVm.java:62)
at vogar.Mode.prepare(Mode.java:82)
at vogar.android.DeviceDalvikVm.prepare(DeviceDalvikVm.java:49)
at vogar.Driver.buildAndRun(Driver.java:114)
at vogar.Vogar.run(Vogar.java:504)
at vogar.Vogar.main(Vogar.java:513)
Caused by: java.io.FileNotFoundException: /home/roberto/development/android-repos/libcore/out/target/common/obj/JAVA_LIBRARIES/core-tests_intermediates/javalib.jar (No such file or directory)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(FileInputStream.java:120)
at vogar.Md5Cache.md5(Md5Cache.java:56)
... 9 more

Jean-Baptiste Queru

unread,
Jan 18, 2012, 12:48:00 PM1/18/12
to android-...@googlegroups.com
You might also want to ask in the android-platform group, as this is
at the edge of android-building.

JBQ

> --
> You received this message because you are subscribed to the "Android
> Building" mailing list.
> To post to this group, send email to android-...@googlegroups.com
> To unsubscribe from this group, send email to
> android-buildi...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-building?hl=en

--
Jean-Baptiste M. "JBQ" Queru
Software Engineer, Android Open-Source Project, Google.

Questions sent directly to me that have no reason for being private
will likely get ignored or forwarded to a public forum with no further
warning.

Reply all
Reply to author
Forward
0 new messages