Commit Graph

283 Commits

Author SHA1 Message Date
Brett Chabot
a39865a1cb Update create_test to new android_mk API.
Change-Id: I5b95cbee02051e3e347e68f874863a7b56e2df8b
2012-01-17 15:54:39 -08:00
Brian Muramatsu
95cbc9e1ec Fix runtest for CTS Tests
The CTS packages use CTS-specific Makefiles rules like
BUILD_CTS_PACKAGE instead of BUILD_PACKAGE. Update runtest
to include CtsBuild.mk which defines all of these.

Change-Id: I6ea6c77b4f2ab113126319141e5120e016055c9d
2012-01-10 12:06:12 -08:00
Jeff Sharkey
74767750b6 Add DownloadProvider tests.
Change-Id: I04941f49b08c6a381dadd6d9dd0bc90680491e8c
2011-10-12 13:45:25 -07:00
Flavio Lerda
2d7184f851 Remove tests for obsolete repository.
We re-organized the code to live in one of the existing packages and
therefore we no longer need the tests to be run on their own.

Change-Id: I55e6e58628d384218adc6c116f790b540709ec3c
2011-08-21 15:23:15 +01:00
Brett Chabot
eec5042131 Add systemui tests to testdefs.
Change-Id: I4aff7f9da59da7f0da290d5b78322e97ab41f639
2011-08-17 15:40:03 -07:00
Brett Chabot
b0fd2cf942 Fix runtest --path for package-private frameworks tests.
A recent change to runtest resulted in absolute paths incorrectly
being used for a tests build path. This broke the special logic
for frameworks/base tests, since it assumed relative build paths.
Change build paths back to relative paths.

Bug 5105885

Change-Id: I83a26be25294d501cca73eb1b88a7364131b2caf
2011-08-01 16:30:37 -07:00
Hugo Hudson
35cf07a3ed Add the variable speed tests to the test runner.
- You can now run the tests with runtest ex-variablespeed.

Bug: 5048257
Change-Id: I535c0aa91e2b4a4209ae8c4da39cb8fa9e746182
2011-07-26 00:18:34 +01:00
Brett Chabot
ecfcc7da8e Fix runtest --path for tests built against SDK.
Bug 4556556

Change-Id: I3f829cae8f9fc1e64b3a44ac9e306b13b3cead7c
2011-07-17 14:06:20 -07:00
Jeff Brown
04a4d9a0fc Remove the simulator target from all makefiles.
Bug: 5010576

Change-Id: I3af1c8fb9b1b558a1c03212a2bb1834095c806da
2011-07-11 22:11:50 -07:00
Brett Chabot
bb5918ed81 Add gtest target support for runtest --path.
This is a rough initial version. It makes several assumptions:
 - assumes each test source file is built into module with name equal
to basename of source file
 - assumes tests get installed into /data/nativetest

However, given those assumptions, both:
$ runtest --path <path to directory containing gtest source> and
$ runtest --path <path to single source file>
should work.

Coming soon: gtest host support

Bugs 4563370, 4584339

Change-Id: Ia42aeed7f9ee6402b0ceb7b5ccaaa66ac636fe49
2011-07-10 13:26:41 -07:00
Brett Chabot
0e5c937ff7 Merge "Fix runtest build step." 2011-06-08 13:56:42 -07:00
Brett Chabot
546a3285ce Fix runtest build step.
Update make syntax to new 'mmm' logic.

Bug 4556556

Change-Id: Ie1fd5f6714ee7ef731b063751e0ddd674bc31021
2011-06-07 19:21:11 -07:00
Brett Chabot
cdfaae1a34 Make runtest reboot and root more robust.
Add a couple sleep statements to allow time for device to go offline.

Change-Id: I3a5fffc948f6c7b67bcdec4526990a6becd2d02f
2011-06-07 10:16:02 -07:00
Brett Chabot
3c9cefc70f Remove runtest hard dependency on test_defs.xml files.
Previously runtest would fail hard if development/test_runner/test_defs.xml
file was not present, even if it wasn't needed (ie running in --path mode).

This commit skips test_defs parsing if --path is specified, and only parses
development/test_runner/test_defs.xml if its present.

Bug 4556556

Change-Id: Ief2dbbdab5c7e82e5db64414392d6e2a564e815d
2011-06-07 08:27:36 -07:00
Flavio Lerda
a151dce789 Add tests for VoicemailProvider.
Change-Id: Ib6a1d449edafd381e8c057640a7cef5f2abdf587
2011-05-19 12:06:52 +01:00
Jean-Baptiste Queru
39e63e526a Merge 6a79f798
Change-Id: I1bb91242b2fb7651ba0505c416d7559d50259472
2011-05-12 16:28:47 -07:00
Jean-Baptiste Queru
6a79f79832 am 3ef19fa9: Merge "test_defs: new CTS security test." into gingerbread
* commit '3ef19fa91771be93f398af577a4432bb0fd571aa':
  test_defs: new CTS security test.
