Commit Graph

15 Commits

Author SHA1 Message Date
Hall Liu c78b1e81f4 Stop enforcing the AOSP preupload hook
Exit with code 0 to make it warn-only

Test: run the script
Change-Id: I71e339170af578e98489a0d4396894f0ed0d0865
2019-04-30 14:45:35 -07:00
Hall Liu 5717238df9 Add instructions for local cherry-pick in preupload
Add instructions for performing a local cherry-pick from master to AOSP
in the preupload hook that enforces having an AOSP cherry-pick.

Test: text only
Change-Id: I38fef239c410d83c66698401e54ededcb69faaf9
2019-04-08 13:46:01 -07:00
Hall Liu 95365b9e87 Add preupload hook to remind people to use AOSP
Add a preupload hook for Telecom to remind people to use AOSP for
Telecom changes.

Test: manual
Change-Id: If2a2cedf95dd14b2fa61ca54762937e586e59aff
2019-04-05 15:22:37 -07:00
koushik panuganti 5fb849935b Migrate packages/services/Telecomm to androidx.test
See go/jetpack-test-android-migration

Test: mmma packages/services/Telecomm
Change-Id: I7b9049dc66c959de033d42f0b5c2dbd6bdd7bf62
2019-03-20 06:19:46 +00:00
Hall Liu 0f128dd360 Update testing script
Update testing script to add a flag that exempts the instrumentation
from hidden API checks.

Test: run tests
Change-Id: I487458f805c78ff3873e2b0ac4bacba22befa4c9
2018-05-29 16:10:18 -07:00
Hall Liu 74bb635206 Migrate Telecom tests to JUnit4
Change all tests to use AndroidJUnitRunner instead of
InstrumentationRunner.
TelecomTestCase no longer inherits from AndroidTestCase.
Update the lite_test_telecom script to use JUnit4.

This allows Telecom tests to use modern JUnit4 features. Refactorings
along those lines will be in subsequent CLs.

Bug: 69482930
Test: lite_test_telecom -a
Change-Id: I64a41fa049f2a23f28b7652d7b835d7705e2179a
Merged-In: I64a41fa049f2a23f28b7652d7b835d7705e2179a
2018-01-10 02:06:22 +00:00
Brad Ebinger 7bba111255 Fixes some of the flakiness in Telecom
- Fixes some flakiness in the tests
- Mocks out the ToneGenerator

Test: Run Telecom Unit Tests
Change-Id: If3bd51fe4a82068cc0d712d2e499abde4fdb0481
2017-06-08 14:02:25 -07:00
Hall Liu 90fc0b4085 Add support for telephony tests in testing script
Test: invoke lite_test_telecom or lite_test_telephony
Change-Id: I756c75b4d2784159fecb0fac2ee6d6168a2ae403
2017-03-30 11:31:44 -07:00
Hall Liu 5b8551ef79 Fix unit tests and coverage
1. Fix the NPE that happened because hasVideoCall in CallsManager was
not visible to the unit tests
2. Add additional env variables to ensure that emma is in the classpath
when generating code coverage

Test: unit tests
Change-Id: Ibd621267b4af4e20c41458eb674fd120ca0a1859
2017-03-10 17:05:23 -08:00
Hall Liu 0c4f435ddd Change telecom test script to be zsh compatible
Adds local annotation on variables to prevent leakage and allows for the
aosp_* targets to work.

Test: developer tooling, no testing.
Change-Id: Id869dda7d5c5fd8b253d44e2815311522e674dbc
2016-10-14 13:37:05 -07:00
Hall Liu ccd7841d73 Update telecom testing script to use Jacoco
Bug: 27216235
Change-Id: Ib32a82fe922ca9ce9a2f3452c2276c31021cbdfa
2016-02-17 18:07:21 -08:00
Hall Liu 5b058dfa0d Multithread mmma in testing script
Change-Id: Id659cc29a7af09f66dcef25d8306d09b97b19d5e
2015-12-16 16:30:29 -08:00
Brad Ebinger 1c59a3b116 Add building with dep and exit when make fails
A new "-a" option is added, which supports building with dependencies
(mmma). When a build fails with [-a | -i], the function returns
instead of continuing. "adb root" is also added as a command that is
executed when getting coverage info.

Change-Id: Id1442a56a1fbb1ca2b87f6bbe8280ae9ceeaf3f8
2015-12-15 14:31:58 -08:00
Brad Ebinger 98a44dc75b Change getopts string to fix flags
Change-Id: I181fcd6d3dbbfcec37369ec0c847d8069960b9e2
2015-12-15 10:57:45 -08:00
Hall Liu 2ccf204444 Add script for semi-automating Telecom testing
Change-Id: I9af17b02b12cee7e6c5b9b1eb230e31b8a981357
2015-12-14 17:05:07 -08:00