blob: f5ab90198e3cc131d472367524959361925ab447 [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 := \
Sorin Bascabc4cc092022-11-08 13:19:59 +000027 androidx.test.core \
Santiago Etchebehereec84e742019-02-11 15:26:37 -080028 androidx.test.runner \
29 androidx.test.rules \
30 mockito-robolectric-prebuilt \
31 truth-prebuilt
32LOCAL_JAVA_LIBRARIES := \
Sorin Bascabc4cc092022-11-08 13:19:59 +000033 platform-robolectric-4.8.2-prebuilt
Santiago Etchebehereec84e742019-02-11 15:26:37 -080034
35LOCAL_JAVA_RESOURCE_DIRS := config
36
37LOCAL_INSTRUMENTATION_FOR := ThemePicker
38LOCAL_MODULE_TAGS := optional
39
40include $(BUILD_STATIC_JAVA_LIBRARY)
41
42############################################
43# Target to run the previous target. #
44############################################
45include $(CLEAR_VARS)
46
47LOCAL_MODULE := RunThemePickerRoboTests
Bob Badourfddada22021-02-12 14:52:45 -080048LOCAL_LICENSE_KINDS := SPDX-license-identifier-Apache-2.0
49LOCAL_LICENSE_CONDITIONS := notice
Santiago Etchebehereec84e742019-02-11 15:26:37 -080050LOCAL_SDK_VERSION := system_current
51LOCAL_JAVA_LIBRARIES := \
52 ThemePickerRoboTests
53
54LOCAL_TEST_PACKAGE := ThemePicker
55
Chihhang Chuang36f50742020-02-04 18:39:21 +080056LOCAL_INSTRUMENT_SOURCE_DIRS := packages/apps/ThemePicker/src \
Santiago Etchebehereec84e742019-02-11 15:26:37 -080057
58LOCAL_ROBOTEST_TIMEOUT := 36000
59
Sorin Bascabc4cc092022-11-08 13:19:59 +000060include prebuilts/misc/common/robolectric/4.8.2/run_robotests.mk