[Mpfi-commits] r316 - trunk/mpfi/tests

ptheveny at users.gforge.inria.fr ptheveny at users.gforge.inria.fr
Jeu 24 Juin 13:07:46 CEST 2010


Author: ptheveny
Date: 2010-06-24 13:07:45 +0200 (Thu, 24 Jun 2010)
New Revision: 316

Modified:
   trunk/mpfi/tests/tacos.c
   trunk/mpfi/tests/tadd_q.c
   trunk/mpfi/tests/tasinh.c
   trunk/mpfi/tests/tatan.c
   trunk/mpfi/tests/tatan2.c
   trunk/mpfi/tests/texp.c
   trunk/mpfi/tests/texp2.c
   trunk/mpfi/tests/tlog1p.c
   trunk/mpfi/tests/tq_sub.c
   trunk/mpfi/tests/tsech.c
   trunk/mpfi/tests/tsub_q.c
Log:
Speed up some tests reducing the checked range of precision.

Modified: trunk/mpfi/tests/tacos.c
===================================================================
--- trunk/mpfi/tests/tacos.c	2010-06-24 11:01:33 UTC (rev 315)
+++ trunk/mpfi/tests/tacos.c	2010-06-24 11:07:45 UTC (rev 316)
@@ -35,7 +35,7 @@
   test_start ();
 
   check_data (&i_acos, "acos.dat");
-  check_random (&i_acos, 2, 1000, 10);
+  check_random (&i_acos, 2, 512, 10);
 
   test_end ();
   mpfi_fun_clear (&i_acos);

Modified: trunk/mpfi/tests/tadd_q.c
===================================================================
--- trunk/mpfi/tests/tadd_q.c	2010-06-24 11:01:33 UTC (rev 315)
+++ trunk/mpfi/tests/tadd_q.c	2010-06-24 11:07:45 UTC (rev 316)
@@ -88,7 +88,7 @@
 
   check_data (&i_add_q, "add_q.dat");
   check_overflow ();
-  check_random (&i_add_q, 2, 1000, 10);
+  check_random (&i_add_q, 53, 53, 3); /* very slow, checking reduced range */
 
   test_end ();
   mpfi_fun_clear (&i_add_q);

Modified: trunk/mpfi/tests/tasinh.c
===================================================================
--- trunk/mpfi/tests/tasinh.c	2010-06-24 11:01:33 UTC (rev 315)
+++ trunk/mpfi/tests/tasinh.c	2010-06-24 11:07:45 UTC (rev 316)
@@ -35,7 +35,7 @@
   test_start ();
 
   check_data (&i_asinh, "asinh.dat");
-  check_random (&i_asinh, 2, 1000, 10);
+  check_random (&i_asinh, 2, 512, 10);
 
   test_end ();
   mpfi_fun_clear (&i_asinh);

Modified: trunk/mpfi/tests/tatan.c
===================================================================
--- trunk/mpfi/tests/tatan.c	2010-06-24 11:01:33 UTC (rev 315)
+++ trunk/mpfi/tests/tatan.c	2010-06-24 11:07:45 UTC (rev 316)
@@ -35,7 +35,7 @@
   test_start ();
 
   check_data (&i_atan, "atan.dat");
-  check_random (&i_atan, 2, 1000, 10);
+  check_random (&i_atan, 2, 512, 10);
 
   test_end ();
   mpfi_fun_clear (&i_atan);

Modified: trunk/mpfi/tests/tatan2.c
===================================================================
--- trunk/mpfi/tests/tatan2.c	2010-06-24 11:01:33 UTC (rev 315)
+++ trunk/mpfi/tests/tatan2.c	2010-06-24 11:07:45 UTC (rev 316)
@@ -36,7 +36,7 @@
   test_start ();
 
   check_data (&i_atan2, "atan2.dat");
