Loading tests/RollbackTest/Android.mk +3 −1 Original line number Diff line number Diff line Loading @@ -76,12 +76,14 @@ LOCAL_PACKAGE_NAME := RollbackTest LOCAL_MODULE_TAGS := tests LOCAL_STATIC_JAVA_LIBRARIES := android-support-test LOCAL_COMPATIBILITY_SUITE := general-tests LOCAL_COMPATIBILITY_SUPPORT_FILES := $(ROLLBACK_TEST_APEX_V1) LOCAL_JAVA_RESOURCE_FILES := \ $(ROLLBACK_TEST_APP_AV1) \ $(ROLLBACK_TEST_APP_AV2) \ $(ROLLBACK_TEST_APP_A_CRASHING_V2) \ $(ROLLBACK_TEST_APP_BV1) \ $(ROLLBACK_TEST_APP_BV2) $(ROLLBACK_TEST_APP_BV2) \ $(ROLLBACK_TEST_APEX_V2) LOCAL_SDK_VERSION := system_current LOCAL_TEST_CONFIG := RollbackTest.xml include $(BUILD_PACKAGE) Loading tests/RollbackTest/TestApex/Android.bp 0 → 100644 +56 −0 Original line number Diff line number Diff line // 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. apex { name: "com.android.tests.rollback.testapex.RollbackTestApexV1", manifest: "RollbackTestApexV1.json", file_contexts: "apex.test", prebuilts: ["RollbackTestApex.prebuilt.txt"], key: "RollbackTestApex.key", installable: false, } apex { name: "com.android.tests.rollback.testapex.RollbackTestApexV2", manifest: "RollbackTestApexV2.json", file_contexts: "apex.test", prebuilts: ["RollbackTestApex.prebuilt.txt"], key: "RollbackTestApex.key", installable: false, } apex_key { name: "RollbackTestApex.key", public_key: "com.android.tests.rollback.testapex.avbpubkey", private_key: "com.android.tests.rollback.testapex.pem", installable: false, } prebuilt_etc { name: "RollbackTestApex.prebuilt.txt", src: "RollbackTestApex.prebuilt.txt", } filegroup { name: "RollbackTestApexV1_filegroup", srcs: [":com.android.tests.rollback.testapex.RollbackTestApexV1"], export_to_make_var: "ROLLBACK_TEST_APEX_V1", } filegroup { name: "RollbackTestApexV2_filegroup", srcs: [":com.android.tests.rollback.testapex.RollbackTestApexV2"], export_to_make_var: "ROLLBACK_TEST_APEX_V2", } tests/RollbackTest/TestApex/RollbackTestApex.prebuilt.txt 0 → 100644 +3 −0 Original line number Diff line number Diff line This file contains dummy content to include in the RollbackTestApex. tests/RollbackTest/TestApex/RollbackTestApexV1.json 0 → 100644 +4 −0 Original line number Diff line number Diff line { "name": "com.android.tests.rollback.testapex", "version": 1 } tests/RollbackTest/TestApex/RollbackTestApexV2.json 0 → 100644 +4 −0 Original line number Diff line number Diff line { "name": "com.android.tests.rollback.testapex", "version": 2 } Loading
tests/RollbackTest/Android.mk +3 −1 Original line number Diff line number Diff line Loading @@ -76,12 +76,14 @@ LOCAL_PACKAGE_NAME := RollbackTest LOCAL_MODULE_TAGS := tests LOCAL_STATIC_JAVA_LIBRARIES := android-support-test LOCAL_COMPATIBILITY_SUITE := general-tests LOCAL_COMPATIBILITY_SUPPORT_FILES := $(ROLLBACK_TEST_APEX_V1) LOCAL_JAVA_RESOURCE_FILES := \ $(ROLLBACK_TEST_APP_AV1) \ $(ROLLBACK_TEST_APP_AV2) \ $(ROLLBACK_TEST_APP_A_CRASHING_V2) \ $(ROLLBACK_TEST_APP_BV1) \ $(ROLLBACK_TEST_APP_BV2) $(ROLLBACK_TEST_APP_BV2) \ $(ROLLBACK_TEST_APEX_V2) LOCAL_SDK_VERSION := system_current LOCAL_TEST_CONFIG := RollbackTest.xml include $(BUILD_PACKAGE) Loading
tests/RollbackTest/TestApex/Android.bp 0 → 100644 +56 −0 Original line number Diff line number Diff line // 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. apex { name: "com.android.tests.rollback.testapex.RollbackTestApexV1", manifest: "RollbackTestApexV1.json", file_contexts: "apex.test", prebuilts: ["RollbackTestApex.prebuilt.txt"], key: "RollbackTestApex.key", installable: false, } apex { name: "com.android.tests.rollback.testapex.RollbackTestApexV2", manifest: "RollbackTestApexV2.json", file_contexts: "apex.test", prebuilts: ["RollbackTestApex.prebuilt.txt"], key: "RollbackTestApex.key", installable: false, } apex_key { name: "RollbackTestApex.key", public_key: "com.android.tests.rollback.testapex.avbpubkey", private_key: "com.android.tests.rollback.testapex.pem", installable: false, } prebuilt_etc { name: "RollbackTestApex.prebuilt.txt", src: "RollbackTestApex.prebuilt.txt", } filegroup { name: "RollbackTestApexV1_filegroup", srcs: [":com.android.tests.rollback.testapex.RollbackTestApexV1"], export_to_make_var: "ROLLBACK_TEST_APEX_V1", } filegroup { name: "RollbackTestApexV2_filegroup", srcs: [":com.android.tests.rollback.testapex.RollbackTestApexV2"], export_to_make_var: "ROLLBACK_TEST_APEX_V2", }
tests/RollbackTest/TestApex/RollbackTestApex.prebuilt.txt 0 → 100644 +3 −0 Original line number Diff line number Diff line This file contains dummy content to include in the RollbackTestApex.
tests/RollbackTest/TestApex/RollbackTestApexV1.json 0 → 100644 +4 −0 Original line number Diff line number Diff line { "name": "com.android.tests.rollback.testapex", "version": 1 }
tests/RollbackTest/TestApex/RollbackTestApexV2.json 0 → 100644 +4 −0 Original line number Diff line number Diff line { "name": "com.android.tests.rollback.testapex", "version": 2 }