Commit graph android_packages_modules_Co.../TEST_MAPPING
Message SHA1
Merge changes from topic "target-sdk-tests"
* changes:
  Run testExcludedRoutesDisabled only in APKs with target SDK < T.
  Create CtsNetTestCasesMaxTargetSdk31.

Lorenzo Colitti   authored and   Gerrit Code Review   commited 2022-06-01 02:53:09 +00:00
e051145522
Create CtsNetTestCasesMaxTargetSdk31.
This APK will only run tests that require target SDK 31 or below.

Bug: 233553525
Test: test-only change
Change-Id: Ia86187de50107748d8053194d3f7a55b7947412e

Lorenzo Colitti   commited 2022-05-30 23:36:21 +09:00
9e61b82404
Run libclat_test in presubmit
This has been green for a while.

On postsubmit:
https://android-build.googleplex.com/builds/tests/view?testResultId=TR59428013832586062&invocationId=I95700010046253101

Test: treehugger
Change-Id: I343fa24603df493c785e462a6449eb1129f08c11

Hungming Chen   commited 2022-05-30 16:21:49 +08:00
2e6d107ecc
Remove duplicate postsubmit.
Presubmits already get ran on every postsubmit build.

Bug: 233084498
Change-Id: Ia9af32e8355c37047d810f364379b352699af76d

Florian Mayer   commited 2022-05-18 21:33:09 +00:00
b52114a29e
Add CtsNetTestCasesLatestSdk to presubmit
CtsNetTestCases is already run in presubmit, but
CtsNetTestCasesLatestSdk should also pass on HEAD. The only differences
are the target SDK and the shims used (LatestSdk uses latest stable
shims, CtsNetTestCases uses unstable shims). Thus, add
CtsNetTestCasesLatestSdk to presubmit to ensure the tests keep
passing.

Bug: 228286975
Test: atest CtsNetTestCasesLatestSdk
Change-Id: Idaca34fb8a907a6f0017747b47ca89d5306f3ecc

Paul Hu   commited 2022-05-16 15:51:46 +08:00
206e5f0882
ConnectivityCoverageTests refactoring
ConnectivityCoverageTests is a combination of several test libs, which
are jarjared differently. It causes duplicated classes not to be counted
for coverage properly. Build the test suite directly and apply jarjar
only once on top of everything.

Bug: 227694415
Test: atest ConnectivityCoverageTests

Change-Id: I4350ebdbf98030944ec3857e1ef67d76f26c3b16

markchien   authored and   Remi NGUYEN VAN   commited 2022-04-06 19:35:28 +09:00
e59f5e36e5
Merge "Merge EthernetServiceTests into FrameworksNetTests"
Remi NGUYEN VAN   authored and   Gerrit Code Review   commited 2022-04-04 08:02:04 +00:00
82ef475266
Merge EthernetServiceTests into FrameworksNetTests
As per the TODO, merge EthernetServiceTests into the larger
FrameworksNetTests suite.

Similarly to NetworkStats, NSD or IpSec tests, the tests are also marked
as "non-connectivity-module-test", where "module" actually refers to
modules being built for release (from an S-based branch) today. This is
necessary as the tests and associated code cannot build without T APIs.

Also add FrameworksNetTests to presubmit as non-connectivity-module
tests are not run in presubmit without this.

Test: TH
Merged-In: Id533cdb4ac184b963f570af299dea04754ba88e9
Change-Id: I9950fcb49fdc2217134a59e993941cbe5da0b556

Remi NGUYEN VAN   commited 2022-04-01 15:12:18 +09:00
40da62da48
Add connectivity_native_test to Presubmit
Test connectivity_native_test during presubmit.

Bug: 179733303
Change-Id: Iac8e024605b8fe7470925c3606f1eb79fe1421b5

Tyler Wear   commited 2022-03-25 16:17:30 +00:00
b4ab4c3a20
Remove out-of-date comment.
Test: m
Change-Id: I1575c85c382b4fb9e9e3c04b5e70dab55cef4c60

