Commit Graph

283 Commits

Author SHA1 Message Date
Brett Chabot
3ae5f8a399 Fix relative class path arg handling in runtest, and some lint errors. 2009-06-28 12:00:47 -07:00
Brett Chabot
764d3fa70d Add support for running host java tests to runtest.
With this change, also refactored runtest as follows: Modified the
test suite schema and python implementation to have an inheritance
structure.  Each test type has its own python module, which will
also handle the logic of running the test.
2009-06-26 14:31:52 -07:00
Android (Google) Code Review
d880efaa3f am 3db7a730: Merge change 4880 into donut
Merge commit '3db7a730bce818196c216945f866939bf8a7401f'

* commit '3db7a730bce818196c216945f866939bf8a7401f':
  Add ApiDemos to the test build, and cts-permission2 tests to test_defs.xml.
2009-06-23 13:08:23 -07:00
Brett Chabot
1e7c475ec2 Remove gtalkservice-permission from platform test_defs.xml.
It needs to be defined in google test defs instead.
2009-06-23 11:58:08 -07:00
Wei Huang
29de4e2c85 add permission test definition for GTalkService. 2009-06-23 10:19:02 -07:00
Brett Chabot
fe905a8cb0 Add ApiDemos to the test build, and cts-permission2 tests to test_defs.xml.
This should enable the ApiDemos sample tests to run continuously again.
2009-06-19 18:34:39 -07:00
Android (Google) Code Review
502ff1f979 am 6f0c1935: Merge change 4487 into donut
Merge commit '6f0c19358e2e782c0376d5fd2bf68f03ad89fd35'

* commit '6f0c19358e2e782c0376d5fd2bf68f03ad89fd35':
  Add framework, downloadprovider, improvider and global search
2009-06-17 18:45:48 -07:00
Brett Chabot
8ccda76271 Add framework, downloadprovider, improvider and global search
permission tests to continuous tests.
2009-06-17 11:38:07 -07:00
niko
a282b76b89 resolved conflicts for merge of 18d7a4e3 to master 2009-06-16 08:19:25 -07:00
Nicolas Catania
18d7a4e3bc Added ASTL tests to the suite. 2009-06-15 15:15:20 -07:00
Android (Google) Code Review
4b6a0c77ba am 70337978: Merge change 4208 into donut
Merge commit '70337978d53c6097577fa03967e256a020cf3253'

* commit '70337978d53c6097577fa03967e256a020cf3253':
  SDK Updater: update all existing local archives, license click through.
  Modify archquery to be able to print any system property.
  Add downloadprovider permission tests runtest shortcut.
2009-06-15 15:02:39 -07:00
Brett Chabot
5de234e8ca Add downloadprovider permission tests runtest shortcut. 2009-06-15 13:04:58 -07:00
Android (Google) Code Review
a8c16a1dc4 am 31d55c61: Merge change 4116 into donut
Merge commit '31d55c618e783d937cb0342c7eeafcd0a6b990fe'

* commit '31d55c618e783d937cb0342c7eeafcd0a6b990fe':
  Add runtest test definition for framework-permission
  - Moved the build variants descriptions into build_system
  Fix the reload of pages after installation of packages.
2009-06-15 11:39:23 -07:00
Brett Chabot
2e1ac5dcc4 Add runtest test definition for framework-permission 2009-06-15 10:51:29 -07:00
Brett Chabot
049b0f2da3 am d6af1fbb: Change cts-permission runtest def to use proper runner.
Merge commit 'd6af1fbbfafc57e63d828d23ea289b0da93ac259'

* commit 'd6af1fbbfafc57e63d828d23ea289b0da93ac259':
  Change cts-permission runtest def to use proper runner.
2009-06-10 12:51:52 -07:00
Brett Chabot
d6af1fbbfa Change cts-permission runtest def to use proper runner. 2009-06-10 11:19:58 -07:00
Karl Rosaen
c0e606535c am 95315b87: Add GlobalSearch to test definitions.
Merge commit '95315b87df02e5f6eea972920533fb56d5547ca8'

* commit '95315b87df02e5f6eea972920533fb56d5547ca8':
  Add GlobalSearch to test definitions.
2009-06-10 07:44:30 -07:00
Karl Rosaen
95315b87df Add GlobalSearch to test definitions. 2009-06-10 11:55:25 +01:00
Android (Google) Code Review
09e29d3a97 am 07290d5d: Merge change 3626 into donut
Merge commit '07290d5d928afc9e7af606d58db0ff9310291906'

* commit '07290d5d928afc9e7af606d58db0ff9310291906':
  Added the test definiton for the cameraLatnecy and the mediamemorystress test
