aboutsummaryrefslogtreecommitdiffstats
path: root/testutils/Android.mk
diff options
context:
space:
mode:
authorTor Norbye <tnorbye@google.com>2012-11-16 20:11:42 +0100
committerTor Norbye <tnorbye@google.com>2012-11-26 17:30:22 -0800
commitb293ca775054871164e9e3c83833a2fd4601387c (patch)
treef7601ace94fd544fcd28404503df055dc1a2ffb2 /testutils/Android.mk
parenta96737ef1ee717e322c87a8ef391440b2aaf03b6 (diff)
downloadsdk-b293ca775054871164e9e3c83833a2fd4601387c.zip
sdk-b293ca775054871164e9e3c83833a2fd4601387c.tar.gz
sdk-b293ca775054871164e9e3c83833a2fd4601387c.tar.bz2
Add sdktestutils package and consolidate some test utility code
This CL creates a new project, sdk/testutils, which is added to the test projects for ADT and lint. It contains various test utility code, some from ADT tests, some from lint tests, and some duplicated in both, and some new utility code such as a better diff-er. The CL also updates a bunch of tests; many golden files are updated to the new test file diff output format, and some golden files were out of date, and in a couple of cases I fixed some bugs I noticed in the output. Change-Id: I98c49c929916ae9bad24db45602e10ded6c526da
Diffstat (limited to 'testutils/Android.mk')
-rw-r--r--testutils/Android.mk38
1 files changed, 38 insertions, 0 deletions
diff --git a/testutils/Android.mk b/testutils/Android.mk
new file mode 100644
index 0000000..2a1f6dc
--- /dev/null
+++ b/testutils/Android.mk
@@ -0,0 +1,38 @@
+#
+# Copyright (C) 2008 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.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+#
+LOCAL_PATH := $(call my-dir)
+include $(CLEAR_VARS)
+
+LOCAL_SRC_FILES := $(call all-java-files-under,src)
+
+LOCAL_JAR_MANIFEST := manifest.txt
+
+# IMPORTANT: if you add a new dependency here, please make sure
+# to also check the following files:
+# testutils/manifest.txt
+LOCAL_JAVA_LIBRARIES := \
+ common \
+ junit \
+ guava-tools
+
+LOCAL_MODULE := sdktestutils
+
+LOCAL_MODULE_TAGS := optional
+
+include $(BUILD_HOST_JAVA_LIBRARY)
+
+# Build all sub-directories
+include $(call all-makefiles-under,$(LOCAL_PATH))