blob: 4b2c618211f568bb4896e939f50675781b5a653f [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
18LOCAL_MODULE_TAGS := optional
19
20LOCAL_JAVA_LIBRARIES := \
21 junit \
Maurice Lam1af628c2017-11-13 18:13:57 -080022 platform-robolectric-3.1.1-prebuilt \
Paul Duffin99c4ffb2017-12-15 07:22:38 +000023 sdk_vcurrent \
24 android.test.base
Juan Lang95113882017-05-30 15:20:50 -070025
26LOCAL_STATIC_JAVA_LIBRARIES := \
Juan Lang2c0518a2017-05-10 17:00:32 -070027 android-support-v7-preference \
Maurice Lamc1ebcb22017-09-06 13:18:30 -070028 mockito-robolectric-prebuilt \
Juan Lang95113882017-05-30 15:20:50 -070029 truth-prebuilt \
30 emergencyinfo-test-common
31
32LOCAL_SRC_FILES := $(call all-java-files-under, src)
33
34LOCAL_INSTRUMENTATION_FOR := EmergencyInfo
35LOCAL_MODULE := EmergencyInfoRoboTests
36
37include $(BUILD_STATIC_JAVA_LIBRARY)
38
39#############################################################
40# EmergencyInfo runner target to run the previous target. #
41#############################################################
42include $(CLEAR_VARS)
43
44LOCAL_MODULE := RunEmergencyInfoRoboTests
45
46LOCAL_SDK_VERSION := current
47
48LOCAL_STATIC_JAVA_LIBRARIES := \
49 EmergencyInfoRoboTests
50
51LOCAL_TEST_PACKAGE := EmergencyInfo
52
53LOCAL_INSTRUMENT_SOURCE_DIRS := $(dir $(LOCAL_PATH))../src
54
Maurice Lam1af628c2017-11-13 18:13:57 -080055include prebuilts/misc/common/robolectric/3.1.1/run_robotests.mk