Lorenzo Colitti   commited 2022-02-21 12:50:11 +09:00
85c1765b01
Merge "Run bpf_existence_test in presubmit."
Lorenzo Colitti   authored and   Gerrit Code Review   commited 2022-02-21 03:45:33 +00:00
b81abf3abe
Run bpf_existence_test in presubmit.
This has been green for a while. On S:

https://android-build.googleplex.com/builds/tests/view?invocationId=I42200010019333308&testResultId=TR79227903031586436

On R:
https://android-build.googleplex.com/builds/tests/view?invocationId=I28900010019347533&testResultId=TR73127903058200457

Test: treehugger
Change-Id: Iece7be238e069c7a71f150893a0f6cc155e7b09b

Lorenzo Colitti   commited 2022-02-18 17:35:04 +09:00
98c83d0148
Cleanup and refine connectivity test config
Remove the include for Connectivity/Tethering TEST_MAPPING as there is
no such file in that directory, add comments on ConnectivityModuleTest
usage, and skip the whole NetworkAgentTest on non-connectivity module
MTS runs.

Bug: 218611855
Test: atest CtsNetTestCasesLatestSdk
Change-Id: Id96ab8a5ae631b0c64f20faedd4a0430eb9318d4

Remi NGUYEN VAN   commited 2022-02-16 20:34:31 +09:00
73da478927
Fix testing with/without connectivity module
Add missing @ConnectivityModuleTest annotations to tests that cover
functionalities that were introduced in a newer connectivity module
update.

Also add CtsNetTestCasesLatestSdk to postsubmit with only APK modules
installed, and with only the connectivity/tethering module installed.
This can then be moved to presubmit to catch such issues before they are
merged.

While doing this cleanup the TEST_MAPPING file in tests/ and merge its
contents into the root TEST_MAPPING file. This does not change anything
for "postsubmit" tests as they are run independently of changes. It only
causes FrameworksNetIntegrationTests to run in presubmit on any change
in modules/Connectivity/ instead of only on modules/Connectivity/tests/
changes, which is how it should be.

Bug: 218611855
Test: TH needs to test TEST_MAPPING
Change-Id: I26629a35d8c2df3db33180ecc22d49d538ad3b8b

