summaryrefslogtreecommitdiffstats
path: root/jack-tests
diff options
context:
space:
mode:
authorYohann Roussel <yroussel@google.com>2015-01-13 10:22:24 +0100
committerYohann Roussel <yroussel@google.com>2015-01-13 15:38:09 +0000
commit952152c259114b6ce658f9afb6aadaf426b96837 (patch)
tree97985ba5c390c79e435dc43026f327e44b912965 /jack-tests
parentab4844fb1883c98cec2abadca4fd5a7e090e2599 (diff)
downloadtoolchain_jack-952152c259114b6ce658f9afb6aadaf426b96837.zip
toolchain_jack-952152c259114b6ce658f9afb6aadaf426b96837.tar.gz
toolchain_jack-952152c259114b6ce658f9afb6aadaf426b96837.tar.bz2
Move some long multidex tests out of presubmit
By marking them as Slow Change-Id: Ia0fe0ad92f79bc0d48d6f100e04de62f1f01aaaf
Diffstat (limited to 'jack-tests')
-rw-r--r--jack-tests/tests/com/android/jack/multidex/MultiDexOverflowTests.java3
-rw-r--r--jack-tests/tests/com/android/jack/multidex/MultiDexTests.java11
2 files changed, 12 insertions, 2 deletions
diff --git a/jack-tests/tests/com/android/jack/multidex/MultiDexOverflowTests.java b/jack-tests/tests/com/android/jack/multidex/MultiDexOverflowTests.java
index 2cc7052..a7564f0 100644
--- a/jack-tests/tests/com/android/jack/multidex/MultiDexOverflowTests.java
+++ b/jack-tests/tests/com/android/jack/multidex/MultiDexOverflowTests.java
@@ -21,6 +21,7 @@ import com.android.jack.backend.dex.DexFileWriter;
import com.android.jack.backend.dex.DexWritingException;
import com.android.jack.backend.dex.MainDexOverflowException;
import com.android.jack.backend.dex.MultiDexLegacy;
+import com.android.jack.test.category.SlowTests;
import com.android.jack.test.toolchain.AbstractTestTools;
import com.android.jack.test.toolchain.JackApiToolchain;
import com.android.jack.tools.merger.FieldIdOverflowException;
@@ -31,6 +32,7 @@ import junit.framework.Assert;
import org.junit.BeforeClass;
import org.junit.Test;
+import org.junit.experimental.categories.Category;
import java.io.ByteArrayOutputStream;
import java.io.File;
@@ -55,6 +57,7 @@ public class MultiDexOverflowTests {
}
@Test
+ @Category(SlowTests.class)
public void testMinimalMainDexOverflowWithMethods() throws Exception {
File srcFolder = AbstractTestTools.createTempDir();
File outFolder = AbstractTestTools.createTempDir();
diff --git a/jack-tests/tests/com/android/jack/multidex/MultiDexTests.java b/jack-tests/tests/com/android/jack/multidex/MultiDexTests.java
index fcd0ee1..88846de 100644
--- a/jack-tests/tests/com/android/jack/multidex/MultiDexTests.java
+++ b/jack-tests/tests/com/android/jack/multidex/MultiDexTests.java
@@ -26,6 +26,7 @@ import com.android.jack.backend.dex.MultiDexLegacy;
import com.android.jack.library.FileType;
import com.android.jack.preprocessor.PreProcessor;
import com.android.jack.shrob.ListingComparator;
+import com.android.jack.test.category.SlowTests;
import com.android.jack.test.comparator.Comparator;
import com.android.jack.test.comparator.ComparatorException;
import com.android.jack.test.comparator.ComparatorFile;
@@ -40,6 +41,7 @@ import junit.framework.Assert;
import org.junit.BeforeClass;
import org.junit.Test;
+import org.junit.experimental.categories.Category;
import java.io.BufferedReader;
import java.io.File;
@@ -184,7 +186,7 @@ public class MultiDexTests {
}
@Test
- public void versionedTest001b__withoutAnnotations() throws Exception {
+ public void versionedTest001b_minimal_withoutAnnotations() throws Exception {
File testFolder = TestTools.getJackTestsWithJackFolder("multidex/test001");
File out = TestTools.createTempDir("out", "");
@@ -334,6 +336,7 @@ public class MultiDexTests {
}
@Test
+ @Category(SlowTests.class)
public void legacyAppTest002a() throws Exception {
File testFolder = AbstractTestTools.getTestRootDir("com.android.jack.multidex.test002.jack");
File out = AbstractTestTools.createTempDir();
@@ -360,6 +363,7 @@ public class MultiDexTests {
}
@Test
+ @Category(SlowTests.class)
public void legacyAppTest002b() throws Exception {
File testFolder = AbstractTestTools.getTestRootDir("com.android.jack.multidex.test002.jack");
File out = AbstractTestTools.createTempDir();
@@ -388,6 +392,7 @@ public class MultiDexTests {
}
@Test
+ @Category(SlowTests.class)
public void legacyAppTest002b_auto() throws Exception {
File testFolder = AbstractTestTools.getTestRootDir("com.android.jack.multidex.test002.jack");
File autoLibrary = prepareLibrary(frameworks);
@@ -419,6 +424,7 @@ public class MultiDexTests {
}
@Test
+ @Category(SlowTests.class)
public void legacyAppTest002a_withoutAnnotations() throws Exception {
File testFolder = TestTools.getJackTestsWithJackFolder("multidex/test002");
@@ -443,6 +449,7 @@ public class MultiDexTests {
}
@Test
+ @Category(SlowTests.class)
public void legacyAppTest002b_withoutAnnotations() throws Exception {
File testFolder = TestTools.getJackTestsWithJackFolder("multidex/test002");
@@ -504,7 +511,7 @@ public class MultiDexTests {
* Verifies that classes annotated with runtime visible annotations are put in main dex.
*/
@Test
- public void legacyAppTest003() throws Exception {
+ public void annotatedTest003() throws Exception {
File testFolder = TestTools.getJackTestsWithJackFolder("multidex/test003");