James Lemieux | 328bfcc | 2018-11-26 17:32:55 -0800 | [diff] [blame] | 1 | ############################################################# |
| 2 | # Car Settings Robolectric test target. # |
| 3 | ############################################################# |
| 4 | LOCAL_PATH := $(call my-dir) |
roger xue | 843fbc4 | 2017-02-22 16:20:08 -0800 | [diff] [blame] | 5 | include $(CLEAR_VARS) |
| 6 | |
Jian Jin | ee365cd | 2018-03-06 12:56:41 -0800 | [diff] [blame] | 7 | LOCAL_MODULE := CarSettingsRoboTests |
James Lemieux | 328bfcc | 2018-11-26 17:32:55 -0800 | [diff] [blame] | 8 | LOCAL_MODULE_CLASS := JAVA_LIBRARIES |
Jian Jin | ee365cd | 2018-03-06 12:56:41 -0800 | [diff] [blame] | 9 | |
roger xue | 843fbc4 | 2017-02-22 16:20:08 -0800 | [diff] [blame] | 10 | LOCAL_SRC_FILES := $(call all-java-files-under, src) |
| 11 | |
Jian Jin | ccbf466 | 2018-04-04 11:18:03 -0700 | [diff] [blame] | 12 | LOCAL_JAVA_RESOURCE_DIRS := config |
| 13 | |
roger xue | 843fbc4 | 2017-02-22 16:20:08 -0800 | [diff] [blame] | 14 | LOCAL_JAVA_LIBRARIES := \ |
Jian Jin | ee365cd | 2018-03-06 12:56:41 -0800 | [diff] [blame] | 15 | Robolectric_all-target \ |
James Lemieux | 0703150 | 2018-10-12 17:03:26 -0700 | [diff] [blame] | 16 | robolectric_android-all-stub \ |
Jian Jin | ee365cd | 2018-03-06 12:56:41 -0800 | [diff] [blame] | 17 | mockito-robolectric-prebuilt \ |
James Lemieux | 0703150 | 2018-10-12 17:03:26 -0700 | [diff] [blame] | 18 | truth-prebuilt \ |
davidln | 33c0501 | 2018-09-21 17:25:03 -0700 | [diff] [blame] | 19 | testng \ |
James Lemieux | 0703150 | 2018-10-12 17:03:26 -0700 | [diff] [blame] | 20 | android.car |
roger xue | 843fbc4 | 2017-02-22 16:20:08 -0800 | [diff] [blame] | 21 | |
davidln | 7586210 | 2018-09-24 09:44:04 -0700 | [diff] [blame] | 22 | LOCAL_INSTRUMENTATION_FOR := CarSettingsForTesting |
roger xue | 843fbc4 | 2017-02-22 16:20:08 -0800 | [diff] [blame] | 23 | |
| 24 | LOCAL_MODULE_TAGS := optional |
| 25 | |
James Lemieux | 328bfcc | 2018-11-26 17:32:55 -0800 | [diff] [blame] | 26 | # Generate test_config.properties |
| 27 | include external/robolectric-shadows/gen_test_config.mk |
| 28 | |
roger xue | 843fbc4 | 2017-02-22 16:20:08 -0800 | [diff] [blame] | 29 | include $(BUILD_STATIC_JAVA_LIBRARY) |
| 30 | |
| 31 | ############################################################# |
James Lemieux | 328bfcc | 2018-11-26 17:32:55 -0800 | [diff] [blame] | 32 | # Car Settings runner target to run the previous target. # |
roger xue | 843fbc4 | 2017-02-22 16:20:08 -0800 | [diff] [blame] | 33 | ############################################################# |
| 34 | include $(CLEAR_VARS) |
| 35 | |
| 36 | LOCAL_MODULE := RunCarSettingsRoboTests |
| 37 | |
Jian Jin | ee365cd | 2018-03-06 12:56:41 -0800 | [diff] [blame] | 38 | LOCAL_JAVA_LIBRARIES := \ |
Jian Jin | ee365cd | 2018-03-06 12:56:41 -0800 | [diff] [blame] | 39 | Robolectric_all-target \ |
James Lemieux | 0703150 | 2018-10-12 17:03:26 -0700 | [diff] [blame] | 40 | robolectric_android-all-stub \ |
Jian Jin | ee365cd | 2018-03-06 12:56:41 -0800 | [diff] [blame] | 41 | mockito-robolectric-prebuilt \ |
James Lemieux | 0703150 | 2018-10-12 17:03:26 -0700 | [diff] [blame] | 42 | truth-prebuilt \ |
davidln | 33c0501 | 2018-09-21 17:25:03 -0700 | [diff] [blame] | 43 | testng \ |
James Lemieux | 0703150 | 2018-10-12 17:03:26 -0700 | [diff] [blame] | 44 | CarSettingsRoboTests \ |
| 45 | android.car |
roger xue | 843fbc4 | 2017-02-22 16:20:08 -0800 | [diff] [blame] | 46 | |
davidln | 7586210 | 2018-09-24 09:44:04 -0700 | [diff] [blame] | 47 | LOCAL_TEST_PACKAGE := CarSettingsForTesting |
roger xue | 843fbc4 | 2017-02-22 16:20:08 -0800 | [diff] [blame] | 48 | |
smaraaosp | 8252dcd | 2017-11-17 13:04:39 -0800 | [diff] [blame] | 49 | LOCAL_INSTRUMENT_SOURCE_DIRS := $(dir $(LOCAL_PATH))../src |
| 50 | |
Jian Jin | ee365cd | 2018-03-06 12:56:41 -0800 | [diff] [blame] | 51 | include external/robolectric-shadows/run_robotests.mk |