From e95781ddd15466ec8f85b88157f5b45db294b878 Mon Sep 17 00:00:00 2001 From: mquinson Date: Wed, 21 May 2008 15:35:48 +0000 Subject: [PATCH] Because of numerical stability issues (once again), the timings are not exactly the same on 32bits and 64bits for the small_sleep test case git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@5491 48e7efb5-ca39-0410-a469-dd3cf9ba447f --- teshsuite/Makefile.am | 6 +++++- teshsuite/gras/small_sleep/{test_sg => test_sg_32} | 0 teshsuite/gras/small_sleep/test_sg_64 | 9 +++++++++ 3 files changed, 14 insertions(+), 1 deletion(-) rename teshsuite/gras/small_sleep/{test_sg => test_sg_32} (100%) create mode 100755 teshsuite/gras/small_sleep/test_sg_64 diff --git a/teshsuite/Makefile.am b/teshsuite/Makefile.am index 5ef60e1db3..fa158ae742 100644 --- a/teshsuite/Makefile.am +++ b/teshsuite/Makefile.am @@ -141,7 +141,11 @@ gras/small_sleep/_small_sleep_simulator.c gras/small_sleep/_small_sleep_function cd gras/small_sleep;\ ../../$(top_builddir)/tools/gras/gras_stub_generator@EXEEXT@ small_sleep ../../$(top_srcdir)/teshsuite/gras/small_sleep/small_sleep.xml -TESTS += gras/small_sleep/test_sg +if GRAS_ARCH_32_BITS + TESTS += gras/small_sleep/test_sg_32 +else + TESTS += gras/small_sleep/test_sg_64 +endif # gras/small_sleep/test_rl don't test on RL!! ################################### diff --git a/teshsuite/gras/small_sleep/test_sg b/teshsuite/gras/small_sleep/test_sg_32 similarity index 100% rename from teshsuite/gras/small_sleep/test_sg rename to teshsuite/gras/small_sleep/test_sg_32 diff --git a/teshsuite/gras/small_sleep/test_sg_64 b/teshsuite/gras/small_sleep/test_sg_64 new file mode 100755 index 0000000000..e62d78265b --- /dev/null +++ b/teshsuite/gras/small_sleep/test_sg_64 @@ -0,0 +1,9 @@ +p Runs the 'empty_main' test within the simulator + +$ $SG_TEST_EXENV ./gras/small_sleep/small_sleep_simulator${EXEEXT:=} ${srcdir:=.}/../examples/msg/small_platform.xml ${srcdir:=.}/gras/small_sleep/small_sleep.xml +> [Tremblay:function:(1) 0.000000] [test/INFO] Let's go 1E-5 +> [Tremblay:function:(1) 0.000010] [test/INFO] Let's go 1E-10 +> [Tremblay:function:(1) 0.000020] [test/INFO] Let's go 1E-15 +> [Tremblay:function:(1) 0.000020] [test/INFO] Let's go 1E-20 +> [Tremblay:function:(1) 0.000020] [test/INFO] done +> [Tremblay:function:(1) 0.000020] [gras/INFO] Exiting GRAS -- 2.20.1