[Ecm-commits] r2642 - trunk

cvs commits ecm-commits at lists.gforge.inria.fr
Fri Feb 27 08:39:16 CET 2015


Author: zimmerma
Date: 2015-02-27 08:39:16 +0100 (Fri, 27 Feb 2015)
New Revision: 2642

Modified:
   trunk/test.gpuecm
Log:
added more tests


Modified: trunk/test.gpuecm
===================================================================
--- trunk/test.gpuecm	2015-02-26 17:12:41 UTC (rev 2641)
+++ trunk/test.gpuecm	2015-02-27 07:39:16 UTC (rev 2642)
@@ -51,10 +51,28 @@
 echo "2^349-1" | $ECM -sigma 3:279 587 0
 checkcode $? 6
 
+#test default param
+echo "2^349-1" | $ECM 587 0
+
+#test param=1
+echo "2^349-1" | $ECM -param 1 587 0
+checkcode $? 1
+
+#test -redc (should give a warning)
+echo "2^349-1" | $ECM -redc 587 0
+checkcode $? 0
+
+#test a Fermat number
+echo "2^512-1" | $ECM 587 0
+
 #2^1018-1 is the maximun number that can be used
 echo "2^1018-1" | $ECM -sigma 3:92 4 0
 checkcode $? 2
 
+#try 2^1019-1: should give an error
+echo "2^1019-1" | $ECM -sigma 3:92 4 0
+checkcode $? 1
+
 #test for when stage 2 on CPU is needed
 echo "2^349-1" | $ECM -sigma 3:13 587 1261
 checkcode $? 8



More information about the Ecm-commits mailing list