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.
Merge commit '3db7a730bce818196c216945f866939bf8a7401f'
* commit '3db7a730bce818196c216945f866939bf8a7401f':
Add ApiDemos to the test build, and cts-permission2 tests to test_defs.xml.
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.
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.
Merge commit '07290d5d928afc9e7af606d58db0ff9310291906'
* commit '07290d5d928afc9e7af606d58db0ff9310291906':
Added the test definiton for the cameraLatnecy and the mediamemorystress test
Merge commit '8f7e926c115ece3b9c8972ae9d03113850220bcb'
* commit '8f7e926c115ece3b9c8972ae9d03113850220bcb':
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.
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.
Merge commit '213bd6deff91eb629dc90d02437deab5eb494fb7'
* commit '213bd6deff91eb629dc90d02437deab5eb494fb7':
Added the mediaapitest, mediarecordertest and stress test in the testrunner.So
Merge commit 'db7a7909599514d0337b04058d8aa1838129f111'
* commit 'db7a7909599514d0337b04058d8aa1838129f111':
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.
Merge commit '5f563d066dd173bd307f5a33581ee325dcd1e81f'
* commit '5f563d066dd173bd307f5a33581ee325dcd1e81f':
Change build path to "packages/app/Camera.apk". So that it will also
Merge commit '97752d4f80740485ec7a248a0f80074fa6a784db'
* commit '97752d4f80740485ec7a248a0f80074fa6a784db':
Add a timeout flag to runtest for running native tests on devices.
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.
Merge commit '9cd49a44162f465402b0f10faa351364c76a5b76'
* commit '9cd49a44162f465402b0f10faa351364c76a5b76':
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.
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.
Merge commit 'd1a367549baba493f2d87c2377e09323b929e772'
* commit 'd1a367549baba493f2d87c2377e09323b929e772':
Modified the command to run native test on the host: