summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorXavier Ducrohet <xav@google.com>2014-09-19 12:10:03 -0700
committerXavier Ducrohet <xav@android.com>2014-09-19 21:36:11 +0000
commit49b8ec78e2329c498c479d0c7eb234836e447866 (patch)
tree68850bc935abee328b812d230592e80991096750
parent8dac3eb0e17c6df3b40a1e38cd3a4bd468a7efe9 (diff)
downloadbase-49b8ec78e2329c498c479d0c7eb234836e447866.tar.gz
Add test for project with no outputs.
Change-Id: Ic4cf7609ca8553fc9fa38ca5ea031bf0ab4b069a
-rw-r--r--build-system/gradle/src/build-test/groovy/com/android/build/gradle/AutomatedBuildTest.java1
-rw-r--r--build-system/tests/emptySplit/build.gradle26
-rw-r--r--build-system/tests/emptySplit/src/main/AndroidManifest.xml5
3 files changed, 32 insertions, 0 deletions
diff --git a/build-system/gradle/src/build-test/groovy/com/android/build/gradle/AutomatedBuildTest.java b/build-system/gradle/src/build-test/groovy/com/android/build/gradle/AutomatedBuildTest.java
index 40f3b4ff7f..23a36ac136 100644
--- a/build-system/gradle/src/build-test/groovy/com/android/build/gradle/AutomatedBuildTest.java
+++ b/build-system/gradle/src/build-test/groovy/com/android/build/gradle/AutomatedBuildTest.java
@@ -48,6 +48,7 @@ public class AutomatedBuildTest extends BuildTest {
"densitySplitWithOldMerger",
"dependencies",
"dependencyChecker",
+ "emptySplit",
"filteredOutBuildType",
"flavored",
"flavorlib",
diff --git a/build-system/tests/emptySplit/build.gradle b/build-system/tests/emptySplit/build.gradle
new file mode 100644
index 0000000000..75505418c5
--- /dev/null
+++ b/build-system/tests/emptySplit/build.gradle
@@ -0,0 +1,26 @@
+buildscript {
+ repositories {
+ maven { url '../../../../../out/repo' }
+ }
+ dependencies {
+ classpath 'com.android.tools.build:gradle:0.14.0'
+ }
+}
+apply plugin: 'com.android.application'
+
+android {
+ compileSdkVersion 19
+ buildToolsVersion '19.1.0'
+
+ // create splits but remove all split values.
+ splits {
+ density {
+ enable true
+ reset()
+ }
+ abi {
+ enable true
+ reset()
+ }
+ }
+}
diff --git a/build-system/tests/emptySplit/src/main/AndroidManifest.xml b/build-system/tests/emptySplit/src/main/AndroidManifest.xml
new file mode 100644
index 0000000000..950a35accf
--- /dev/null
+++ b/build-system/tests/emptySplit/src/main/AndroidManifest.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="utf-8"?>
+<manifest xmlns:android="http://schemas.android.com/apk/res/android"
+ package="com.android.tests.basic">
+ <application />
+</manifest>