[Ecm-commits] r2581 - trunk

cvs commits ecm-commits at lists.gforge.inria.fr
Fri Feb 6 08:11:26 CET 2015


Author: zimmerma
Date: 2015-02-06 08:11:26 +0100 (Fri, 06 Feb 2015)
New Revision: 2581

Modified:
   trunk/test.ecm
   trunk/test.pm1
   trunk/testlong.ecm
Log:
added tests for various options. Still missing:
-i: will be removed
-bsaves, -bloads


Modified: trunk/test.ecm
===================================================================
--- trunk/test.ecm	2015-02-05 07:04:46 UTC (rev 2580)
+++ trunk/test.ecm	2015-02-06 07:11:26 UTC (rev 2581)
@@ -56,12 +56,53 @@
 # 2^4 * 3^3 * 29 * 2411
 echo 2050449353925555290706354283 | $ECM -param 0 -sigma 7 -k 1 30 0-1e6; checkcode $? 14
 
+# check -I option
+echo 2050449353925555290706354283 | $ECM -param 0 -sigma 7 -k 1 -I 1 -c 2 3 0-1e6; checkcode $? 14
+
+# exercise the -timestamp option
+echo 2050449353925555290706354283 | $ECM -timestamp -param 0 -sigma 7 -k 1 30 0-1e6; checkcode $? 14
+
+# exercise the -stage1time option
+echo 2050449353925555290706354283 | $ECM -stage1time 17 -param 0 -sigma 7 -k 1 30 0-1e6; checkcode $? 14
+
+# exercise the -primetest option
+echo 2050449353925555290706354283 | $ECM -primetest -param 0 -sigma 7 -k 1 30 0-1e6; checkcode $? 14
+
+# exercise the -q option
+echo 2050449353925555290706354283 | $ECM -q -param 0 -sigma 7 -k 1 30 0-1e6; checkcode $? 14
+
+# exercise the -v option
+echo 2050449353925555290706354283 | $ECM -v -param 0 -sigma 7 -k 1 30 0-1e6; checkcode $? 14
+
+# exercise the -v -v option
+echo 2050449353925555290706354283 | $ECM -v -v -param 0 -sigma 7 -k 1 30 0-1e6; checkcode $? 14
+
+# exercise the -v -v -v option
+echo 2050449353925555290706354283 | $ECM -v -v -v -param 0 -sigma 7 -k 1 30 0-1e6; checkcode $? 14
+
+# exercise the -v -v -v -v option
+echo 2050449353925555290706354283 | $ECM -v -v -v -v -param 0 -sigma 7 -k 1 30 0-1e6; checkcode $? 14
+
 # check the -treefile option
 echo 2050449353925555290706354283 | $ECM -param 0 -treefile tree -sigma 7 -k 1 30 0-1e6; checkcode $? 14
 
 # check the -I f option
 echo 2050449353925555290706354283 | $ECM -param 0 -sigma 7 -I 1 -c 3 100; checkcode $? 14
 
+# check the -chkpnt option
+echo 2050449353925555290706354283 | $ECM -chkpnt test.ecm.chk -param 0 -sigma 7 30 0-1e6
+$ECM -resume test.ecm.chk -param 0 -sigma 7 30 0-1e6
+C=$?
+/bin/rm -f test.ecm.chk
+checkcode $C 14
+
+# check the -inp option
+echo 2050449353925555290706354283 > test.ecm.inp
+$ECM -inp test.ecm.inp -param 0 -sigma 7 -I 1 -c 3 100
+C=$?
+/bin/rm -f test.ecm.inp
+checkcode $C 14
+
 # Check a stage 2 of length 1. g1=1822795201 g2=968809 g3=567947
 echo 212252637915375215854013140804296246361 | $ECM -param 0 -sigma 781683988 -go 550232165123 63421 1822795201-1822795201; checkcode $? 8
 
@@ -79,6 +120,15 @@
 
 echo "2^919-1" | $ECM -param 0 -sigma 262763035 937 1; checkcode $? 6
 
+# idem with -nobase2
+echo "2^919-1" | $ECM -nobase2 -param 0 -sigma 262763035 937 1; checkcode $? 6
+
+# idem with -nobase2s2
+echo "2^919-1" | $ECM -nobase2s2 -param 0 -sigma 262763035 937 1; checkcode $? 6
+
+# idem with -base2 -919
+echo "2^919-1" | $ECM -base2 -919 -param 0 -sigma 262763035 937 1; checkcode $? 6
+
 # Test a 2^n-1 number, factor found in stage 2. Order mod 33554520197234177
 # with sigma=1691973485 is 2^6*3*11*29*59*73*263*283*1709
 

Modified: trunk/test.pm1
===================================================================
--- trunk/test.pm1	2015-02-05 07:04:46 UTC (rev 2580)
+++ trunk/test.pm1	2015-02-06 07:11:26 UTC (rev 2581)
@@ -90,6 +90,14 @@
 /bin/rm -f test.pm1.save
 checkcode $C 8
 
+### same with -savea
+echo 25591172394760497166702530699464321 | $PM1 -savea test.pm1.save 100000
+checkcode $? 0
+$PM1 -resume test.pm1.save 120557 2007301
+C=$?
+/bin/rm -f test.pm1.save
+checkcode $C 8
+
 # bug in ecm-5.0 (overflow in fin_diff_coeff)
 echo 504403158265489337 | $PM1 -k 4 8 9007199254740700-9007199254740900; checkcode $? 8
 

Modified: trunk/testlong.ecm
===================================================================
--- trunk/testlong.ecm	2015-02-05 07:04:46 UTC (rev 2580)
+++ trunk/testlong.ecm	2015-02-06 07:11:26 UTC (rev 2581)
@@ -61,4 +61,7 @@
 # p54 factor from F_12 found on March 27, 2010 by Michael Vang
 echo "(2^(2^12)+1)/114689/26017793/63766529/190274191361/1256132134125569" | $ECM -go "2413097*9027881*23759413" -sigma 1428526317 65123 45947380867; checkcode $? 6
 
+# idem with -maxmem
+echo "(2^(2^12)+1)/114689/26017793/63766529/190274191361/1256132134125569" | $ECM -maxmem 500 -go "2413097*9027881*23759413" -sigma 1428526317 65123 45947380867; checkcode $? 6
+
 echo "All ECM tests are ok."



More information about the Ecm-commits mailing list