Commit Graph

361 Commits

Author SHA1 Message Date
Michal Karpinski
2859eb925a Add a rule for android-common-ex tests in testrunner
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
2017-06-19 12:59:02 +01:00
Chris Wren
4278dfb234 add functional notification tests to runtest.py
Test: runtest.py systemui-functional-notification
Change-Id: I8871d79c0064917310b91ae8a58830a3c08a90fe
2016-11-14 09:59:59 -05:00
Geoffrey Pitsch
777e5d20a1 Remove runtest entry for systemui-google
Test: n/a
Change-Id: Icdfbc6fd47871b094f5e222f2a8f7a371a677eb2
2016-11-08 11:21:51 -05:00
Geoffrey Pitsch
2993857834 Add 'systemui-notification' target to runtest
Test: runtest systemui-notification
Change-Id: Ie895a171c82e3a8187d0f0f4c201e8bcd0e2ecc1
2016-11-07 11:20:25 -05:00
Geoffrey Pitsch
84c8e84586 runtest def for systemui-google
Test: runtest systemui-google
Change-Id: Id19e82f4a6d0786889e44592932387b4d80274a3
2016-11-01 11:19:09 -04:00
Lorenzo Colitti
5439831ee0 Add a test definition for framework networking tests.
Test: runtest frameworks-net  # Runs tests.
Bug: 31479480
Change-Id: Ie7cb0406f5af27fcd78aa2736f64c464eca349f3
2016-10-28 17:14:22 +09:00
Ajay Panicker
1630559a5a Merge "Add Bluetooth unit tests to testrunner" am: 1088af1620 am: ce662e8fe9 am: ed26f06b33
am: 19158e05c7

Change-Id: Ida29c7859ade7c299163e8ed06ce6e55efd51f28
2016-10-26 21:46:28 +00:00
Ajay Panicker
ce662e8fe9 Merge "Add Bluetooth unit tests to testrunner"
am: 1088af1620

Change-Id: Iaade429b275149b43e78ba16a3ea71ba85a95aa0
2016-10-26 21:32:58 +00:00
Ajay Panicker
5d1f72e736 Add Bluetooth unit tests to testrunner
Bluetooth tests can now be run on the device with the command
"runtest bluetooth"

Change-Id: Ic88ee37043b15ca225d587d4526e2ba2311434bb
2016-10-25 16:47:24 -07:00
Jorim Jaggi
a03dff537d Add app transition latency tests to test defs
Change-Id: Iadd991ca186d7006288ff147be745e045df09cb5
2016-10-11 16:27:00 +02:00
Jorim Jaggi
fd16ae9b50 Add SystemUI jank tests to runtest test defs
Test: runtest systemui-jank
Change-Id: I130260c1b2597bea7ee42ec7284802963a17de1d
2016-10-11 14:35:50 +02:00
Chad Brubaker
02e646de03 Merge "Add test defintion for network security config tests" 2016-09-08 16:24:13 +00:00
Geoffrey Pitsch
251ae641b9 runtest target 'systemui' now uses JUnit4
Also only needs to build SystemUITests.apk

Change-Id: Ie237feb8561268a6660d89f4b9b75ada3d02128a
2016-08-26 09:39:29 -04:00
Chad Brubaker
ec4080cffd Add test defintion for network security config tests
Change-Id: Ic46c38d66f7c868ad6ff1f686683eff3e19239cc
2016-08-24 12:39:39 -07:00
Victor Chang
126f40cb35 Enable runtest for ManagedProvisioning test
Change-Id: Ie06b47522c22bf51eb2a09cfd6db7c60714aa040
2016-08-18 19:55:19 +01:00
Dan Willemsen
dba372b234 Merge "runtest: Fix mmm equivalent" am: 0ba0482cc5 am: 7d5963c0af am: 55d7a034e9
am: 2a4c291f9b