-  check_random (&i_atan2, 2, 1000, 10);
+  check_random (&i_atan2, 2, 512, 10);
 
   test_end ();
   mpfi_fun_clear (&i_atan2);

Modified: trunk/mpfi/tests/texp.c
===================================================================
--- trunk/mpfi/tests/texp.c	2010-06-24 11:01:33 UTC (rev 315)
+++ trunk/mpfi/tests/texp.c	2010-06-24 11:07:45 UTC (rev 316)
@@ -35,7 +35,7 @@
   test_start ();
 
 /*   check_data (&i_exp, "exp.dat"); */
-  check_random (&i_exp, 2, 1000, 10);
+  check_random (&i_exp, 2, 512, 10);
 
   test_end ();
   mpfi_fun_clear (&i_exp);

Modified: trunk/mpfi/tests/texp2.c
===================================================================
--- trunk/mpfi/tests/texp2.c	2010-06-24 11:01:33 UTC (rev 315)
+++ trunk/mpfi/tests/texp2.c	2010-06-24 11:07:45 UTC (rev 316)
@@ -35,7 +35,7 @@
   test_start ();
 
 /*   check_data (&i_exp2, "exp2.dat"); */
-  check_random (&i_exp2, 2, 1000, 10);
+  check_random (&i_exp2, 2, 512, 10);
 
   test_end ();
   mpfi_fun_clear (&i_exp2);

Modified: trunk/mpfi/tests/tlog1p.c
===================================================================
--- trunk/mpfi/tests/tlog1p.c	2010-06-24 11:01:33 UTC (rev 315)
+++ trunk/mpfi/tests/tlog1p.c	2010-06-24 11:07:45 UTC (rev 316)
@@ -35,7 +35,7 @@
   test_start ();
 
 /*   check_data (&i_log1p, "log1p.dat"); */
-  check_random (&i_log1p, 2, 1000, 10);
+  check_random (&i_log1p, 2, 512, 10);
 
   test_end ();
   mpfi_fun_clear (&i_log1p);

Modified: trunk/mpfi/tests/tq_sub.c
===================================================================
--- trunk/mpfi/tests/tq_sub.c	2010-06-24 11:01:33 UTC (rev 315)
+++ trunk/mpfi/tests/tq_sub.c	2010-06-24 11:07:45 UTC (rev 316)
@@ -51,7 +51,7 @@
   test_start ();
 
 /*   check_data (&i_q_sub, "q_sub.dat"); */
-  check_random (&i_q_sub, 2, 1000, 10);
+  check_random (&i_q_sub, 53, 53, 3);
 
   test_end ();
   mpfi_fun_clear (&i_q_sub);

Modified: trunk/mpfi/tests/tsech.c
===================================================================
--- trunk/mpfi/tests/tsech.c	2010-06-24 11:01:33 UTC (rev 315)
+++ trunk/mpfi/tests/tsech.c	2010-06-24 11:07:45 UTC (rev 316)
@@ -36,7 +36,7 @@
   test_start ();
 
 /*   check_data (&i_sech, "sech.dat"); */
-  check_random (&i_sech, 2, 1000, 10);
+  check_random (&i_sech, 2, 512, 10);
 
   test_end ();
   mpfi_fun_clear (&i_sech);

Modified: trunk/mpfi/tests/tsub_q.c
===================================================================
--- trunk/mpfi/tests/tsub_q.c	2010-06-24 11:01:33 UTC (rev 315)
+++ trunk/mpfi/tests/tsub_q.c	2010-06-24 11:07:45 UTC (rev 316)
@@ -35,7 +35,7 @@
   test_start ();
 
 /*   check_data (&i_sub_q, "sub_q.dat"); */
-  check_random (&i_sub_q, 2, 1000, 10);
+  check_random (&i_sub_q, 53, 53, 3); /* very slow */
 
   test_end ();
   mpfi_fun_clear (&i_sub_q);




More information about the Mpfi-commits mailing list