Commit Graph

11858 Commits

Author SHA1 Message Date
Muthu Ramadoss
4dd550143e ENHANCEMENT: activitycreator generates 'tests' project for instrumentation.
activitycreator script is enhanced to generate 'tests' project along with the main project. The current behavior of generating Activity is extended by generating ActivityTest in 'tests/src' folder. The 'tests' folder follows the example provided asis in 'ApiDemos'. ApiDemos was used as reference project to mimic the project layout for building tests using Instrumentation.

From 'tests' project, type:
    "adb shell am instrument -w [your.package].tests/android.test.InstrumentationTestRunner"
to run all tests using Android InstrumentationTestRunner.

NOTE: 'tests' is a separate AndroidProject by all means. It has its own AndroidManifest.xml, build.xml, src, res etc.,

AMEND:
	Fixed style issues, javadoc
	Fixed build.template to generate tests/build.xml
	Removed build.tests.template since its obsolete now.
2008-11-14 13:22:05 +05:30
Muthu Ramadoss
bc4b026621 Changed srcdir="." to srcdir="${srcdir}" in scripts/build.template
This change makes sure the srcdir is pointing to only the java source folder and not recursively compile all source folders under the current folder. This is useful in having multiple java source folders for main, tests etc., Only the compile target is being affected by this change.

NOTE: Now you can have project/tests and work with tests as a separate android project, only for testing. In any case pointing to source explicitly makes sure no side affects arise by recursive compiling.
2008-11-11 10:59:24 +05:30
Alexey Tarasov
69e138ba95 changed main class name in manifest file to correct one 2008-11-09 11:00:59 +10:00
Android Code Review
52636d7ff5 Merge 2008-10-22 19:47:08 +00:00
Evan JIANG
88b4291efb Evan JIANG: Fix build bug when "make sdk"
If you run "make sdk" under the root path, there would be an error:
development/build/sdk.atree:122: couldn't locate source file:
development/emulator/prebuilt/android-arm/kernel-qemu
make: *** [out/host/darwin-x86/sdk/android-sdk_eng.Evan_mac-x86.zip]
Error 44

I guess the kernel-qemu path is wrong in the sdk.atree file.
With this patch, "make sdk" works ok.
2008-10-23 00:12:40 +08:00
Andy Stadler
3c290fd186 Updated .classpath to use with Eclipse IDE. 2008-10-21 15:04:50 -07:00
Alexey Zaytsev
62da4d9357 Add a few missing headers
Fixes build with gcc 4.3.2 on Debian.

Signed-off-by: Alexey Zaytsev <alexey.zaytsev@gmail.com>
2008-10-22 02:03:57 +04:00
The Android Open Source Project
5c11852110 Initial Contribution 2008-10-21 07:00:00 -07:00