Files
app_Settings/tests/robotests/Android.mk
Paul Duffin 38c844eb11 Use junit instead of junit4-target
Bug: 30188076
Test: make checkbuild
Change-Id: Ic2bc905dd47d771630bb5a7047b0e290fb3dd04f
2016-12-19 14:01:32 +00:00

40 lines
1.0 KiB
Makefile

#############################################
# Settings Robolectric test target. #
#############################################
LOCAL_PATH:= $(call my-dir)
include $(CLEAR_VARS)
LOCAL_SRC_FILES := $(call all-java-files-under, src)
# Include the testing libraries (JUnit4 + Robolectric libs).
LOCAL_STATIC_JAVA_LIBRARIES := \
platform-system-robolectric \
truth-prebuilt
LOCAL_JAVA_LIBRARIES := \
junit \
platform-robolectric-prebuilt \
sdk_vcurrent
LOCAL_INSTRUMENTATION_FOR := Settings
LOCAL_MODULE := SettingsRoboTests
LOCAL_MODULE_TAGS := optional
include $(BUILD_STATIC_JAVA_LIBRARY)
#############################################################
# Settings runner target to run the previous target. #
#############################################################
include $(CLEAR_VARS)
LOCAL_MODULE := RunSettingsRoboTests
LOCAL_SDK_VERSION := current
LOCAL_STATIC_JAVA_LIBRARIES := \
SettingsRoboTests
LOCAL_TEST_PACKAGE := Settings
include prebuilts/misc/common/robolectric/run_robotests.mk