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 15LOCAL_PATH := $(call my-dir) 16include $(CLEAR_VARS) 17 18LOCAL_SRC_FILES := $(call all-java-files-under, src) 19 20LOCAL_STATIC_JAVA_LIBRARIES := \ 21 platform-robolectric-android-all-stubs \ 22 mockito-robolectric-prebuilt \ 23 truth-prebuilt \ 24 emergencyinfo-test-common 25 26LOCAL_JAVA_LIBRARIES := \ 27 junit \ 28 platform-robolectric-3.6.1-prebuilt 29 30LOCAL_INSTRUMENTATION_FOR := EmergencyInfo 31LOCAL_MODULE := EmergencyInfoRoboTests 32 33LOCAL_MODULE_TAGS := optional 34 35include $(BUILD_STATIC_JAVA_LIBRARY) 36 37############################################################# 38# EmergencyInfo runner target to run the previous target. # 39############################################################# 40include $(CLEAR_VARS) 41 42LOCAL_MODULE := RunEmergencyInfoRoboTests 43 44LOCAL_SDK_VERSION := current 45 46LOCAL_STATIC_JAVA_LIBRARIES := \ 47 EmergencyInfoRoboTests 48 49LOCAL_TEST_PACKAGE := EmergencyInfo 50 51include prebuilts/misc/common/robolectric/3.6.1/run_robotests.mk