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 | |
James Lemieux | 395f79d | 2017-12-13 14:41:05 -0800 | [diff] [blame^] | 18 | LOCAL_SRC_FILES := $(call all-java-files-under, src) |
Juan Lang | 9511388 | 2017-05-30 15:20:50 -0700 | [diff] [blame] | 19 | |
| 20 | LOCAL_STATIC_JAVA_LIBRARIES := \ |
James Lemieux | 395f79d | 2017-12-13 14:41:05 -0800 | [diff] [blame^] | 21 | platform-robolectric-android-all-stubs \ |
Maurice Lam | c1ebcb2 | 2017-09-06 13:18:30 -0700 | [diff] [blame] | 22 | mockito-robolectric-prebuilt \ |
Juan Lang | 9511388 | 2017-05-30 15:20:50 -0700 | [diff] [blame] | 23 | truth-prebuilt \ |
| 24 | emergencyinfo-test-common |
| 25 | |
James Lemieux | 395f79d | 2017-12-13 14:41:05 -0800 | [diff] [blame^] | 26 | LOCAL_JAVA_LIBRARIES := \ |
| 27 | junit \ |
| 28 | platform-robolectric-3.5.1-prebuilt |
Juan Lang | 9511388 | 2017-05-30 15:20:50 -0700 | [diff] [blame] | 29 | |
| 30 | LOCAL_INSTRUMENTATION_FOR := EmergencyInfo |
| 31 | LOCAL_MODULE := EmergencyInfoRoboTests |
| 32 | |
James Lemieux | 395f79d | 2017-12-13 14:41:05 -0800 | [diff] [blame^] | 33 | LOCAL_MODULE_TAGS := optional |
| 34 | |
Juan Lang | 9511388 | 2017-05-30 15:20:50 -0700 | [diff] [blame] | 35 | include $(BUILD_STATIC_JAVA_LIBRARY) |
| 36 | |
| 37 | ############################################################# |
| 38 | # EmergencyInfo runner target to run the previous target. # |
| 39 | ############################################################# |
| 40 | include $(CLEAR_VARS) |
| 41 | |
| 42 | LOCAL_MODULE := RunEmergencyInfoRoboTests |
| 43 | |
| 44 | LOCAL_SDK_VERSION := current |
| 45 | |
| 46 | LOCAL_STATIC_JAVA_LIBRARIES := \ |
| 47 | EmergencyInfoRoboTests |
| 48 | |
| 49 | LOCAL_TEST_PACKAGE := EmergencyInfo |
| 50 | |
James Lemieux | 395f79d | 2017-12-13 14:41:05 -0800 | [diff] [blame^] | 51 | include prebuilts/misc/common/robolectric/3.5.1/run_robotests.mk |