Building test cases from source code.

618 views
Skip to first unread message

Santhosh

unread,
Dec 24, 2009, 4:12:38 AM12/24/09
to android-platform
borqs@borqs-35:~/eclairs_source_code/eclair/development/testrunner$ ./
runtest.py apidemos
./runtest.py:36: DeprecationWarning: the sets module is deprecated
from sets import Set
ONE_SHOT_MAKEFILE="development/samples/ApiDemos/Android.mk" make -j4 -
C "/home/borqs/eclairs_source_code/eclair" files
/bin/bash: line 0: echo: write error: Broken pipe
============================================
PLATFORM_VERSION_CODENAME=Eclair
PLATFORM_VERSION=Eclair
TARGET_PRODUCT=generic
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=false
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=ECLAIR
============================================
make: Entering directory `/home/borqs/eclairs_source_code/eclair'
make: Nothing to be done for `files'.
make: Leaving directory `/home/borqs/eclairs_source_code/eclair'
Syncing to device...
Waiting for device package manager...
Waiting for instrumentation to be present
adb shell am instrument -w com.example.android.apis.tests/
android.test.InstrumentationTestRunner

Test results for InstrumentationTestRunner=
Time: 0.002

OK (0 tests)

--- Actually there are many test cases present in the ApiDemos but i'm
not getting why it is giving 0 tests.

Santhosh

unread,
Dec 24, 2009, 4:10:32 AM12/24/09
to android-platform
borqs@borqs-35:~/eclairs_source_code/eclair/development/testrunner$ ./
runtest.py core

./runtest.py:36: DeprecationWarning: the sets module is deprecated
from sets import Set
ONE_SHOT_MAKEFILE="frameworks/base/tests/CoreTests/Android.mk" make -
j4 -C "/home/borqs/eclairs_source_code/eclair" files

============================================
PLATFORM_VERSION_CODENAME=Eclair
PLATFORM_VERSION=Eclair
TARGET_PRODUCT=generic
TARGET_BUILD_VARIANT=eng
TARGET_SIMULATOR=false
TARGET_BUILD_TYPE=release
TARGET_ARCH=arm
HOST_ARCH=x86
HOST_OS=linux
HOST_BUILD_TYPE=release
BUILD_ID=ECLAIR
============================================
make: Entering directory `/home/borqs/eclairs_source_code/eclair'
make: Nothing to be done for `files'.
make: Leaving directory `/home/borqs/eclairs_source_code/eclair'
Syncing to device...
Waiting for device package manager...
Waiting for instrumentation to be present
adb shell am instrument -e class 'android.core.CoreTests' -w
android.core/android.test.InstrumentationTestRunner
INSTRUMENTATION_STATUS: id=ActivityManagerService
INSTRUMENTATION_STATUS: Error=Unable to find instrumentation target
package: com.android
INSTRUMENTATION_STATUS_CODE: -1android.util.AndroidException:
INSTRUMENTATION_FAILED: android.core/
android.test.InstrumentationTestRunner


--- How to solve this problem. Anyone please suggest me to run test
cases.

Reply all
Reply to author
Forward
0 new messages