diff options
author | James Lemieux <jplemieux@google.com> | 2017-12-01 13:23:47 -0800 |
---|---|---|
committer | James Lemieux <jplemieux@google.com> | 2018-01-03 18:03:27 -0800 |
commit | 3165e86d1dc1afb4fbe05ce60189713732108a88 (patch) | |
tree | 5bd9051a77dc7ee775629f67e55ca46b6efeaf52 /shadowapi/Android.mk | |
parent | b00c766978d56ea707d9a0913921b4116416fec1 (diff) | |
download | robolectric-shadows-3165e86d1dc1afb4fbe05ce60189713732108a88.tar.gz |
Compile and execute the Robolectric test suite with make
Bug: 69981104
Test: make Run_all_robolectric_tests
Change-Id: I8fa88c4c20f815c2f51f24995b3410a37fe8f108
Diffstat (limited to 'shadowapi/Android.mk')
-rw-r--r-- | shadowapi/Android.mk | 39 |
1 files changed, 38 insertions, 1 deletions
diff --git a/shadowapi/Android.mk b/shadowapi/Android.mk index 79d5cce5c..aaa9ead51 100644 --- a/shadowapi/Android.mk +++ b/shadowapi/Android.mk @@ -1,3 +1,6 @@ +############################################## +# Compile Robolectric shadowapi +############################################## LOCAL_PATH := $(call my-dir) include $(CLEAR_VARS) @@ -7,4 +10,38 @@ LOCAL_JAVA_LIBRARIES := jsr305lib LOCAL_SRC_FILES := $(call all-java-files-under, src/main/java) -include $(BUILD_HOST_JAVA_LIBRARY)
\ No newline at end of file +include $(BUILD_HOST_JAVA_LIBRARY) + +############################################## +# Compile Robolectric shadowapi tests +############################################## +include $(CLEAR_VARS) + +LOCAL_MODULE := Robolectric_shadowapi_tests + +LOCAL_SRC_FILES := $(call all-java-files-under, src/test/java) + +LOCAL_JAVA_LIBRARIES := \ + Robolectric_shadowapi \ + robolectric-assertj-core-3.8.0 \ + robolectric-junit-4.12 + +include $(BUILD_HOST_JAVA_LIBRARY) + +############################################## +# Execute Robolectric shadowapi tests +############################################## +include $(CLEAR_VARS) + +LOCAL_MODULE := Run_robolectric_shadowapi_tests + +test_source_directory := $(LOCAL_PATH)/src/test/java + +test_runtime_libraries := \ + Robolectric_shadowapi_tests \ + Robolectric_shadowapi \ + robolectric-assertj-core-3.8.0 \ + robolectric-hamcrest-core-1.3 \ + robolectric-junit-4.12 + +include external/robolectric-shadows/run_robolectric_module_tests.mk
\ No newline at end of file |