Commit Graph

371 Commits

Author SHA1 Message Date
Xin Li
b8d81aed6c Merge commit '514a23836bc263e729c89b4c1ec60912a7cb6765' from
oc-mr1-dev-plus-aosp-without-vendor into stage-aosp-master

Change-Id: I9c96b666efe553d2bc51fca5b9ca5d29c45be083
2017-11-14 11:47:59 -08:00
Jack He
3b59d2fd77 Modify bluetooth test target for new Instrumentation test location
Bug: 64687504
Test: runtest -j40 bluetooth
Change-Id: Ifd178836fc31d4294ef6d6ec8bd74d5d97e6d1f5
2017-11-09 18:39:35 +00:00
Dan Willemsen
c34b71e733 Remove unused GetHostOsArch am: c1c3e5f1d8 am: eb469e00c9
am: a6560bb043

Change-Id: Ie7d357aedecff2bcf3222868b2c20339f139c542
2017-10-18 01:13:13 +00:00
Dan Willemsen
eb469e00c9 Remove unused GetHostOsArch
am: c1c3e5f1d8

Change-Id: Ib6f1e5bf6484487b8ce26c8ddaedd7d94c09029b
2017-10-18 01:05:04 +00:00
Dan Willemsen
c1c3e5f1d8 Remove unused GetHostOsArch
The users moved over to GetOutDir, and this shouldn't be parsing
report_config, so remove it.

Test: cs/GetHostOsArch
Change-Id: I9c045071af7f210b4ec19f158016ff53978a8a6c
2017-10-17 13:52:17 -07:00
Jonathan Basseri
4dbe019988 Merge "Support -c and -m for GTEST." am: 85578a8515 am: 02dbc20df0
am: a6088f0828

Change-Id: Ic8e694a1e2a8a17cb47bb7fc050ad57416f75e10
2017-09-19 19:03:10 +00:00
Jonathan Basseri
02dbc20df0 Merge "Support -c and -m for GTEST."
am: 85578a8515

Change-Id: I822e311442c27f47097bdecb39f1c1bb6bda476f
2017-09-19 18:53:38 +00:00
Jonathan Basseri
f6051de6f4 Support -c and -m for GTEST.
This takes the --test-class and --test-method options and builds a
--gtest_filter value to use when invoking native tests.

How it works:
ARGS to runtest                     ARG to GTEST
--test-class=    --test-method=     <none>
--test-class=Foo --test-method=     --gtest_filter=Foo.*
--test-class=    --test-method=Bar  --gtest_filter=*.Bar
--test-class=Foo --test-method=Bar  --gtest_filter=Foo.Bar

Advanced:
-m *Iptables* runs all test methods containing 'Iptables' in any class.
-c *ControllerTest runs all tests in any class ending with 'ControllerTest'.

Note that the '.' and '*' characters above are not shell globs. The '*'
are wildcards, and the '.' are literals.

Test: runtest -x system/netd/server/netd_unit_test.cpp -m '*Iptables*'
Test: runtest -x system/netd/server/netd_unit_test.cpp -c BandwidthControllerTest
Test: runtest -x system/netd/server/netd_unit_test.cpp -c BandwidthControllerTest -m '*Iptables*'
Change-Id: I967296da1bdcbc404f5ab91d24f9714eec7b475b
2017-09-15 19:03:26 -07:00
Jason Monk
52faeff639 Merge "Update the runner for systemui" into oc-dr1-dev am: adbcdcba06
am: b8d07625d1

Change-Id: I2a43d749b7ceb8e1aa33d5828814578e31546ab9
2017-06-28 13:50:39 +00:00
Jason Monk
f5c03e60e4 Update the runner for systemui
Test: runtest systemui
Bug: 62935720
Change-Id: Idf5bcf433aad4d0dc170000e6ed397f1c45b8476
2017-06-27 14:25:25 -04:00
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