Externalize test code

Change-Id: Iab19397c7a72fb9a3ca63bfd0bc4eaf1a98138ba
diff --git a/build/Android.common.mk b/build/Android.common.mk
index cab1572..a801889 100644
--- a/build/Android.common.mk
+++ b/build/Android.common.mk
@@ -141,3 +141,20 @@
 	$(TEST_COMMON_SRC_FILES) \
 	src/assembler_x86_test.cc \
 	src/managed_register_x86_test.cc
+
+# subdirectories of test/
+TEST_DEX_DIRECTORIES := \
+	AllFields \
+	CreateMethodDescriptor \
+	Fibonacci \
+	IntMath \
+	Interfaces \
+	Main \
+	MyClass \
+	MyClassNatives \
+	Nested \
+	ProtoCompare \
+	ProtoCompare2 \
+	StaticLeafMethods \
+	Statics \
+	XandY