summaryrefslogtreecommitdiffstats
path: root/testrunner/test_defs
Commit message (Collapse)AuthorAgeFilesLines
* Add flag to grant permissions when running tests.Santos Cordon2015-05-212-0/+15
| | | | | | | | | | | | | This change automatically adds -g to all adb install commands for runtest. It also allows users to: 1) Specify '-k' as a command line arg to avoid granting permissions. 2) Declare a test suite as 'requiring permissions' within test_defs Also fixes a potential bug where continuous="false" would translate to True in the python code. Bug: 21327566 Change-Id: I62d14e8106174861397b3fd8caa3e567e3538713
* Ensure that the native tests are run from /data/nativetest to match TF.Tsu Chiang Chuang2014-02-251-6/+27
| | | | | | Also cleanup a missing test from test_defs.xml Change-Id: I9b50bd3f5c7a100a86dd550d367c8ed9a9f2bd62
* runtest: add an extra pattern for gtest file names (*Tests.[c|cpp])Igor Murashkin2014-01-241-1/+3
| | | | Change-Id: Ia8070804110e8064f79a8063ed6aefc92d71bf7a
* testrunner: don't hardcode "out"JP Abgrall2013-07-111-1/+1
| | | | | | | | "out" can actually be $OUT_DIR. "out/host/arch" is actually $ANDROID_HOST_OUT. Bug: 7183057 Change-Id: I91ed7fdd57da92288f0529ba60cef1520b6d31d3
* Attempt to fix runtest for native tests.Brett Chabot2013-05-161-1/+2
| | | | | | | Create dest dir before pushing Use correct exec path data/nativetest/test/test Change-Id: Ib2555c0e98ea5e13fdf6bf24697bd1b82d74b681
* Make runtest handle inner instrumentation class names.Brett Chabot2012-10-261-2/+4
| | | | | | Bug 7311518 Change-Id: I7c02991445a9fdd2341f54cfd49169fc4e492536
* Change runtest --path to only run first instrumentation found.Brett Chabot2012-10-241-19/+23
| | | | | | Bug 7311518 Change-Id: I208c78c73b821389d942700afe8ea7073c41e8d4
* Make coverage work without test defs.Brett Chabot2012-09-202-5/+15
| | | | Change-Id: I946df038e97dc5c2f40a4610d4076e13ab6bde37
* Fix log syntax.Brett Chabot2012-09-131-6/+16
| | | | | | | And add better error message when instrumentation test is not present. Change-Id: I381421e59a3b667a5c3090ccd49e38fe99d680c5
* Coverage and unbundling changes for runtest.Brett Chabot2012-08-311-9/+0
| | | | | | | | | | | | | | 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
* Fixes for runtestBrian Muramatsu2012-03-081-1/+2
| | | | | | | | | | | | | - 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
* Fix runtest --path for package-private frameworks tests.Brett Chabot2011-08-014-19/+18
| | | | | | | | | | | 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
* Fix runtest --path for tests built against SDK.Brett Chabot2011-07-172-1/+12
| | | | | | Bug 4556556 Change-Id: I3f829cae8f9fc1e64b3a44ac9e306b13b3cead7c
* Add gtest target support for runtest --path.Brett Chabot2011-07-104-149/+395
| | | | | | | | | | | | | | | | | | 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
* am e98ed06e: am d9380caf: Merge "Make runtest --path smarter when choosing ↵Jean-Baptiste Queru2010-08-301-8/+23
|\ | | | | | | | | | | | | | | | | path to build." Merge commit 'e98ed06e17e28a11609caf133a08b3ced21a049a' * commit 'e98ed06e17e28a11609caf133a08b3ced21a049a': Make runtest --path smarter when choosing path to build.
| * am d9380caf: Merge "Make runtest --path smarter when choosing path to build."Jean-Baptiste Queru2010-08-301-8/+23
| |\ | | | | | | | | | | | | | | | | | | Merge commit 'd9380caf410ddf4b17a6e5035a89851bc58408f7' into gingerbread-plus-aosp * commit 'd9380caf410ddf4b17a6e5035a89851bc58408f7': Make runtest --path smarter when choosing path to build.
| | * Merge "Make runtest --path smarter when choosing path to build."Jean-Baptiste Queru2010-08-301-8/+23
| | |\
| | | * Make runtest --path smarter when choosing path to build.Brett Chabot2010-07-291-8/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | | am d53cf3ba: am 8ddb2873: Change hosttestlib to use ddm-prebuilt.Brett Chabot2010-07-281-5/+2
|\| | | | | | | | | | | | | | | | | | | | | | | | | | | Merge commit 'd53cf3ba04f48d234200e8418876db62cb0b6b56' * commit 'd53cf3ba04f48d234200e8418876db62cb0b6b56': Change hosttestlib to use ddm-prebuilt.
| * | | am 8ddb2873: Change hosttestlib to use ddm-prebuilt.Brett Chabot2010-07-281-5/+2
| |\| | | | | | | | | | | | | | | | | | | | | | | | | | Merge commit '8ddb2873df96c7181c9358f5c9286e273648bf89' into gingerbread-plus-aosp * commit '8ddb2873df96c7181c9358f5c9286e273648bf89': Change hosttestlib to use ddm-prebuilt.
| | * | Change hosttestlib to use ddm-prebuilt.Brett Chabot2010-07-271-5/+2
| | |/ | | | | | | | | | Change-Id: Ibd1c44096893bc8804a4d7644fc83d2edd443bb2
| * / code coverage improvement (DO NOT MERGE)Guang Zhu2010-05-181-5/+3
| |/ | | | | | | | | | | | | | | * automatically detect if emma is on device * build emma into libcore if necessary * stop runtime before adb sync and restart afterwards Change-Id: Id5087fdd6c0345f2b9b76658a5083b9260af061e
* | update runtest due to libcore location changeGuang Zhu2010-06-111-4/+1
| | | | | | | | Change-Id: I2f273c8952ad60b999c964b3c223cae2b52d83bd
* | code coverage improvementGuang Zhu2010-04-201-5/+3
| | | | | | | | | | | | | | | | * automatically detect if emma is on device * build emma into libcore if necessary * stop runtime before adb sync and restart afterwards Change-Id: I6f1beacdd266310c481351165a054dca8f8657b2
* | Runtest support for tests that need 'make' not 'mmm' to build.Brett Chabot2010-04-162-0/+12
| | | | | | | | Change-Id: I0508db2578826249f9bf4756d5adc6f95e841231
* | runtest --path fails with symlinked ANDROID_BUILD_TOPBrian Carlstrom2010-04-151-5/+5
|/ | | | | | | | | While reproducing b/2558977 I found that "runtest --path" did not work for me because my ANDROID_BUILD_TOP contained a symlink. This is a local fix to make FindTests use os.path.realpath instead of only half using os.path.abspath when trying to make canonical paths to compare. Change-Id: Ief353f52cb80b1798edc3c1233d1e082d9cebc26
* fix runtest for unqualified Instrumentation class namesFred Quintana2010-03-161-1/+2
| | | | | Change-Id: I0dcc9918b0bde568219d9085e8bbbc4cbba2b552 http://b/issue?id=2472406
* Change runtest 'overriding test def' log to silent.Brett Chabot2010-03-021-1/+1
| | | | Change-Id: I9b52aac04f2b95e9c93963bfad0c6d29dbddb87d
* Add "annotation" and "not-annotation" args to runtest.Brett Chabot2010-02-231-0/+4
| | | | | | Bug 2239240 Change-Id: I49bbee4b74e8b0a51b6e6144818a7e9c08b1b5c2
* Replace runtest --cts option with more generic --suite option.Brett Chabot2010-02-194-18/+18
| | | | | | | | This will allow you to run a the set of test_defs with attribute suite="foo" like this: runtest --suite foo Bug 2401250
* Added gtest to the list. cd to /sdcard before running native tests.Nicolas Catania2010-02-101-1/+1
| | | | | | | Some test need to be run in a place where they can write on the disk. I know we should stop using /sdcard but until I see the new document explaining how the launcher can access the playground, we are going to keep it that way.
* Add support for generating coverage per test suite size to runtest.Brett Chabot2010-01-221-1/+2
|
* Add runtest --path.Brett Chabot2009-10-262-1/+297
| | | | | | | | | | This supports specifying a file system path to test(s) to run. The path can be a java test class file, a java package directory, or a parent directory containing many tests. This change allows users to run tests independently from test_defs.xml. BUG 2133198
* Remove runtest dependency on current dir being build top.Brett Chabot2009-10-211-1/+1
| | | | This change is necessary to support relative path based args.
* Add support to run only tests in a given java package.Brett Chabot2009-10-211-2/+18
|
* Refactor runtest test_defs to allow programmatic creation.Brett Chabot2009-10-217-190/+319
| | | | | Previously a test definition could only be created via xml. Also fix some minor lint warnings.
* 1. Add .c extension to native_test.py so that native test in C can also be ↵Xia Wang2009-08-141-1/+1
| | | | | | picked up by testrunner. 2. Add netkeystore_test into continuous test cycle.
* runtest: Remove run_command -> android_build dependency.Brett Chabot2009-06-291-3/+24
| | | | | This is desired because run_command is used by puppetmaster which should have no dependency on android build system.
* Fix relative class path arg handling in runtest, and some lint errors.Brett Chabot2009-06-283-4/+5
|
* Add support for running host java tests to runtest.Brett Chabot2009-06-266-0/+687
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.