• Home
  • History
  • Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Copyright (C) 2008 The Android Open Source Project
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7//      http://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15package {
16    default_applicable_licenses: ["Android-Apache-2.0"],
17}
18
19android_test {
20    name: "CtsContentTestCases",
21    defaults: ["cts_defaults"],
22
23    // Don't run manifestmerger on dependencies, it is unhappy with the duplicate
24    // REQUIRED_MULTI_DENY permissions in AndroidManifest.xml
25    dont_merge_manifests: true,
26    // Include both the 32 and 64 bit versions
27    compile_multilib: "both",
28    jni_libs: [
29        "libnativecursorwindow_jni",
30        "libnativehelper_compat_libc++",
31    ],
32    libs: [
33        "android.test.runner",
34        "android.test.base",
35        "android.test.mock",
36    ],
37    static_libs: [
38        "apache-commons-compress",
39        "compatibility-device-util-axt",
40        "ctstestrunner-axt",
41        "services.core",
42        "junit",
43        "truth-prebuilt",
44        "accountaccesslib",
45        "ub-uiautomator",
46        // TODO: remove once Android migrates to JUnit 4.12, which provides assertThrows:
47        "testng",
48        "androidx.legacy_legacy-support-v4",
49        "androidx.test.core",
50        "cts-install-lib",
51        "ShortcutManagerTestUtils",
52        "libincfs-prebuilt",
53        "HelloWorldResHardeningLib",
54        "Nene",
55        "Harrier",
56    ],
57    // Use multi-dex as the compatibility-common-util-devicesidelib dependency
58    // on compatibility-device-util-axt pushes us beyond 64k methods.
59    dxflags: ["--multi-dex"],
60    // Resource unit tests use a private locale and some densities
61    aapt_include_all_resources: true,
62    aaptflags: [
63        "-c cs",
64        "-c fil,fil-rPH,fil-rSA",
65        "-c fr,fr-rFR",
66        "-c iw,iw-rIL",
67        "-c kok,b+kok+419,b+kok+419+variant,b+kok+IN,b+kok+Knda,b+kok+Knda+419,b+kok+Knda+419+variant",
68        "-c b+kok+variant",
69        "-c mk,mk-rMK",
70        "-c tl,tl-rPH",
71        "-c tgl,tgl-rPH",
72        "-c tlh",
73        "-c xx,xx-rYY",
74    ],
75    srcs: [
76        "src/**/*.java",
77        "src/**/*.kt",
78        "BinderPermissionTestService/**/I*.aidl",
79    ],
80    data: [
81        // v1/v2/v3/v4 signed version of android.appsecurity.cts.tinyapp to keep checksums stable
82        "data/CtsPkgInstallTinyAppV1.apk",
83        "data/CtsPkgInstallTinyAppV2V3V4.apk",
84        "data/CtsPkgInstallTinyAppV2V3V4.apk.idsig",
85        "data/CtsPkgInstallTinyAppV2V3V4.digests",
86        "data/CtsPkgInstallTinyAppV2V3V4.digests.signature",
87        "data/CtsPkgInstallTinyAppV2V3V4-Sha512withEC.apk",
88        "data/CtsPkgInstallTinyAppV2V3V4-Sha512withEC.apk.idsig",
89        "data/CtsPkgInstallTinyAppV2V3V4-Verity.apk",
90        "data/CtsPkgInstallTinyAppV2V3V4-Verity.apk.idsig",
91        "data/HelloWorld5.digests",
92        "data/HelloWorld5.digests.signature",
93        "data/HelloWorld5_hdpi-v4.digests",
94        "data/HelloWorld5_hdpi-v4.digests.signature",
95        "data/HelloWorld5_mdpi-v4.digests",
96        "data/HelloWorld5_mdpi-v4.digests.signature",
97        "data/malformed.apk.idsig",
98        "data/test-cert.x509.pem",
99    ],
100    java_resources: [
101        ":PackagePropertyTestApp1",
102        ":PackagePropertyTestApp2",
103        ":PackagePropertyTestApp3",
104    ],
105    platform_apis: true,
106    // Tag this module as a cts test artifact
107    test_suites: [
108        "cts",
109        "general-tests",
110        "mts",
111    ],
112    min_sdk_version: "29",
113}
114