Richard Uhler | b29f145 | 2018-09-12 16:38:15 +0100 | [diff] [blame] | 1 | # Copyright (C) 2018 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 | |
| 15 | LOCAL_PATH:= $(call my-dir) |
| 16 | |
Richard Uhler | 04e84e0 | 2019-01-02 11:44:00 +0000 | [diff] [blame] | 17 | # RollbackTestAppAv1.apk |
Richard Uhler | b29f145 | 2018-09-12 16:38:15 +0100 | [diff] [blame] | 18 | include $(CLEAR_VARS) |
| 19 | LOCAL_MODULE_TAGS := optional |
| 20 | LOCAL_MODULE_PATH := $(TARGET_OUT_DATA_APPS) |
Richard Uhler | b29f145 | 2018-09-12 16:38:15 +0100 | [diff] [blame] | 21 | LOCAL_SDK_VERSION := current |
| 22 | LOCAL_SRC_FILES := $(call all-java-files-under, TestApp/src) |
Richard Uhler | 04e84e0 | 2019-01-02 11:44:00 +0000 | [diff] [blame] | 23 | LOCAL_MANIFEST_FILE := TestApp/Av1.xml |
| 24 | LOCAL_PACKAGE_NAME := RollbackTestAppAv1 |
Richard Uhler | b29f145 | 2018-09-12 16:38:15 +0100 | [diff] [blame] | 25 | include $(BUILD_PACKAGE) |
Richard Uhler | 04e84e0 | 2019-01-02 11:44:00 +0000 | [diff] [blame] | 26 | ROLLBACK_TEST_APP_AV1 := $(LOCAL_INSTALLED_MODULE) |
Richard Uhler | b29f145 | 2018-09-12 16:38:15 +0100 | [diff] [blame] | 27 | |
Richard Uhler | 04e84e0 | 2019-01-02 11:44:00 +0000 | [diff] [blame] | 28 | # RollbackTestAppAv2.apk |
Richard Uhler | b29f145 | 2018-09-12 16:38:15 +0100 | [diff] [blame] | 29 | include $(CLEAR_VARS) |
| 30 | LOCAL_MODULE_TAGS := optional |
| 31 | LOCAL_MODULE_PATH := $(TARGET_OUT_DATA_APPS) |
Richard Uhler | b29f145 | 2018-09-12 16:38:15 +0100 | [diff] [blame] | 32 | LOCAL_SDK_VERSION := current |
| 33 | LOCAL_SRC_FILES := $(call all-java-files-under, TestApp/src) |
Richard Uhler | 04e84e0 | 2019-01-02 11:44:00 +0000 | [diff] [blame] | 34 | LOCAL_MANIFEST_FILE := TestApp/Av2.xml |
| 35 | LOCAL_PACKAGE_NAME := RollbackTestAppAv2 |
Richard Uhler | b29f145 | 2018-09-12 16:38:15 +0100 | [diff] [blame] | 36 | include $(BUILD_PACKAGE) |
Richard Uhler | 04e84e0 | 2019-01-02 11:44:00 +0000 | [diff] [blame] | 37 | ROLLBACK_TEST_APP_AV2 := $(LOCAL_INSTALLED_MODULE) |
| 38 | |
Zimuzo | c4073cc | 2019-01-18 18:39:18 +0000 | [diff] [blame] | 39 | # RollbackTestAppACrashingV2.apk |
| 40 | include $(CLEAR_VARS) |
| 41 | LOCAL_MODULE_TAGS := optional |
| 42 | LOCAL_MODULE_PATH := $(TARGET_OUT_DATA_APPS) |
| 43 | LOCAL_SDK_VERSION := current |
| 44 | LOCAL_SRC_FILES := $(call all-java-files-under, TestApp/src) |
| 45 | LOCAL_MANIFEST_FILE := TestApp/ACrashingV2.xml |
| 46 | LOCAL_PACKAGE_NAME := RollbackTestAppACrashingV2 |
| 47 | include $(BUILD_PACKAGE) |
| 48 | ROLLBACK_TEST_APP_A_CRASHING_V2 := $(LOCAL_INSTALLED_MODULE) |
| 49 | |
Richard Uhler | 04e84e0 | 2019-01-02 11:44:00 +0000 | [diff] [blame] | 50 | # RollbackTestAppBv1.apk |
| 51 | include $(CLEAR_VARS) |
| 52 | LOCAL_MODULE_TAGS := optional |
| 53 | LOCAL_MODULE_PATH := $(TARGET_OUT_DATA_APPS) |
| 54 | LOCAL_SDK_VERSION := current |
| 55 | LOCAL_SRC_FILES := $(call all-java-files-under, TestApp/src) |
| 56 | LOCAL_MANIFEST_FILE := TestApp/Bv1.xml |
| 57 | LOCAL_PACKAGE_NAME := RollbackTestAppBv1 |
| 58 | include $(BUILD_PACKAGE) |
| 59 | ROLLBACK_TEST_APP_BV1 := $(LOCAL_INSTALLED_MODULE) |
| 60 | |
| 61 | # RollbackTestAppBv2.apk |
| 62 | include $(CLEAR_VARS) |
| 63 | LOCAL_MODULE_TAGS := optional |
| 64 | LOCAL_MODULE_PATH := $(TARGET_OUT_DATA_APPS) |
| 65 | LOCAL_SDK_VERSION := current |
| 66 | LOCAL_SRC_FILES := $(call all-java-files-under, TestApp/src) |
| 67 | LOCAL_MANIFEST_FILE := TestApp/Bv2.xml |
| 68 | LOCAL_PACKAGE_NAME := RollbackTestAppBv2 |
| 69 | include $(BUILD_PACKAGE) |
| 70 | ROLLBACK_TEST_APP_BV2 := $(LOCAL_INSTALLED_MODULE) |
Richard Uhler | b29f145 | 2018-09-12 16:38:15 +0100 | [diff] [blame] | 71 | |
| 72 | # RollbackTest |
| 73 | include $(CLEAR_VARS) |
| 74 | LOCAL_SRC_FILES := $(call all-java-files-under, src) |
| 75 | LOCAL_PACKAGE_NAME := RollbackTest |
| 76 | LOCAL_MODULE_TAGS := tests |
| 77 | LOCAL_STATIC_JAVA_LIBRARIES := android-support-test |
| 78 | LOCAL_COMPATIBILITY_SUITE := general-tests |
Richard Uhler | 04e84e0 | 2019-01-02 11:44:00 +0000 | [diff] [blame] | 79 | LOCAL_JAVA_RESOURCE_FILES := \ |
| 80 | $(ROLLBACK_TEST_APP_AV1) \ |
| 81 | $(ROLLBACK_TEST_APP_AV2) \ |
Zimuzo | c4073cc | 2019-01-18 18:39:18 +0000 | [diff] [blame] | 82 | $(ROLLBACK_TEST_APP_A_CRASHING_V2) \ |
Richard Uhler | 04e84e0 | 2019-01-02 11:44:00 +0000 | [diff] [blame] | 83 | $(ROLLBACK_TEST_APP_BV1) \ |
| 84 | $(ROLLBACK_TEST_APP_BV2) |
Richard Uhler | c739c8c | 2018-12-12 11:03:34 +0000 | [diff] [blame] | 85 | LOCAL_SDK_VERSION := system_current |
Richard Uhler | b29f145 | 2018-09-12 16:38:15 +0100 | [diff] [blame] | 86 | LOCAL_TEST_CONFIG := RollbackTest.xml |
| 87 | include $(BUILD_PACKAGE) |
| 88 | |
| 89 | # Clean up local variables |
Richard Uhler | 04e84e0 | 2019-01-02 11:44:00 +0000 | [diff] [blame] | 90 | ROLLBACK_TEST_APP_AV1 := |
| 91 | ROLLBACK_TEST_APP_AV2 := |
Zimuzo | c4073cc | 2019-01-18 18:39:18 +0000 | [diff] [blame] | 92 | ROLLBACK_TEST_APP_A_CRASHING_V2 := |
Richard Uhler | 04e84e0 | 2019-01-02 11:44:00 +0000 | [diff] [blame] | 93 | ROLLBACK_TEST_APP_BV1 := |
| 94 | ROLLBACK_TEST_APP_BV2 := |