2011-05-12 16:20:21 -07:00
Nick Kralevich
26070d5afe test_defs: new CTS security test.
Change-Id: Ic400b823796d6f9ef140e8b24001434129e92da1
2011-05-03 14:31:02 -07:00
Marc Blank
b1bc3d8c34 Add Exchange project to test_defs and coverage_targets
Change-Id: Ie854a0296955cbb42330989886d860d42ac5310b
2011-02-28 11:17:16 -08:00
Peter Visontay
230f8b71a0 Added the ApplicationsProvider's tests to test_defs.xml.
Dependent on change Ib6d9a81f3bfa68cbd25d2189f6e6690bc3d8e428
(which adds the necessary test size annotations).

Bug: 1847330
Change-Id: I206385e5da7f2c496043568cba848304b52a6475
2011-02-04 15:31:43 +00:00
Brett Chabot
b45644eac0 Replace use of ro.monkey with ro.test_harness.
Bug 3329873

Change-Id: Ia681803c3d0b0afeceb178b8314c9d7227d99355
2011-01-09 14:11:50 -08:00
Jeff Brown
55ecde5deb Add libinput native tests.
Change-Id: I92baa7eae536486d2daf122d40cdf8a8cab10a89
2011-01-02 21:34:53 -08:00
Guang Zhu
b7d67e6b7c add Calculator tests into continous run
Change-Id: Id9e46543e04102b237cae924bfe0f8da68bfe7fc
2010-12-06 14:59:32 -08:00
Fred Quintana
e7f6b2b808 add a rule for running the AccountManager CTS tests
Change-Id: I60bde138bfa8a1770cd8e0c42b7d66bcc881aa10
2010-12-03 15:21:46 -08:00
Jean-Baptiste Queru
a4d6fb3907 am 4ceead6b: am e73f0dfc: Merge "Added adb_interface.WaitForProcess and WaitForProcessEnd."
Merge commit '4ceead6ba01a938499726809c90154cb0e8c1e22'

* commit '4ceead6ba01a938499726809c90154cb0e8c1e22':
  Added adb_interface.WaitForProcess and WaitForProcessEnd.
2010-10-10 17:46:49 -07:00
Jean-Baptiste Queru
4ceead6ba0 am e73f0dfc: Merge "Added adb_interface.WaitForProcess and WaitForProcessEnd."
Merge commit 'e73f0dfc64a55dcdcac92a2cab93de677042fb07' into gingerbread-plus-aosp

* commit 'e73f0dfc64a55dcdcac92a2cab93de677042fb07':
  Added adb_interface.WaitForProcess and WaitForProcessEnd.
2010-10-08 13:52:24 -07:00
Jean-Baptiste Queru
e73f0dfc64 Merge "Added adb_interface.WaitForProcess and WaitForProcessEnd." 2010-10-08 13:43:42 -07:00
Brett Chabot
fb0b7c06a7 Change hosttestlib to use ddm-prebuilt.
Change-Id: I9124f34e6ba5559afc9a4bf9b5c70690385db11a
2010-09-21 11:44:23 -07:00
Jean-Baptiste Queru
d9ef1df4a8 am e98ed06e: am d9380caf: Merge "Make runtest --path smarter when choosing path to build."
Merge commit 'e98ed06e17e28a11609caf133a08b3ced21a049a'

* commit 'e98ed06e17e28a11609caf133a08b3ced21a049a':
  Make runtest --path smarter when choosing path to build.
2010-08-30 13:28:09 -07:00
Jean-Baptiste Queru
e98ed06e17 am d9380caf: Merge "Make runtest --path smarter when choosing path to build."
Merge commit 'd9380caf410ddf4b17a6e5035a89851bc58408f7' into gingerbread-plus-aosp

* commit 'd9380caf410ddf4b17a6e5035a89851bc58408f7':
  Make runtest --path smarter when choosing path to build.
2010-08-30 10:33:39 -07:00
Jean-Baptiste Queru
d9380caf41 Merge "Make runtest --path smarter when choosing path to build." 2010-08-30 09:10:24 -07:00
Ot ten Thije
9290dd9c7d Added adb_interface.WaitForProcess and WaitForProcessEnd.
Relies mostly on common code factored out of WaitForDevicePm and
WaitForDeviceInstrumentation.
2010-08-20 11:18:58 +01:00
Brett Chabot
12c6d3fb68 Make runtest --path smarter when choosing path to build.
The command 'runtest --path <path to parent folder>'
is intended to find and build all tests contained within that parent folder.

However, the runtest logic was flawed in that it assumed building a parent
folder's Android.mk file would build all sub-directories.

