How to build android cts? And how to add and run your test case?
Posted
by Leox
on Stack Overflow
See other posts from Stack Overflow
or by Leox
Published on 2010-05-13T01:54:48Z
Indexed on
2010/05/13
10:44 UTC
Read the original article
Hit count: 975
From 2.0 the cts is freely downloadable from android's repository.
But there is no documents about it.
Does anyone can tell me:
- how to build cts? Is there a standard procedure?
- How to run cts?
- How to add customized test case?
Here, share my experience. After repo sync all source, you can't directly run "make" to build all source. You will get some errors.
Now, I'am trying to first build android source without cts, and then build cts alone.
Also, here are some reference for run cts:
- http://i-miss-erin.blogspot.com/2010/05/how-to-add-test-plan-package-to-android.html
- www.mentby.com/chenny/how-does-cts-work-where-can-i-get-the-test-streams.html
- www.jxva.com/?act=blog!article&articleId=157
1st time Update @ 5-13 18:39 +8:00
I do the following steps:
1.build android source without cts (move cts out of the $SDK_ROOT).
2.build cts (move cts back).
both jdk1.5 and 1.6 have the following errors:
1.The 1st time "make cts" report:
"Caused by: java.io.FileNotFoundException: ...(Too many open files)"
2.The 2nd time "make cts" report:
"acp: file 'out/host/linux-x86/obj/EXECUTABLES/vm-tests_intermediates/tests/data' does not exist"
3.The 3rd time "make cts" report:
"/bin/bash: line 0: cd: out/host/linux-x86/obj/EXECUTABLES/vm-tests_intermediates/hostjunit_files/classes: No such file or directory"
4.The last time "make cts" report:
"zip error: Nothing to do! (try: zip -q -r ../../android.core.vm-tests.jar . -i .)"
© Stack Overflow or respective owner