blob: 86ac4754913edac93e0e42c810d0bcfdf8c660db [file] [log] [blame]
Juan Lang95113882017-05-30 15:20:50 -07001# 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
James Lemieux395f79d2017-12-13 14:41:05 -080018LOCAL_SRC_FILES := $(call all-java-files-under, src)
Juan Lang95113882017-05-30 15:20:50 -070019
20LOCAL_STATIC_JAVA_LIBRARIES := \
James Lemieux395f79d2017-12-13 14:41:05 -080021 platform-robolectric-android-all-stubs \
Maurice Lamc1ebcb22017-09-06 13:18:30 -070022 mockito-robolectric-prebuilt \
Juan Lang95113882017-05-30 15:20:50 -070023 truth-prebuilt \
24 emergencyinfo-test-common
25
James Lemieux395f79d2017-12-13 14:41:05 -080026LOCAL_JAVA_LIBRARIES := \
27 junit \
28 platform-robolectric-3.5.1-prebuilt
Juan Lang95113882017-05-30 15:20:50 -070029
30LOCAL_INSTRUMENTATION_FOR := EmergencyInfo
31LOCAL_MODULE := EmergencyInfoRoboTests
32
James Lemieux395f79d2017-12-13 14:41:05 -080033LOCAL_MODULE_TAGS := optional
34
Juan Lang95113882017-05-30 15:20:50 -070035include $(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
James Lemieux395f79d2017-12-13 14:41:05 -080051include prebuilts/misc/common/robolectric/3.5.1/run_robotests.mk