Add tests to AppCompat

At the moment they're only covering regressions which
have been fixed recently, and basics.

Change-Id: I24fbae975bd1a7642d2e30ddee9f622bd36b23d2
diff --git a/v7/appcompat/build.gradle b/v7/appcompat/build.gradle
index bbb2fd1..88491d0 100644
--- a/v7/appcompat/build.gradle
+++ b/v7/appcompat/build.gradle
@@ -4,11 +4,18 @@
 
 dependencies {
     compile project(':support-v4')
+    androidTestCompile 'com.android.support.test:testing-support-lib:0.1'
+    testCompile 'junit:junit:4.12'
 }
 
 android {
     compileSdkVersion 'current'
 
+    defaultConfig {
+        minSdkVersion 7
+        testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
+    }
+
     sourceSets {
         main.manifest.srcFile 'AndroidManifest.xml'
         main.java.srcDir 'src'
@@ -16,11 +23,10 @@
         main.assets.srcDir 'assets'
         main.resources.srcDir 'src'
 
-        // this moves src/instrumentTest to tests so all folders follow:
-        // tests/java, tests/res, tests/assets, ...
-        // This is a *reset* so it replaces the default paths
         androidTest.setRoot('tests')
         androidTest.java.srcDir 'tests/src'
+        androidTest.res.srcDir 'tests/res'
+        androidTest.manifest.srcFile 'tests/AndroidManifest.xml'
     }
 
     compileOptions {