Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e58f9339 authored by Remi NGUYEN VAN's avatar Remi NGUYEN VAN Committed by Automerger Merge Worker
Browse files

Add NetworkStackTests / NetworkStackNextTests to mainline-presubmit am: 0e6d63fe am: e6781b7b

Original change: https://android-review.googlesource.com/c/platform/packages/modules/NetworkStack/+/1504413

Change-Id: Ifb7d6ce9a1ecce6f53eafe2af60edc64db32f3d4
parents c299df2b e6781b7b
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -14,5 +14,16 @@
    {
      "name": "NetworkStackIntegrationTests"
    }
  ],
  "mainline-presubmit": [
    // These are unit tests only, so they don't actually require any modules to be installed.
    // We must specify at least one module here or the tests won't run. Use the same set as CTS
    // so in theory the infra would not need to reinstall/reboot devices to run both.
    {
      "name": "NetworkStackTests[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]"
    },
    {
      "name": "NetworkStackNextTests[CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex]"
    }
  ]
}
+5 −2
Original line number Diff line number Diff line
@@ -47,9 +47,11 @@ java_defaults {
android_test {
    name: "NetworkStackNextTests",
    srcs: [], // TODO: tests that only apply to the current, non-stable API can be added here
    test_suites: ["device-tests"],
    test_suites: ["general-tests"],
    test_mainline_modules: ["CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex"],
    defaults: ["NetworkStackTestsDefaults"],
    static_libs: ["NetworkStackApiCurrentLib"],
    compile_multilib: "both", // Workaround for b/147785146 for mainline-presubmit
}

// Library containing the unit tests. This is used by the coverage test target to pull in the
@@ -70,7 +72,8 @@ android_library {
android_test {
    name: "NetworkStackTests",
    min_sdk_version: "29",
    test_suites: ["device-tests", "mts"],
    test_suites: ["general-tests", "mts"],
    test_mainline_modules: ["CaptivePortalLoginGoogle.apk+NetworkStackGoogle.apk+com.google.android.resolv.apex+com.google.android.tethering.apex"],
    defaults: ["NetworkStackTestsDefaults"],
    static_libs: ["NetworkStackApiStableLib"],
    compile_multilib: "both",