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 \ 22 platform-robolectric-prebuilt \ 23 sdk_vcurrent 24 25 LOCAL_STATIC_JAVA_LIBRARIES := \ 26 android-support-v7-preference \ 27 platform-system-robolectric \ 28 truth-prebuilt \ 29 emergencyinfo-test-common 30 31 LOCAL_SRC_FILES := $(call all-java-files-under, src) 32 33 LOCAL_INSTRUMENTATION_FOR := EmergencyInfo 34 LOCAL_MODULE := EmergencyInfoRoboTests 35 36 include $(BUILD_STATIC_JAVA_LIBRARY) 37 38 ############################################################# 39 # EmergencyInfo runner target to run the previous target. # 40 ############################################################# 41 include $(CLEAR_VARS) 42 43 LOCAL_MODULE := RunEmergencyInfoRoboTests 44 45 LOCAL_SDK_VERSION := current 46 47 LOCAL_STATIC_JAVA_LIBRARIES := \ 48 EmergencyInfoRoboTests 49 50 LOCAL_TEST_PACKAGE := EmergencyInfo 51 52 LOCAL_INSTRUMENT_SOURCE_DIRS := $(dir $(LOCAL_PATH))../src 53 54 include prebuilts/misc/common/robolectric/run_robotests.mk 55