summaryrefslogtreecommitdiffstats
path: root/tests/Android.mk
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Android.mk')
-rw-r--r--tests/Android.mk15
1 files changed, 11 insertions, 4 deletions
diff --git a/tests/Android.mk b/tests/Android.mk
index e9e3a87a..80a1c761 100644
--- a/tests/Android.mk
+++ b/tests/Android.mk
@@ -1,10 +1,17 @@
LOCAL_PATH:= $(call my-dir)
+include $(CLEAR_VARS)
-########################
+# We only want this apk build for tests.
+LOCAL_MODULE_TAGS := tests
-include $(CLEAR_VARS)
+# Include all test java files.
+LOCAL_SRC_FILES := $(call all-java-files-under, src)
+LOCAL_INSTRUMENTATION_FOR := DownloadProvider
+LOCAL_JAVA_LIBRARIES := android.test.runner
+LOCAL_PACKAGE_NAME := DownloadProviderTests
+LOCAL_CERTIFICATE := media
-# no tests to build for now
+include $(BUILD_PACKAGE)
# additionally, build sub-tests in a separate .apk
-include $(call all-makefiles-under,$(LOCAL_PATH)) \ No newline at end of file
+include $(call all-makefiles-under,$(LOCAL_PATH))