This commit changes runtest to explictly look for the rule to build
sub-dir makefiles when creating the set of dirs to build.

Change-Id: Ia7f2172c1be79be8589be5f435fc4fb32569c994
2010-07-29 16:00:53 -07:00
Brett Chabot
3a5897a4fe am d53cf3ba: am 8ddb2873: Change hosttestlib to use ddm-prebuilt.
Merge commit 'd53cf3ba04f48d234200e8418876db62cb0b6b56'

* commit 'd53cf3ba04f48d234200e8418876db62cb0b6b56':
  Change hosttestlib to use ddm-prebuilt.
2010-07-28 11:46:55 -07:00
Brett Chabot
d53cf3ba04 am 8ddb2873: Change hosttestlib to use ddm-prebuilt.
Merge commit '8ddb2873df96c7181c9358f5c9286e273648bf89' into gingerbread-plus-aosp

* commit '8ddb2873df96c7181c9358f5c9286e273648bf89':
  Change hosttestlib to use ddm-prebuilt.
2010-07-28 11:37:12 -07:00
Brett Chabot
8ddb2873df Change hosttestlib to use ddm-prebuilt.
Change-Id: Ibd1c44096893bc8804a4d7644fc83d2edd443bb2
2010-07-27 17:57:38 -07:00
Xia Wang
7f5176b8b2 am e2166993: am 24ff9295: Merge "Add connectivity unit tests to test_defs.xml" into gingerbread
Merge commit 'e2166993c986cecaf84ceee72a900e3a41ecc2f0'

* commit 'e2166993c986cecaf84ceee72a900e3a41ecc2f0':
  Add connectivity unit tests to test_defs.xml
2010-06-29 17:33:00 -07:00
Xia Wang
991ffd7f9a Add connectivity unit tests to test_defs.xml
Change-Id: I15ecb95f7c534a9761cc8bbd16cd6ec661f7af5b
2010-06-29 14:59:26 -07:00
Bill Napier
e9605aa2a0 Merge "Fix to invalid call to manifest.app_info" 2010-06-25 09:41:03 -07:00
Yu Shan Emily Lau
79cd62a759 am 762e331c: am 259651e2: Merge "add test def for calculator" into gingerbread
Merge commit '762e331c2f302c508e5d28f22d0e537790458ef5'

* commit '762e331c2f302c508e5d28f22d0e537790458ef5':
  add test def for calculator
2010-06-23 10:32:38 -07:00
Guang Zhu
cf02f247de add test def for calculator
Change-Id: I2501f0699f6eb286037ed314c30be4818a25c643
2010-06-21 16:55:00 -07:00
Jeff Davidson
c1224d3b35 Fix to invalid call to manifest.app_info
Change-Id: I7bb9f0b10ab814a6fd278d9c2ef1939d5ab9b671
2010-06-17 11:53:49 -07:00
Brett Chabot
b1eb5d2434 resolved conflicts for merge of fa6e5585 to master
Change-Id: I967289246c3472a30f4623581226cbc3054f0b56
2010-06-15 11:18:42 -07:00
Brett Chabot
0e968fa2ee Merge "Workaround for package-private framework tests in runtest." into gingerbread 2010-06-15 10:46:32 -07:00
Brett Chabot
ccae47d0c0 Workaround for package-private framework tests in runtest.
Checks if the test to run is a framework test based on path, and if so
disables the davlik verifier by writing to /data/local.prop and
rebooting device.

Change-Id: Ibf94fb921662b5ddf6136dd12360d5de83a3a284
2010-06-14 15:24:42 -07:00
Jeff Brown
b5d1d1d261 am 28e7280e: am 69825fa9: Merge "Added test definitions for framework UI and Utils libs." into kraken
Merge commit '28e7280e1a2ec4d0d2dd4378c73f14c0b090ce2b'

* commit '28e7280e1a2ec4d0d2dd4378c73f14c0b090ce2b':
  Added test definitions for framework UI and Utils libs.
2010-06-14 11:06:58 -07:00
Jeff Brown
ec5b11b6dd Added test definitions for framework UI and Utils libs.
Change-Id: Idf1a5741cd60e7402d950a8080bcd5dcbc12be09
2010-06-13 20:09:33 -07:00
Guang Zhu
fcd72133c3 update runtest due to libcore location change
Change-Id: I2f273c8952ad60b999c964b3c223cae2b52d83bd
2010-06-11 18:46:56 -07:00
Guang Zhu
d40398268a am c2b27167: fix earlier change for coverage_targets.xml 2010-06-02 22:23:27 -07:00
Guang Zhu
c2b27167dd fix earlier change for coverage_targets.xml
due to previous incorrect change to Makefile, test_defs.xml is missing.
this will add it back in.

Change-Id: I4bd57d24757662477409ba02d3f71122e8e75238
2010-06-02 11:25:59 -07:00