blob: 9332ee23cd83b1d2185b64b1ef1612abaa306176 [file] [log] [blame]
Santiago Etchebehereec84e742019-02-11 15:26:37 -08001# Copyright (C) 2019 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#############################################
16# ThenePicker Robolectric test target. #
17#############################################
18LOCAL_PATH := $(call my-dir)
19include $(CLEAR_VARS)
20
21LOCAL_MODULE := ThemePickerRoboTests
Bob Badourfddada22021-02-12 14:52:45 -080022LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0
23LOCAL_LICENSE_CONDITIONS := notice
Santiago Etchebehereec84e742019-02-11 15:26:37 -080024LOCAL_SDK_VERSION := system_current
25LOCAL_SRC_FILES := $(call all-java-files-under, src)
26LOCAL_STATIC_JAVA_LIBRARIES := \
27 androidx.test.runner \
28 androidx.test.rules \
29 mockito-robolectric-prebuilt \
Alejandro Nijamkin0f02b082022-11-24 13:43:43 -080030 truth-prebuilt \
31 kotlinx_coroutines_test
32
Santiago Etchebehereec84e742019-02-11 15:26:37 -080033LOCAL_JAVA_LIBRARIES := \
zonghuayangdc451de2021-11-23 14:21:17 +080034 platform-robolectric-4.5.1-prebuilt
Santiago Etchebehereec84e742019-02-11 15:26:37 -080035
36LOCAL_JAVA_RESOURCE_DIRS := config
37
38LOCAL_INSTRUMENTATION_FOR := ThemePicker
39LOCAL_MODULE_TAGS := optional
40
41include $(BUILD_STATIC_JAVA_LIBRARY)
42
43############################################
44# Target to run the previous target. #
45############################################
46include $(CLEAR_VARS)
47
48LOCAL_MODULE := RunThemePickerRoboTests
Bob Badourfddada22021-02-12 14:52:45 -080049LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0
50LOCAL_LICENSE_CONDITIONS := notice
Santiago Etchebehereec84e742019-02-11 15:26:37 -080051LOCAL_SDK_VERSION := system_current
52LOCAL_JAVA_LIBRARIES := \
53 ThemePickerRoboTests
54
55LOCAL_TEST_PACKAGE := ThemePicker
56
Chihhang Chuang36f50742020-02-04 18:39:21 +080057LOCAL_INSTRUMENT_SOURCE_DIRS := packages/apps/ThemePicker/src \
Santiago Etchebehereec84e742019-02-11 15:26:37 -080058
59LOCAL_ROBOTEST_TIMEOUT := 36000
60
61include prebuilts/misc/common/robolectric/3.6.2/run_robotests.mk