2009-06-09 15:39:23 -07:00
Yu Shan Emily Lau
4c48ea2c84 Added the test definiton for the cameraLatnecy and the mediamemorystress test 2009-06-09 14:33:20 -07:00
Android (Google) Code Review
ef3b02c684 am 8f7e926c: Merge change 3202 into donut
Merge commit '8f7e926c115ece3b9c8972ae9d03113850220bcb'

* commit '8f7e926c115ece3b9c8972ae9d03113850220bcb':
  Make runtest wait for instrumentation install before running test.
2009-06-05 00:30:06 -07:00
Nicolas Catania
1364a6f3e1 am ab80b39f: Fixed valgrind handling issue.
Merge commit 'ab80b39f160a07bf7bd18a84c07c7e2acedb7249'

* commit 'ab80b39f160a07bf7bd18a84c07c7e2acedb7249':
  Fixed valgrind handling issue.
2009-06-04 22:42:51 -07:00
Android (Google) Code Review
8f7e926c11 Merge change 3202 into donut
* changes:
  Make runtest wait for instrumentation install before running test.
2009-06-04 18:54:50 -07:00
Brett Chabot
97d5c50730 Make runtest wait for instrumentation install before running test.
This attempts to address bug 1872940 where runtest will attempt to
run the test before all the new packages pushed via adb sync are
actually installed. This won't completely fix the bug in all cases,
but hopefully will help most situations.
2009-06-04 18:22:57 -07:00
Nicolas Catania
ab80b39f16 Fixed valgrind handling issue.
Turns out valgrind always exits with error code 0 even when a leak is
detected. Instead we are now looking for an empty output.
2009-06-04 09:45:32 -07:00
Android (Google) Code Review
818ff9c662 am dcd7e153: Merge change 2778 into donut
Merge commit 'dcd7e153ea86f0bd67e0cf2f740f24e8aa9185f5'

* commit 'dcd7e153ea86f0bd67e0cf2f740f24e8aa9185f5':
  Initial change to add cts tests to runtest.
2009-06-02 12:06:00 -07:00
Brett Chabot
49b77117fe Initial change to add cts tests to runtest.
Adds cts test definitions to the testrunner/test_defs.xml.
Adds support for runtest --cts arg, which will run all cts tests.
This temporarily relies on the addition of a 'cts' attribute to the test
definition - a new xml format may be defined later that changes how cts tests
are identified.

This change is based on previous unsubmitted CL
https://android-git.corp.google.com/g/Gerrit#change,1702. The only delta wrt
to that change is the use of InstrumentationCtsTestRunner.

Update: rebased to latest donut.
2009-06-02 11:46:46 -07:00
Android (Google) Code Review
a1826d8dac am 213bd6de: Merge change 2881 into donut
Merge commit '213bd6deff91eb629dc90d02437deab5eb494fb7'

* commit '213bd6deff91eb629dc90d02437deab5eb494fb7':
  Added the mediaapitest, mediarecordertest and stress test in the testrunner.So
2009-06-02 00:36:19 -07:00
Yu Shan Emily Lau
ffbc7c9f59 Added the mediaapitest, mediarecordertest and stress test in the testrunner.So
the partner can run the test easier.
2009-06-01 16:55:49 -07:00
Android (Google) Code Review
cfb3dc2cf5 am db7a7909: Merge change 2687 into donut
Merge commit 'db7a7909599514d0337b04058d8aa1838129f111'

* commit 'db7a7909599514d0337b04058d8aa1838129f111':
  Add support for parsing code coverage file path to runtest and related cleanup.
2009-05-29 13:42:09 -07:00
Brett Chabot
ae68f1a865 Add support for parsing code coverage file path to runtest and related cleanup.
This change is to adapt runtest to the InstrumentationTestRunner change which
dumps coverage data to the app's local data folder, instead of a fixed file on
the sdcard.

Also fixed adb_interace.StartInstrumentationForPackage, added better handling
when generating coverage for tests with unknown coverage targets, and reduced
the duplicate definitions of the "coverage_targets.xml" definition file.
2009-05-29 13:35:13 -07:00
Wei-Ta Chen
b515fb18c2 Add Skia's native tests to the master test definition file. 2009-05-28 14:20:27 -07:00
Owen Lin
e4c2d52998 am 5f563d06: Change build path to "packages/app/Camera.apk". So that it will also build the application code.
Merge commit '5f563d066dd173bd307f5a33581ee325dcd1e81f'

* commit '5f563d066dd173bd307f5a33581ee325dcd1e81f':
  Change build path to "packages/app/Camera.apk". So that it will also
2009-05-27 11:01:15 -07:00
Owen Lin
5f563d066d Change build path to "packages/app/Camera.apk". So that it will also
build the application code.
2009-05-27 10:19:02 -07:00
Phil Dubach
24783d6332 am 7c343cef: Add XML Schema for runtest\'s test_defs.xml file
Merge commit '7c343cef7e7cd56aafb7b8a602ceb6462a6bbb71'

