summaryrefslogtreecommitdiffstats
path: root/tests/Android.mk
diff options
context:
space:
mode:
authorHyunyoung Song <hyunyoungs@google.com>2015-03-02 11:55:42 -0800
committerHyunyoung Song <hyunyoungs@google.com>2015-03-02 11:55:42 -0800
commit170a9f3a1c82bb84b731347c7d38da0702d42d22 (patch)
treec982aed46cdf3ae822de84eca2243d152e6e5a4d /tests/Android.mk
parent5b437d8957c21b5fab42d3540db39da09378cfd7 (diff)
downloadandroid_packages_apps_Trebuchet-170a9f3a1c82bb84b731347c7d38da0702d42d22.zip
android_packages_apps_Trebuchet-170a9f3a1c82bb84b731347c7d38da0702d42d22.tar.gz
android_packages_apps_Trebuchet-170a9f3a1c82bb84b731347c7d38da0702d42d22.tar.bz2
[unit tests] Setup instrument target for the launcher3 unit test
b/19566571 Change-Id: I47da40aa13a3e7c5ec8531e7ef6a9e52f764c565
Diffstat (limited to 'tests/Android.mk')
-rw-r--r--tests/Android.mk27
1 files changed, 24 insertions, 3 deletions
diff --git a/tests/Android.mk b/tests/Android.mk
index 762a52b..eba4ade 100644
--- a/tests/Android.mk
+++ b/tests/Android.mk
@@ -1,4 +1,4 @@
-# Copyright (C) 2011 The Android Open Source Project
+# Copyright (C) 2015 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -12,5 +12,26 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
-#LOCAL_PATH := $(call my-dir)
-#include $(call all-makefiles-under,$(LOCAL_PATH))
+
+LOCAL_PATH := $(call my-dir)
+
+src_dirs := src
+res_dirs := res
+
+include $(CLEAR_VARS)
+
+LOCAL_MODULE_TAGS := tests
+
+LOCAL_STATIC_JAVA_LIBRARIES := android-support-test
+
+LOCAL_SRC_FILES := $(call all-java-files-under, src)
+LOCAL_RESOURCE_DIR := $(addprefix $(LOCAL_PATH)/, $(res_dirs))
+LOCAL_AAPT_FLAGS := --auto-add-overlay
+
+LOCAL_SDK_VERSION := 21
+
+LOCAL_PACKAGE_NAME := Launcher3Tests
+
+LOCAL_INSTRUMENTATION_FOR := Launcher3
+
+include $(BUILD_PACKAGE)