In preparation for removing junit classes from the Android API the legacy-test target will be removed from the TARGET_DEFAULT_JAVA_LIBRARIES. This change adds explicit dependencies on junit and/or legacy-android-test to ensure that modules will compile properly once it is removed. Bug: 30188076 Test: make checkbuild Change-Id: I13e88297731253420e4e5f5291d503f13a39a156
21 lines
589 B
Makefile
21 lines
589 B
Makefile
LOCAL_PATH:= $(call my-dir)
|
|
|
|
include $(CLEAR_VARS)
|
|
|
|
LOCAL_MODULE_TAGS := tests
|
|
|
|
# Note we statically link SettingsState to do some unit tests. It's not accessible otherwise
|
|
# because this test is not an instrumentation test. (because the target runs in the system process.)
|
|
LOCAL_SRC_FILES := $(call all-subdir-java-files) \
|
|
../src/com/android/providers/settings/SettingsState.java
|
|
|
|
LOCAL_STATIC_JAVA_LIBRARIES := android-support-test legacy-android-test
|
|
|
|
LOCAL_PACKAGE_NAME := SettingsProviderTest
|
|
|
|
LOCAL_MODULE_TAGS := tests
|
|
|
|
LOCAL_CERTIFICATE := platform
|
|
|
|
include $(BUILD_PACKAGE)
|