Juan Lang | 9511388 | 2017-05-30 15:20:50 -0700 | [diff] [blame] | 1 | # Copyright (C) 2017 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 | include $(CLEAR_VARS) |
| 17 | |
| 18 | LOCAL_MODULE_TAGS := optional |
| 19 | |
| 20 | LOCAL_JAVA_LIBRARIES := \ |
| 21 | junit \ |
Maurice Lam | 1af628c | 2017-11-13 18:13:57 -0800 | [diff] [blame] | 22 | platform-robolectric-3.1.1-prebuilt \ |
Paul Duffin | 99c4ffb | 2017-12-15 07:22:38 +0000 | [diff] [blame^] | 23 | sdk_vcurrent \ |
| 24 | android.test.base |
Juan Lang | 9511388 | 2017-05-30 15:20:50 -0700 | [diff] [blame] | 25 | |
| 26 | LOCAL_STATIC_JAVA_LIBRARIES := \ |
Juan Lang | 2c0518a | 2017-05-10 17:00:32 -0700 | [diff] [blame] | 27 | android-support-v7-preference \ |
Maurice Lam | c1ebcb2 | 2017-09-06 13:18:30 -0700 | [diff] [blame] | 28 | mockito-robolectric-prebuilt \ |
Juan Lang | 9511388 | 2017-05-30 15:20:50 -0700 | [diff] [blame] | 29 | truth-prebuilt \ |
| 30 | emergencyinfo-test-common |
| 31 | |
| 32 | LOCAL_SRC_FILES := $(call all-java-files-under, src) |
| 33 | |
| 34 | LOCAL_INSTRUMENTATION_FOR := EmergencyInfo |
| 35 | LOCAL_MODULE := EmergencyInfoRoboTests |
| 36 | |
| 37 | include $(BUILD_STATIC_JAVA_LIBRARY) |
| 38 | |
| 39 | ############################################################# |
| 40 | # EmergencyInfo runner target to run the previous target. # |
| 41 | ############################################################# |
| 42 | include $(CLEAR_VARS) |
| 43 | |
| 44 | LOCAL_MODULE := RunEmergencyInfoRoboTests |
| 45 | |
| 46 | LOCAL_SDK_VERSION := current |
| 47 | |
| 48 | LOCAL_STATIC_JAVA_LIBRARIES := \ |
| 49 | EmergencyInfoRoboTests |
| 50 | |
| 51 | LOCAL_TEST_PACKAGE := EmergencyInfo |
| 52 | |
| 53 | LOCAL_INSTRUMENT_SOURCE_DIRS := $(dir $(LOCAL_PATH))../src |
| 54 | |
Maurice Lam | 1af628c | 2017-11-13 18:13:57 -0800 | [diff] [blame] | 55 | include prebuilts/misc/common/robolectric/3.1.1/run_robotests.mk |