Remi NGUYEN VAN   commited 2022-02-16 15:22:30 +09:00
3b81323e4a
[NETD-BPF#19] Mainline part of bpf code from netd
1. Add libnetd_updatable.so in com.android.tethering. The library is
loaded by netd. Currently, it mainly targets on a few functions which
access BPF maps. The functionality may extend in the future.

2. Attach gcroup progs from libnetd_updatable.so.

3. Move (privileged)TagSocket and untagSocket implementation to mainline
module. Combine privilegedTagSocket and untagSocket into a single
function.

4. Split related unit tests from netd_unit_test to
libnetd_updatable_unit_test as well.

Bug: 202086915
Test: cd system/netd; atest
Test: atest TrafficStatsTest NetworkUsageStatsTest

Change-Id: Ib556458103a4cbb643c1342d9b689ac692160de0

Ken Chen   commited 2022-01-30 09:51:25 +08:00
1647f60d66
Rename libnetdbpf to libnetworkstats
Two reason for renaming:
1. Avoid module name collision in sc-mainline-prod branch.
2. The libnetdbpf was misnamed before.

Bug: 202086915
Test: atest libnetworkstats_test FrameworksNetTests
      ConnectivityCoverageTests FrameworksNetSmokeTests
      CtsAppOpsTestCases
Change-Id: I87fcf4b1a9d58780a45743a9aa91b9b936e54266

Ken Chen   commited 2022-01-24 11:53:59 +08:00
f426b2b287
Fix TEST_MAPPING format
Bug: N/A
Test: m
Change-Id: I16760dcea531ff3a20d53dace7b919c877c378b9

Wayne Ma   commited 2022-01-23 23:45:11 +08:00
320b95dd6d
[NETD-TC#13] Make TrafficControllerTest as traffic_controller_unit_test
Delete tagSocket(), privilegedTagSocket() and untagSocket() revelant
test cases since thay are moved out of TrafficController in
aosp/1849156.

Bug: 202086915
Test: atest traffic_controller_unit_test passed
Change-Id: I605577ee4d7076f0c8ad75888a4d32bff90f6104

Wayne Ma   commited 2022-01-23 21:26:09 +08:00
7be6bce52d
[CLATJ#2] libclat: Add libclat_test to postsubmit
Add native library libclat test to postsubmit.

Bug: 212345928
Test: atest libclat_test
Change-Id: Ied5e0796b01c384b3eee2d40c0c735859709be33

Hungming Chen   commited 2022-01-20 22:50:12 +08:00
aaa8bd8b74
Merge "Make MTS verify expected BPF programs based on OS version."
Lorenzo Colitti   authored and   Gerrit Code Review   commited 2022-01-13 08:14:08 +00:00
08a2e03231
Make MTS verify expected BPF programs based on OS version.
While this does not capture all nuances of optional programs,
go devices, etc. it should be a useful starting point to tell us
if something is really unexpected.

Test: test-only change
Test: passes on flame running qt-dev build (no-op)
Test: passes on flame running RQ3A build
Test: passes on raven running SP2A build
Test: passes on barbet running aosp/master
Change-Id: I43ff8c61c861c008cce459d2dcb487bb536c8da8

Lorenzo Colitti   commited 2022-01-13 15:31:27 +09:00
3b38b12071
Test mapping imports for ethernet
Bug: 209505060

Change-Id: Icd74c2fbd9f3c5fc7e59679bb5b99950d8cdb820

Filip Zakrzewski   commited 2022-01-12 17:43:55 +00:00
8a5823db30
Add RequiresDevice to relevant tests
Replace SkipPresubmit with RequiresDevice on relevant tests, as
RequiresDevices is more standard and more specific.

This allows creating test configurations using virtual devices which are
not necessarily in presubmit.

Bug: 201014262
Test: TH needs to verify test mapping run with new annotation
Change-Id: I6758d2a41a9a987a5244e47e4795bc49889c4d61

Remi NGUYEN VAN   commited 2021-10-28 09:49:42 +09:00
9a689f81f4
Add TetheringPrivilegedTests to postsubmit
Also ignore DadProxyTest before S because it is only enabled from S.

To using ignore test rule, replace AndroidJunit with DevSdkIgnoreRunner.
It is fine because the we don't use the test UI (e.g. running test in UI
thread).

Test: atest TetheringPrivilegedTests
Change-Id: I701ee877520f78ded2394adbae1f4d9dd612d700

markchien   authored and   Mark Chien   commited 2021-07-26 02:17:19 +00:00
911cf8fecd
Merge "Add ConnectivityCoverageTests to presubmit"
Remi NGUYEN VAN   authored and   Gerrit Code Review   commited 2021-07-16 06:20:00 +00:00
0909afc08a
Add ConnectivityCoverageTests to presubmit
The tests are now consistently green in postsubmit.

Bug: 187935317
Change-Id: Ib04e5de8e57bd9cca0c9244f12a9668f97ba46f9
Test: Need TH to test

Remi NGUYEN VAN   commited 2021-07-16 01:36:16 +00:00
48c68886ee
Move ConnectivityCoverageTests to mainline-presubmit
Recent runs have been passing in mainline-postsubmit.

Non-mainline presubmit will be added later, after it has been passing
consistently for some time.

Bug: 187935317
Change-Id: I20e3d6f11458f00ff75f32419b964c97635995b1
Test: TH needs to test

Remi NGUYEN VAN   commited 2021-07-15 05:25:58 +00:00
5a1f2f7108
Merge "Add ConnectivityCoverageTests to postsubmit"
Remi NGUYEN VAN   authored and   Gerrit Code Review   commited 2021-06-24 06:32:36 +00:00
09d3a75357
Add ConnectivityCoverageTests to postsubmit
Add the tests to both postsubmit and mainline-postsubmit.

This should allow moving the tests to presubmit in the near future,
after they have been verified to pass in postsubmit.

Bug: 187935317
Test: treehugger needs to test
Change-Id: I9a05d6a300c5f777497e867d0456bc59b06eee80

Remi NGUYEN VAN   commited 2021-06-23 18:02:22 +09:00
8b23feb10e
Remove TEST_MAPPING duplicate imports
The NetworkStack import is already in the duplicate import
clause below it.

This was added by a wrong automerge during the last project
move, and was fixed in some of the downstream branches but
not all. This change should make imports identical in all branches.

Test: treehugger needs to test TEST_MAPPING
Merged-In: I7b5fd61cd551c7010f5b8ceabbfdd04f30f648dd
Merged-In: I71723d3459c14644140b81901dac972b2a746094
Change-Id: I6cbd31506329722d7fa5195a833d7acb4e4787a0

Remi NGUYEN VAN   commited 2021-06-21 06:42:07 +00:00
23974b4da4
Merge history of packages/Connectivity
Modified License Import for:
- Tethering/common/TetheringLib/Android.bp
- framework/Android.bp
- service/Android.bp
- tests/common/Android.bp
- tests/deflake/Android.bp
- tests/integration/Android.bp
- tests/smoketest/Android.bp
- tests/unit/Android.bp
- tests/unit/jni/Android.bp

BUG: 186628461
TEST: TH
Merged-In: I7b5fd61cd551c7010f5b8ceabbfdd04f30f648dd
Merged-In: I3c2563d4ae4e3715d0c6270344ba8f7ef067872f
Change-Id: Ia2185820f485e8ad2d3626a96eab7f5a874736cf

Baligh Uddin   authored and   Remi NGUYEN VAN   commited 2021-05-24 05:45:18 +00:00
3684713b8a
Update connectivity TEST_MAPPING
- Move Tethering TEST_MAPPING up one level to merge with the general
   Connectivity TEST_MAPPING. This allows running the tethering tests
   on any connectivity change.
 - Move TetheringIntegrationTests from postsubmit to presubmit
 - Add TetheringCoverageTests to mainline-postsubmit, so it can be
   added to mainline-presubmit later.
 - Import NetworkStack tests so that they are run on any connectivity
   change.

TetheringIntegrationTests were continuously green in postsubmit.

Bug: 187946226
Change-Id: Ibf05ad64b02c563930ba0f01eb91331b295fe505
Test: Treehugger needed to test TEST_MAPPING files

Remi NGUYEN VAN   commited 2021-05-20 01:26:51 +00:00
d954bfcd32
Add TEST_MAPPING for Connectivity
The TEST_MAPPING triggers connectivity tests in other paths.

Bug: 183198868
Change-Id: I8d9b0450ea4b3ef3e5115d1f858b1aa7badef742
Test: Needs treehugger for testing

Remi NGUYEN VAN   commited 2021-03-19 16:03:14 +00:00
f353baf176
Add CtsNetTestCases to TEST_MAPPING
CtsNetTestCases is identical to CtsNetTestCasesLatestSdk,
with a newer target_sdk and newer API shims.

Bug: 167645754
Change-Id: Ib4e281bf84cb6ba0e7b904d57cef7c985dec2132
Test: atest CtsNetTestCases

Remi NGUYEN VAN   commited 2021-03-01 06:54:57 +00:00
ad380c1de6
Move cts/net/TEST_MAPPING to toplevel
The tests should just be run on any change in packages/modules/Connectivity,
not just changes in the CTS package.

Change-Id: I1c86c402f39a8a9b84e7422445df289c3ea7842f
Test: TEST_MAPPING needs to be verified by TH

Remi NGUYEN VAN   commited 2020-12-15 09:39:58 +00:00
9b6b353b5d
Renamed from tests/cts/net/TEST_MAPPING (Browse further)