Change-Id: I5744476218377af2672de65a4a908a6f9849eec6
2016-08-15 21:31:12 +00:00
Dan Willemsen
2a4c291f9b Merge "runtest: Fix mmm equivalent" am: 0ba0482cc5 am: 7d5963c0af
am: 55d7a034e9

Change-Id: I6e980633407939d4f2f92416b9020a4fe9468a0f
2016-08-15 21:26:35 +00:00
Dan Willemsen
7d5963c0af Merge "runtest: Fix mmm equivalent"
am: 0ba0482cc5

Change-Id: I0b25811ec3371b3aca29650e2577cc789786c512
2016-08-15 21:17:40 +00:00
Dan Willemsen
c794996b46 runtest: Fix mmm equivalent
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
2016-08-11 17:38:23 -07:00
Naveen Kalla
2ab9390717 Add runner to run frameworks-telephony tests
Set the runner to AndroidJUnitRunner for the frameworks-telephony
tests to run successfully.

Change-Id: I10876db2ce2be986f2cdc6f1a7622367d4bd1cc4
2016-07-27 22:06:01 +00:00
Christopher Wiley
3f514202d5 Allow using runtest with frameworks-services tests
( 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
2016-06-07 12:44:45 -07:00
Christopher Wiley
00d6fa79f7 Allow using runtest with frameworks-services tests
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
2016-05-18 12:26:02 -07:00
Erik Kline
c015c09def Remove dhcpcd runtest definition.
The external/dhcpcd tree is done.

Bug: 26991160
Change-Id: I179581454b672adc46914bfb472c61b3dc01ca62
2016-03-09 17:20:14 +09:00
Lorenzo Colitti
e02265e264 Add a test definition for frameworks/base/core/tests/utiltests.
Change-Id: I490d475e22524bf86c92b0a3e418a5c1bb8ebe1f
2016-02-19 15:19:50 +09:00
Mitchell Wills
93178d7ac6 Add frameworks-wifi test name for runtest
Change-Id: I0c4ff02841288b7b249355e4a92b8df6115e70fe
2015-12-02 17:53:55 -08:00
Stuart Scott
ed4c4e800d Merge "Remove CTS tests from runtest.py" 2015-09-28 16:39:19 +00:00
Ying Wang
7baf5da7b9 am ab5b0e57: am f2e32c0c: am e4cded63: Merge "Substitue "/" with "-" in the MODULES-IN phony goal names."
* commit 'ab5b0e5786f42d9fdd6c46637f5da21b88d34f67':
  Substitue "/" with "-" in the MODULES-IN phony goal names.
2015-09-25 00:14:57 +00:00
Ying Wang
f2e32c0c9d am e4cded63: Merge "Substitue "/" with "-" in the MODULES-IN phony goal names."
* commit 'e4cded631dae5fb121891f3ff9a9d72075f21b0e':
  Substitue "/" with "-" in the MODULES-IN phony goal names.
2015-09-24 23:59:26 +00:00
Ying Wang
21d83c6817 Substitue "/" with "-" in the MODULES-IN phony goal names.
Bug: 24309760
Change-Id: I2372d0be0a811b11f3000646a2b7804e93852a84
2015-09-24 16:35:36 -07:00
Ying Wang
32bf15ea7e am 7eca6be6: am f797dc2b: am 944edb56: Merge "Switch to the new mmma implementation using make goals."
* commit '7eca6be6c26f3ba74f4bdf76c17fba33b02dce2a':
  Switch to the new mmma implementation using make goals.
2015-09-24 04:17:35 +00:00
Ying Wang
f797dc2b92 am 944edb56: Merge "Switch to the new mmma implementation using make goals."
* commit '944edb562b67bdf8e052bb292629afd365086df1':
  Switch to the new mmma implementation using make goals.
2015-09-24 02:15:42 +00:00
Ying Wang
1b06fea486 Switch to the new mmma implementation using make goals.
Bug: 24309760
Change-Id: Ia79bbdcd396bd5cadf3deac27cb121b9a816d465
2015-09-23 16:56:25 -07:00
Stuart Scott
be975e3911 Remove CTS tests from runtest.py
bug:24006796
bug:21762834
Change-Id: Ic321ac8871d85cbc0370e09a7eda3826da55b260
2015-09-15 10:38:44 -07:00
Xiaohui Chen
fc784a4e31 runtest: add --install-filter parameter
--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
2015-08-25 12:45:59 -07:00
Xiaohui Chen
85586e0e03 runtest: introduce --user parameter
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
2015-08-24 22:11:59 -07:00
Paul Miller
8d271c71e9 am 2a6d5a10: am 6ae8b0bf: Merge "Remove references to Browser tests"
* commit '2a6d5a10e48e792d0576fe7e0eee1d70759ea927':
  Remove references to Browser tests
2015-07-24 21:26:37 +00:00
Paul Miller
bccba8781a am 2a6d5a10: am 6ae8b0bf: Merge "Remove references to Browser tests"
* commit '2a6d5a10e48e792d0576fe7e0eee1d70759ea927':
  Remove references to Browser tests
2015-07-24 21:24:38 +00:00
Paul Miller
f5da1f2a76 Remove references to Browser tests
Browser is going away

BUG:19351071
Change-Id: Ief2a0843fce4d28be7fa1200021ad2b3aa047958
2015-07-22 11:15:58 -07:00
Jonathan Basseri
6637c564a4 Merge "Add carrier config test to test_defs." into mnc-dev 2015-07-13 21:24:11 +00:00
Jonathan Basseri
98108540bf Add carrier config test to test_defs.
Bug: 21619172
Change-Id: I1fac0bcfc4064ea80b46edd128d8c81e80bd2872
2015-07-09 11:34:41 -07:00
Santos Cordon
0aafaa7081 Add calllog CTS tests.
Bug: 22326097
Change-Id: I3c41d97f8054d20448a6d44d32b04443ba83056b
2015-07-07 13:09:25 -07:00
Santos Cordon
ee1ccab72e Add telecom CTS shortcut.
Change-Id: Ic86e107597676118b0b8ed4ad603a8c09f5e90eb
2015-06-08 17:47:43 -07:00
Santos Cordon
4e0ad8f810 Add flag to grant permissions when running tests.
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
2015-05-21 15:46:59 -07:00
Erik Kline
d07526464e Merge "Add 'dhcpcd' test target name" 2015-03-12 03:32:41 +00:00
Narayan Kamath
e971023a52 am 56f30b11: am f14a3951: Merge "Remove hardcoded ICU include paths."
* commit '56f30b1143a17bbc4a062ae50e6d8d0587261579':
  Remove hardcoded ICU include paths.
2015-01-05 18:03:48 +00:00
Narayan Kamath
15b31c80b9 Remove hardcoded ICU include paths.
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
2015-01-05 17:44:27 +00:00
Erik Kline
0e42c8343c Add 'dhcpcd' test target name
This makes it possible to just type "runtest dhcpcd".

Bug: 18356137
Bug: 18356135
Change-Id: Ie914d0577c9b52134b9cc3f9480e3746d7d81254
2014-12-17 14:25:30 +09:00
Marco Nelissen
1afdaba4e4 Increase install time timeout
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
2014-12-03 11:27:55 -08:00
Dan Albert
24f5368eed Remove uses of stlport in testrunner.
Bug: 15193147
Change-Id: I119846a3423a902e0fd48e30e40788c0946e9b41
2014-11-17 14:12:14 -08:00
Chenjie Luo
48ef4ff408 Modify testrunner/test_defs.xml to delete obsolete cts tests
Bug: 17989468
Change-Id: Ic14603a2b00f35b498ecac3fa4a4f309d29f3408
2014-10-20 12:13:16 -07:00