summaryrefslogtreecommitdiffstats
path: root/policy/tests/Android.mk
diff options
context:
space:
mode:
authorBrett Chabot <brettchabot@android.com>2010-06-14 17:06:34 -0700
committerBrett Chabot <brettchabot@android.com>2010-06-14 17:23:08 -0700
commitbe81f4f15dad6d690efcab1973d1e174ce3b001b (patch)
treeac8168f1fbdf6aa169fde84d9d251f60e7d6544a /policy/tests/Android.mk
parent28a6c8e9b366ecfc3518e6b0fb1d1bc46cf823e8 (diff)
downloadframeworks_base-be81f4f15dad6d690efcab1973d1e174ce3b001b.zip
frameworks_base-be81f4f15dad6d690efcab1973d1e174ce3b001b.tar.gz
frameworks_base-be81f4f15dad6d690efcab1973d1e174ce3b001b.tar.bz2
Move out all framework-tests classes.
Previously tests/framework-tests contained a quarantined set of test classes that needed access to package-private framework api. Running these tests normally would cause the dalvik verifier to throw errors. runtest now has support for turning off the dalvik verifier for frameworks tests, so move this tests into their recommended location, close to the source being tested. Also move policy source into a 'src' folder to accommodate the tests move. Change-Id: I62f839da185a55bc553b653bf583fd99da438512
Diffstat (limited to 'policy/tests/Android.mk')
-rw-r--r--policy/tests/Android.mk29
1 files changed, 29 insertions, 0 deletions
diff --git a/policy/tests/Android.mk b/policy/tests/Android.mk
new file mode 100644
index 0000000..ffb60b1
--- /dev/null
+++ b/policy/tests/Android.mk
@@ -0,0 +1,29 @@
+# Copyright 2010, 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)
+
+# We only want this apk build for tests.
+LOCAL_MODULE_TAGS := tests
+
+LOCAL_JAVA_LIBRARIES := android.policy android.test.runner
+
+# Include all test java files.
+LOCAL_SRC_FILES := $(call all-java-files-under, src)
+
+LOCAL_PACKAGE_NAME := FrameworkPolicyTests
+
+include $(BUILD_PACKAGE)
+