I would recommend getting the official test suites which you can get
at
http://source.android.com/compatibility/downloads.html

Unzip the file and you will get
android-cts/
  docs/
  repository/
  tools/

You also need to have the Android SDK installed (get it from
http://developer.android.com/sdk/index.html).
Set the environment var. SDK_ROOT to the location where you install
the Android SDK.

On you target device, have /sdcard/ mounted and readable/writable.
Usually this is for an external SD card.
If this is so for your device, then inserted a formatted SD card
before you run CTS.

Install the CTS service package: adb install -r android-cts/repository/
testcases/CtsDelegatingAccessibilityService.apk

On the device, enable Settings > Accessibility > Accessibility >
Delegating Accessibility Service

Launch the CTS in your shell: android-cts/tools/startcts
Run the tests: start --plan CTS

For devices I've tested, I've had to wait and ignore messages like:
Exception in thread "Thread-5"
com.android.ddmlib.ShellCommandUnresponsiveException

Results are output android-cts/repository/results/

You can stop and restart a test suite by selecting the same result set
each time.



On Apr 20, 10:21 pm, bt android <bt4andr...@gmail.com> wrote:
> ---------- Forwarded message ----------
> From: bt android <bt4andr...@gmail.com>
> Date: Thu, Apr 21, 2011 at 1:48 PM
> Subject: CTS tests..
> To: android-disc...@googlegroups.com
>
> Hi all,
>
> Could anyone suggest how CTS is done in android target??
>
> I followed the following steps
>
> make CTS
>
> $ cd $MYDROID
> $ . build/envsetup.sh
> $ make cts
>
> run
>
> $ cd $mydroid/out/host/linux-x86/bin/
> $ ./cts
>
> cts_host >
>
> Needed clarifications on the below:
>
> 1. configure android-cts/tools/startcts script,modify the variable SDK_ROOT
> to match your environment
>
> Which SDK_ROOT??
>
> 2. ls -d
>
> Not listing the device connected. What modification is needed??
>
> Thanks in advance
>
>

-- 
unsubscribe: android-porting+unsubscr...@googlegroups.com
website: http://groups.google.com/group/android-porting

Reply via email to