powmod: mark case_powmod_256 with skip_case_slow
authorJacob Lifshay <programmerjake@gmail.com>
Tue, 20 Feb 2024 04:35:03 +0000 (20:35 -0800)
committerJacob Lifshay <programmerjake@gmail.com>
Tue, 20 Feb 2024 04:35:03 +0000 (20:35 -0800)
running full test suite with RUN_SLOW unset now takes 3min41s on
my desktop -- substantially faster.

src/openpower/test/bigint/powmod.py

index 289f472e860b6c140efdb40687c360cc78c7bccf..739c3d2333c87afd3eaf0c462bb84781ba00d321 100644 (file)
@@ -14,7 +14,8 @@ related bugs:
  * https://bugs.libre-soc.org/show_bug.cgi?id=1044
 """
 
-from openpower.test.common import TestAccumulatorBase, skip_case
+from openpower.test.common import (
+    TestAccumulatorBase, skip_case, skip_case_slow)
 from openpower.test.state import ExpectedState
 from openpower.test.util import assemble
 from nmutil.sim_util import hash_256
@@ -1210,6 +1211,7 @@ class PowModCases(TestAccumulatorBase):
             base %= mod
             yield (base, exp, mod)
 
+    @skip_case_slow("runs 256 iterations of divmod")
     def case_powmod_256(self):
         for base, exp, mod in PowModCases.powmod_256_test_inputs():
             expected = pow(base, exp, mod)