blob: 22f79dd6bfb7b518e6aa492b9f528f67eb41da92 [file] [log] [blame]
// Copyright (C) 2019 The Android Open Source Project
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
java_test_host {
name: "CtsStagedInstallHostTestCases",
defaults: ["cts_defaults"],
srcs: ["src/**/*.java"],
libs: [
"cts-tradefed",
"tradefed",
"truth-prebuilt",
"hamcrest",
"hamcrest-library",
],
data: [
":StagedInstallTest",
],
test_suites: [
"cts",
"general-tests",
"mts",
],
}
android_test_helper_app {
name: "StagedInstallTest",
srcs: ["app/src/**/*.java"],
manifest : "app/AndroidManifest.xml",
java_resources: [
":ApexKeyRotationTestV2_SignedBob",
":ApexKeyRotationTestV2_SignedBobRot",
":ApexKeyRotationTestV3_SignedBob",
":ApexKeyRotationTestV3_SignedBobRot",
":StagedInstallTestApexV1_NotPreInstalled",
":StagedInstallTestApexV1",
":StagedInstallTestApexV2",
":StagedInstallTestApexV2_AdditionalFile",
":StagedInstallTestApexV2_AdditionalFolder",
":StagedInstallTestApexV2_DifferentCertificate",
":StagedInstallTestApexV2_WithPostInstallHook",
":StagedInstallTestApexV2_WithPreInstallHook",
":StagedInstallTestApexV2_WrongSha",
":StagedInstallTestApexV3",
":StagedInstallTestAppSamePackageNameAsApex",
],
static_libs: [
"androidx.test.runner",
"androidx.test.core",
"truth-prebuilt",
"cts-install-lib",
],
sdk_version: "test_current",
test_suites: ["device-tests"],
}
android_test_helper_app {
name: "StagedInstallTestAppSamePackageNameAsApex",
srcs: ["testdata/apk/src/**/*java"],
manifest: "testdata/apk/StagedInstallTestAppSamePackageNameAsApex.xml",
}
prebuilt_apex {
name: "ApexKeyRotationTestV2_SignedBob",
src: "testdata/apex/com.android.apex.cts.shim.v2_signed_bob.apex",
filename: "com.android.apex.cts.shim.v2_signed_bob.apex",
installable: false,
}
prebuilt_apex {
name: "ApexKeyRotationTestV2_SignedBobRot",
src: "testdata/apex/com.android.apex.cts.shim.v2_signed_bob_rot.apex",
filename: "com.android.apex.cts.shim.v2_signed_bob_rot.apex",
installable: false,
}
prebuilt_apex {
name: "ApexKeyRotationTestV3_SignedBob",
src: "testdata/apex/com.android.apex.cts.shim.v3_signed_bob.apex",
filename: "com.android.apex.cts.shim.v3_signed_bob.apex",
installable: false,
}
prebuilt_apex {
name: "ApexKeyRotationTestV3_SignedBobRot",
src: "testdata/apex/com.android.apex.cts.shim.v3_signed_bob_rot.apex",
filename: "com.android.apex.cts.shim.v3_signed_bob_rot.apex",
installable: false,
}
prebuilt_apex {
name: "StagedInstallTestApexV1",
src: "testdata/apex/com.android.apex.cts.shim.v1.apex",
filename: "com.android.apex.cts.shim.v1.apex",
installable: false,
}
prebuilt_apex {
name: "StagedInstallTestApexV2",
src: "testdata/apex/com.android.apex.cts.shim.v2.apex",
filename: "com.android.apex.cts.shim.v2.apex",
installable: false,
}
prebuilt_apex {
name: "StagedInstallTestApexV3",
src: "testdata/apex/com.android.apex.cts.shim.v3.apex",
filename: "com.android.apex.cts.shim.v3.apex",
installable: false,
}
prebuilt_apex {
name: "StagedInstallTestApexV2_AdditionalFile",
src: "testdata/apex/com.android.apex.cts.shim.v2_additional_file.apex",
filename: "com.android.apex.cts.shim.v2_additional_file.apex",
installable: false,
}
prebuilt_apex {
name: "StagedInstallTestApexV2_AdditionalFolder",
src: "testdata/apex/com.android.apex.cts.shim.v2_additional_folder.apex",
filename: "com.android.apex.cts.shim.v2_additional_folder.apex",
installable: false,
}
prebuilt_apex {
name: "StagedInstallTestApexV2_WithPostInstallHook",
src: "testdata/apex/com.android.apex.cts.shim.v2_with_post_install_hook.apex",
filename: "com.android.apex.cts.shim.v2_with_post_install_hook.apex",
installable: false,
}
prebuilt_apex {
name: "StagedInstallTestApexV2_WithPreInstallHook",
src: "testdata/apex/com.android.apex.cts.shim.v2_with_pre_install_hook.apex",
filename: "com.android.apex.cts.shim.v2_with_pre_install_hook.apex",
installable: false,
}
prebuilt_apex {
name: "StagedInstallTestApexV2_WrongSha",
src: "testdata/apex/com.android.apex.cts.shim.v2_wrong_sha.apex",
filename: "com.android.apex.cts.shim.v2_wrong_sha.apex",
installable: false,
}
prebuilt_apex {
name: "StagedInstallTestApexV1_NotPreInstalled",
src: "testdata/apex/com.android.apex.cts.shim_not_pre_installed.apex",
filename: "com.android.apex.cts.shim_not_pre_installed.apex",
installable: false,
}
prebuilt_apex {
name: "StagedInstallTestApexV2_DifferentCertificate",
src: "testdata/apex/com.android.apex.cts.shim.v2_different_certificate.apex",
filename: "com.android.apex.cts.shim.v2_different_certificate.apex",
installable: false,
}