Some tests were moved from frameworks/base 7 years ago (ag/54455),
but the rule was never added so they couldn't have been run with
testrunner.
Test: testClass can be run with "runtest -c testClass android-common-ex"
Bug: 62161211
Change-Id: Ie70f0fc32ceec59c3d89be75415adff34c1402ed
This was installing all modules defined in Soong, since we always load
the Soong-generated Makefile for mm/mmm. So use MODULES-IN-* instead of
all_modules.
Also switch to the new GET-INSTALL-PATH-IN-* arguments.
Bug: 30191725
Change-Id: I8a660e24c9933f3f77eb23efd71f8e374a248576
( cherry-pick of 00d6fa79f7 )
Specifying a runner allows developers to run commands like:
`runtest frameworks-services`
without getting a message like:
"Could not find instrumentation
com.android.frameworks.servicestests/android.test.InstrumentationTestRunner
on device."
Bug: 28833951
Change-Id: I76fb58a8fa16db503c8e98eb5a09c481d41e0a76
Test: Described above
Specifying a runner allows developers to run commands like:
`runtest frameworks-services`
without getting a message like:
"Could not find instrumentation
com.android.frameworks.servicestests/android.test.InstrumentationTestRunner
on device."
Bug: 28833951
Change-Id: I76fb58a8fa16db503c8e98eb5a09c481d41e0a76
Test: Described above
--install-filter parameter is a regular expression that will be used
to match the compiled apks to determine if it needs to be installed.
This is very helpful when there are many apks in a test directory,
but you only care about one during development.
e.g. fw/base/core/tests/coretests
Change-Id: I6a6a04640e549be4d90c9c659e557e7870af6771
Currently runtest script installs and then runs test apks with default
"adb install" and "adb shell am instrument" behavior. They are actually
different, "adb install" uses USER_ALL, "am instrument" uses
USER_CURRENT. This cl introduces a way to specify exactly which user a
test should run with in a multiple user environment. This also provides
a work around for b/22976637 for now.
Bug: 19913735
Bug: 22976637
Change-Id: I65e2b2c79768734a8bc9261f8c4693c9f89016b1
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
ICU exports them using LOCAL_EXPORT_C_INCLUDE_DIRS.
Note that this makefile doesn't building anything
(it's used to test a mk file parser) but it's probably best to
remove all hardcoded references to these paths.
bug: 18581021
Change-Id: Ie3320b405b18a69f35edda510242ef243960b796
The media CTS test apk is quite large, causing installation to often
take (much) longer than the 20 second timeout that runtest uses.
Increasing it to 60 seconds fixes the issue.
Change-Id: I43cc1e094a29f8b1bd18e8f27ff53e183664f2bb