Commit Graph

263 Commits

Author SHA1 Message Date
Jeff Sharkey
39ffbccdd4 Generalize support library tests.
Change-Id: Icc147a16a90fbb83584424e239e40acc87de8328
2013-05-30 14:28:43 -07:00
Jeff Sharkey
739532e2c7 DO NOT MERGE. Example code for FileProvider.
Shows simple usage of FileProvider to share a private thumbnail
across process boundaries.  Also serves as sample code for javadoc
on FileProvider.

Bug: 7005318
Change-Id: I0ca12977a3832c7c2ac1c254d411a547ffee0a51
2013-05-13 11:38:44 -07:00
Geremy Condra
0303484707 Fixed runtest to work with python != 2.4
Change-Id: I6104adb5a6549eb4eaa3f2096633a49e4743ce50
2012-10-19 15:08:05 -07:00
Eino-Ville Talvala
41ee0fdc33 testrunner: Match test runner name for hardware tests.
Change-Id: I9db719e3dde258c026e0e721e0dd58f80378f199
2012-10-05 17:12:42 -07:00
Brett Chabot
99f717d7d8 Fix runtest syntax.
Change-Id: Ief41103c14c30d53f6c2fe8af5511386d57894c2
2012-09-21 13:01:03 -07:00
Brett Chabot
e1bb1d3be9 Merge "Make coverage work without test defs." into jb-mr1-dev 2012-09-21 12:33:55 -07:00
Brett Chabot
8ac51186a6 Make coverage work without test defs.
Change-Id: I946df038e97dc5c2f40a4610d4076e13ab6bde37
2012-09-20 08:06:05 -07:00
Brett Chabot
b0b8c7816d Fix install of full build packages.
Change-Id: I8296304b2297d3ac746920f5f2f70096d055a46c
2012-09-19 08:32:56 -07:00
Brett Chabot
81c475e4ac Fix log syntax.
And add better error message when instrumentation test is not
present.

Change-Id: I381421e59a3b667a5c3090ccd49e38fe99d680c5
2012-09-13 09:47:25 -07:00
Brett Chabot
7454171f17 Coverage and unbundling changes for runtest.
Stop using 'adb sync' in runtest. It was unreliable even when working
with full platform builds, and doesn't work at all for unbundled apps.
Instead, use output from build command to find produced artifacts and
use 'adb install' where possible.
However, note that this approach won't sync previously built artifacts
to device.

Also adjust to build system support for code coverage. Its no longer
required to build libcore to get code coverage.

Change-Id: I9c5d37897c9570d2d29db3ec82f5c53e60a8f485
2012-08-31 18:55:15 -07:00
Jean-Baptiste Queru
6af1dca8e4 am 10d5a088: am c2d80e96: am 90b4e80e: Merge "Update path to telephonytests directory."
* commit '10d5a0885d4b4f6488f305d033a9c54cb7b1203b':
  Update path to telephonytests directory.
2012-08-20 10:31:43 -07:00
Jean-Baptiste Queru
90b4e80ee9 Merge "Update path to telephonytests directory." 2012-08-20 10:20:55 -07:00
Kenny Root
ff61da9b3a am e2ba6f72: am ecab0379: Merge "Remove useless TestRunner for KeyStoreTests"
* commit 'e2ba6f72dc7f4ffa6323dfd5338de29bbd8fa35f':
  Remove useless TestRunner for KeyStoreTests
2012-08-13 09:26:02 -07:00
Kenny Root
4e0e948e3b Remove useless TestRunner for KeyStoreTests
InstrumentationTestRunner can enumerate the test cases to run without a
special TestRunner in KeyStoreTests.

Change-Id: I9e849d035d78b51ca9a73c52012dab448fc4a7ee
2012-08-10 13:41:20 -07:00
Jake Hamby
e8d4078bea Update path to telephonytests directory.
Update "runtest" to find the frameworks-telephony test cases in
frameworks/opt/telephony instead of frameworks/base/telephony.

Change-Id: I90597ee65b56df5fbe12a1a6730f6ac409443fe8
2012-07-19 12:31:30 -07:00
Jeff Brown
1ab4de260d am 4a0c2c51: am 50d57364: Fix libutils test package path.
* commit '4a0c2c515149e4dd654c0bf47953f85a3fc52fd9':
  Fix libutils test package path.
2012-05-31 16:56:22 -07:00
Jeff Brown
50d57364f9 Fix libutils test package path.
Change-Id: Ibee2db4e75c5872d94984a02ef8bbdc6bd1e4b33
2012-05-31 16:08:05 -07:00
Michael Wright
5177da5f5b Fixed error messages for retrieving environment variables
Change-Id: Ib84479bfc702de1e1c6a0d09ed7ccf6ad06e1b2b
2012-05-29 11:59:24 -07:00
Jeff Brown
6ec6d98533 Update libandroidfw test package.
Change-Id: I88b63ad1465d82f78cf326b474858360fdc26c91
2012-04-06 14:50:23 -07:00
Mike Lockwood
ffc002ef30 Merge commit 'fb11862390f6468a24a3a7aef57ffcfc0f5a3290'
Merge "Increase default runtest -j to 16." into ics-aah

Change-Id: I150ea819617fcfa0e60d14e758d002849718dda2
2012-03-21 15:30:25 -07:00
Mike Lockwood
825502444a Merge commit '12db436d227ad9b97cb3d13812e1175cf9be8ed6'
Increase default runtest -j to 16.

Change-Id: I17adc7c585559ffbd6612b6bf9276cb3c5131f83
2012-03-21 15:29:52 -07:00
Brian Muramatsu
83f4573b4a Fixes for runtest
- No need to include cts/CtsBuild.mk, because that is included by the
  core build system.

- Include the tradefed-prebuilt.jar on the classpath when running
  host side tests.

- Update some of test_defs that have changed. Remove suites that
  have been deleted.

Change-Id: Ie2845db7f209ad4ccb881d2ad47b9415c9f518a4
2012-03-08 11:50:17 -08:00
Yu Shan Emily Lau
9ba4eff7eb Add the camera functional continuous test.
Change-Id: I5f9a35f6d3182ed88fc3ae2d49e2261589dab45b
2012-02-23 15:39:52 -08:00
Brett Chabot
860d73c398 Merge "Fix runtest local.prop handling." 2012-02-22 12:43:18 -08:00
Brett Chabot
25dfd79b2e Fix runtest local.prop handling.
Change-Id: Iec8d942fc11d46bdd54f55485aedb4b0021afee3
2012-02-17 15:58:01 -08:00
Jason Noguchi
91f836cc48 Merge "Adding the mock camera activity test to continuous test." 2012-02-17 13:53:05 -08:00
Jason Noguchi
b707698b1c Adding the mock camera activity test to continuous test.
Change-Id: I7a1ec1a277c4d5734b912d48cee066d3e5e1e368
2012-02-16 18:41:56 -08:00
Jeff Sharkey
2753baa358 Add volley target to runtest.
Change-Id: Ibca1fac9e066a5d0058c47f209e63521ef980080
2012-02-14 17:30:49 -08:00
Brett Chabot
fb11862390 Merge "Increase default runtest -j to 16." into ics-aah 2012-01-17 16:25:52 -08:00
Brett Chabot
12db436d22 Increase default runtest -j to 16.
Change-Id: I4f98a630a7ad75557e462a122b83dd3c36cf6ab6
2012-01-17 16:04:53 -08:00
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