* commit '7c343cef7e7cd56aafb7b8a602ceb6462a6bbb71':
  Add XML Schema for runtest's test_defs.xml file
2009-05-22 15:04:46 -07:00
Phil Dubach
7c343cef7e Add XML Schema for runtest's test_defs.xml file 2009-05-22 14:56:35 -07:00
Fred Quintana
83ce803690 add a definition for a ContentProviderOperation unit test 2009-05-22 14:17:58 -07:00
Wei-Ta Chen
efbbe29a2c am 97752d4f: Add a timeout flag to runtest for running native tests on devices.
Merge commit '97752d4f80740485ec7a248a0f80074fa6a784db'

* commit '97752d4f80740485ec7a248a0f80074fa6a784db':
  Add a timeout flag to runtest for running native tests on devices.
2009-05-22 07:57:20 -07:00
Wei-Ta Chen
97752d4f80 Add a timeout flag to runtest for running native tests on devices. 2009-05-21 18:17:08 -07:00
Android (Google) Code Review
e30d377bd3 am 55deffa3: Merge change 1736 into donut
Merge commit '55deffa35e528959e7de41198ee146e79fb71618'

* commit '55deffa35e528959e7de41198ee146e79fb71618':
  Add tests definition (unit tests and stress tests) for Camera.
2009-05-20 14:33:04 -07:00
Owen Lin
04eccd893a Add tests definition (unit tests and stress tests) for Camera. 2009-05-15 10:08:00 -07:00
Android (Google) Code Review
5e7048c4d6 am dda76aac: Merge change 1673 into donut
Merge commit 'dda76aac46ea47d705db79578406f24937774e9e'

* commit 'dda76aac46ea47d705db79578406f24937774e9e':
  Made valgrind optional. Capture the target output.
2009-05-14 14:53:23 -07:00
Nicolas Catania
bcd93dc46a Made valgrind optional. Capture the target output.
Don't fail if valgrind (system version not the google3 one) is missing.
If the test fail, print the output of the test.
Added .pyc to the gitignore file.
2009-05-14 12:25:23 -07:00
Android (Google) Code Review
cfce2266bb am 9cd49a4: Merge change 1160 into donut
Merge commit '9cd49a44162f465402b0f10faa351364c76a5b76'

* commit '9cd49a44162f465402b0f10faa351364c76a5b76':
  Add ability to specify relative class paths when using runtest -c
2009-05-08 11:34:11 -07:00
Brett Chabot
292df41bb2 Add ability to specify relative class paths when using runtest -c
"runtest -c .<className>" will now be equivalent to
"runtest -c <package>.<className>", where package is the test-app's package as defined in test_defs.xml.
2009-05-07 11:09:40 -07:00
Brett Chabot
6c6c1ab5fd Manual merge of runtest fixes in donut and new account test def add in master.
commit 8a101cb057
Author: Brett Chabot <brettchabot@google.com>
Date:   Tue May 5 12:56:39 2009 -0700

    runtest.py bug fixes.

    Improved error handling, and added support for "size" and "package" arguments.
    Removed deprecated runtest shell script.
2009-05-06 11:45:33 -07:00
Brett Chabot
8a101cb057 runtest.py bug fixes.
Improved error handling, and added support for "size" and "package" arguments.
Removed deprecated runtest shell script.
2009-05-05 13:06:00 -07:00
Android (Google) Code Review
cddee7597f am 106e79f: Merge change 889 into donut
Merge commit '106e79fa3fcd5eae06d57c2dacc34883e60617a7'

* commit '106e79fa3fcd5eae06d57c2dacc34883e60617a7':
  Broaden the search for native test files.
2009-05-04 11:36:34 -07:00
Nicolas Catania
ff096c1b7b Broaden the search for native test files.
Previously we were looking for test files with this pattern: test_*
I added *_test.[cc|cpp] and *_unittest.[cc|cpp]

The search also scan all the subdirectories of the build_path from
the test definition.

I added a filtering stage where missing tests are ignored.
For instance we may have a source file that has not been built for
the target, in which case it is ignored when we run the target tests.

In android_build.py I added 4 helper functions to get access to the
build environment:
- GetHostBin
- GetProductOut
- GetTargetSystemBin
- GetHostOsArch

Replace all the hardcoded linux-x86 strings with the value returned
by GetHostOsArch.
2009-05-02 09:10:44 -07:00
Android (Google) Code Review
7e5591e788 am d1a3675: Merge change 856 into donut
Merge commit 'd1a367549baba493f2d87c2377e09323b929e772'

* commit 'd1a367549baba493f2d87c2377e09323b929e772':
  Modified the command to run native test on the host:
2009-05-01 11:59:00 -07:00