diff options
author | Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> | 2023-08-30 16:48:47 +0000 |
---|---|---|
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | 2023-08-30 16:48:47 +0000 |
commit | bd26af26aca565f766b5705fa16bb022b73ff271 (patch) | |
tree | 77b808d6d27f55d511f5c79361b7ef92dde3ea6c | |
parent | 1590b6592d0081d69c93fa3662b8ed9f88d17019 (diff) | |
parent | 0dc6edf0f1095764a80a1acdf90ca48c29b8e2c7 (diff) | |
download | bouncycastle-bd26af26aca565f766b5705fa16bb022b73ff271.tar.gz |
Merge "Mark long-running BouncyCastle tests as @LargeTest" into main am: d4a4f64ed2 am: 927070677a am: 6e4ec12106 am: 8be7266efe am: 0dc6edf0f1
Original change: https://android-review.googlesource.com/c/platform/external/bouncycastle/+/2731876
Change-Id: I84b55defbb3010b4fa83f9f714e4cd0ad9d8ca97
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
5 files changed, 15 insertions, 0 deletions
@@ -265,6 +265,7 @@ java_test_host { static_libs: [ "bouncycastle-unbundled", "junit", + "platform-test-annotations", ], test_suites: ["general-tests"], } diff --git a/bcprov/src/test/java/org/bouncycastle/math/ec/test/ECAlgorithmsTest.java b/bcprov/src/test/java/org/bouncycastle/math/ec/test/ECAlgorithmsTest.java index 20b8d323..27e89f00 100644 --- a/bcprov/src/test/java/org/bouncycastle/math/ec/test/ECAlgorithmsTest.java +++ b/bcprov/src/test/java/org/bouncycastle/math/ec/test/ECAlgorithmsTest.java @@ -19,6 +19,8 @@ import junit.framework.Test; import junit.framework.TestCase; import junit.framework.TestSuite; +import android.platform.test.annotations.LargeTest; + public class ECAlgorithmsTest extends TestCase { private static final int SCALE = 4; @@ -32,6 +34,7 @@ public class ECAlgorithmsTest extends TestCase } // TODO Ideally, mark this test not to run by default + @LargeTest public void testSumOfMultipliesComplete() { ArrayList x9s = getTestCurves(); @@ -51,6 +54,7 @@ public class ECAlgorithmsTest extends TestCase } // TODO Ideally, mark this test not to run by default + @LargeTest public void testSumOfTwoMultipliesComplete() { ArrayList x9s = getTestCurves(); diff --git a/bcprov/src/test/java/org/bouncycastle/math/ec/test/ECPointTest.java b/bcprov/src/test/java/org/bouncycastle/math/ec/test/ECPointTest.java index f53c9828..aaf2f5b6 100644 --- a/bcprov/src/test/java/org/bouncycastle/math/ec/test/ECPointTest.java +++ b/bcprov/src/test/java/org/bouncycastle/math/ec/test/ECPointTest.java @@ -28,6 +28,8 @@ import org.bouncycastle.util.BigIntegers; import org.bouncycastle.util.Integers; import org.bouncycastle.util.encoders.Hex; +import android.platform.test.annotations.LargeTest; + /** * Test class for {@link org.bouncycastle.math.ec.ECPoint ECPoint}. All * literature values are taken from "Guide to elliptic curve cryptography", @@ -551,6 +553,7 @@ public class ECPointTest extends TestCase * <code>implTestMultiply</code> and <code>implTestEncoding</code> for * the standard elliptic curves as given in <code>SECNamedCurves</code>. */ + @LargeTest public void testAddSubtractMultiplyTwiceEncoding() { Set names = new HashSet(enumToList(ECNamedCurveTable.getNames())); diff --git a/repackaged/bcprov/src/test/java/com/android/org/bouncycastle/math/ec/test/ECAlgorithmsTest.java b/repackaged/bcprov/src/test/java/com/android/org/bouncycastle/math/ec/test/ECAlgorithmsTest.java index cf10fe45..ba944d77 100644 --- a/repackaged/bcprov/src/test/java/com/android/org/bouncycastle/math/ec/test/ECAlgorithmsTest.java +++ b/repackaged/bcprov/src/test/java/com/android/org/bouncycastle/math/ec/test/ECAlgorithmsTest.java @@ -20,6 +20,8 @@ import junit.framework.Test; import junit.framework.TestCase; import junit.framework.TestSuite; +import android.platform.test.annotations.LargeTest; + /** * @hide This class is not part of the Android public SDK API */ @@ -36,6 +38,7 @@ public class ECAlgorithmsTest extends TestCase } // TODO Ideally, mark this test not to run by default + @LargeTest public void testSumOfMultipliesComplete() { ArrayList x9s = getTestCurves(); @@ -55,6 +58,7 @@ public class ECAlgorithmsTest extends TestCase } // TODO Ideally, mark this test not to run by default + @LargeTest public void testSumOfTwoMultipliesComplete() { ArrayList x9s = getTestCurves(); diff --git a/repackaged/bcprov/src/test/java/com/android/org/bouncycastle/math/ec/test/ECPointTest.java b/repackaged/bcprov/src/test/java/com/android/org/bouncycastle/math/ec/test/ECPointTest.java index 02dcebf2..0978d2ef 100644 --- a/repackaged/bcprov/src/test/java/com/android/org/bouncycastle/math/ec/test/ECPointTest.java +++ b/repackaged/bcprov/src/test/java/com/android/org/bouncycastle/math/ec/test/ECPointTest.java @@ -29,6 +29,8 @@ import com.android.org.bouncycastle.util.BigIntegers; import com.android.org.bouncycastle.util.Integers; import com.android.org.bouncycastle.util.encoders.Hex; +import android.platform.test.annotations.LargeTest; + /** * Test class for {@link com.android.org.bouncycastle.math.ec.ECPoint ECPoint}. All * literature values are taken from "Guide to elliptic curve cryptography", @@ -555,6 +557,7 @@ public class ECPointTest extends TestCase * <code>implTestMultiply</code> and <code>implTestEncoding</code> for * the standard elliptic curves as given in <code>SECNamedCurves</code>. */ + @LargeTest public void testAddSubtractMultiplyTwiceEncoding() { Set names = new HashSet(enumToList(ECNamedCurveTable.getNames())); |