Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
Big fat warning 'dont forget ctest'
[simgrid.git] / testsuite / run_tests.in
index e2b741b..2f76722 100755 (executable)
@@ -30,36 +30,26 @@ fi
 ##
 ## Tests defintions
 ##
-xbt_TESTS=" xbt/ex_test@EXEEXT@;          \
+
+##########################################################################
+## UPDATE buildtools/Cmake/CTestList.txt WHEN YOU CHANGE SOMETHING HERE ##
+##########################################################################
+
+xbt_TESTS=" \
             xbt/log_usage@EXEEXT@;        \
-            xbt/dynar_int@EXEEXT@;        \
-             xbt/dynar_double@EXEEXT@;   \
-             xbt/dynar_string@EXEEXT@;   \
-            xbt/dict_usage@EXEEXT@;       \
-             xbt/dict_crash@EXEEXT@;     \
-             xbt/multidict_crash@EXEEXT@; \
-            xbt/config_usage@EXEEXT@;     \
+            xbt/graphxml_usage@EXEEXT@ @srcdir@/xbt/graph.xml;    \
             xbt/heap_bench@EXEEXT@;"
-          
-surf_TESTS="surf/maxmin_usage@EXEEXT@;                                        \
+
+surf_TESTS="surf/lmm_usage@EXEEXT@;                                        \
             surf/maxmin_bench@EXEEXT@;                                        \
-           surf/trace_usage@EXEEXT@ --surf-path=@srcdir@/surf/;              \
-           surf/surf_usage@EXEEXT@  --surf-path=@srcdir@/surf/ platform.xml; \
-           surf/surf_usage2@EXEEXT@ --surf-path=@srcdir@/surf/ platform.xml;"
-
-gras_TESTS="gras/trp_tcp_usage;      gras/trp_file_usage;                        \
-           gras/datadesc_usage@EXEEXT@;                                         \
-            gras/datadesc_usage@EXEEXT@ --read @srcdir@/gras/datadesc.little32;  \
-           gras/datadesc_usage@EXEEXT@ --read @srcdir@/gras/datadesc.little32_4;\
-           gras/datadesc_usage@EXEEXT@ --read @srcdir@/gras/datadesc.little64;  \
-           gras/datadesc_usage@EXEEXT@ --read @srcdir@/gras/datadesc.big32;     \
-           gras/datadesc_usage@EXEEXT@ --read @srcdir@/gras/datadesc.big32_8_4; \
-           gras/datadesc_usage@EXEEXT@ --read @srcdir@/gras/datadesc.big32_2;"     
-
-# Data sets still to regenerate:
-#
-#          gras/datadesc_usage@EXEEXT@ --read @srcdir@/gras/datadesc.big32_4;   \
-#          gras/datadesc_usage@EXEEXT@ --read @srcdir@/gras/datadesc.big64;"    
+           surf/trace_usage@EXEEXT@ --cfg=path:@srcdir@/surf/;              \
+           surf/surf_usage@EXEEXT@  --cfg=path:@srcdir@/surf/ platform.xml; \
+           surf/surf_usage2@EXEEXT@ --cfg=path:@srcdir@/surf/ platform.xml;"
+
+simdag_TESTS="simdag/sd_test --cfg=path:@srcdir@/simdag @srcdir@/simdag/small_platform_variable.xml; \
+              simdag/sd_test @top_srcdir@/examples/msg/small_platform.xml; \
+              simdag/sd_test @top_srcdir@/examples/msg/msg_platform.xml; "
+
 
 ##
 ## Loop on all tests to run them
@@ -68,7 +58,7 @@ gras_TESTS="gras/trp_tcp_usage;      gras/trp_file_usage;
 # we split tests on ';' so that they can contain spaces (test=accumulator)
 test=""
 
-for testpart in $xbt_TESTS $gras_TESTS $surf_TESTS
+for testpart in $xbt_TESTS $surf_TESTS $simdag_TESTS
 do
   test="$test $testpart"
   if echo $test | grep  ';' >/dev/null ; then
@@ -103,7 +93,7 @@ do
         if echo $exenv | grep valgrind >/dev/null ; then
          exenv=
         fi
-        $exenv ./$test --xbt-log="root.thres=info" 2>&1
+        $exenv ./$test --log="root.thres=info" 2>&1
         retval=$?
       else 
         if [ x@EXEEXT@ != x ] && [ x$exenv = xwine ] ; then 
@@ -111,16 +101,16 @@ do
             exenv=""
           fi
         fi
-        $exenv ./$test --xbt-log="root.thres=info" 2>&1
+        $exenv ./$test --log="root.thres=info" 2>&1
         retval=$?
       fi
       exenv=$exenvsave
       if [ $retval != 0 ] ; then if [ $retval != 77 ]; then
         echo "## failed" # . Rerun $test with full details."
 #      if [ "x$test" = "xdict_crash" ] ; then
-#      $exenv ./$test --xbt-log="root.thres=debug" 2>&1
+#      $exenv ./$test --log="root.thres=debug" 2>&1
 #    else 
-#      $exenv ./$test --xbt-log="root.thres=debug" 2>&1
+#      $exenv ./$test --log="root.thres=debug" 2>&1
 #    fi
         failed_nb=`expr $failed_nb + 1`
         echo "  $test (returned $retval)" >> test.failed
@@ -159,7 +149,7 @@ fi
 if [ $failed_nb != 0 ] ; then
   echo "$failed_nb tests of $tests_nb failed: "
   cat test.failed
-  echo "Rerun the tests using the following command: script -c 'make test' simgrid.tests.log"
+  echo "Rerun the tests using the following command: script -c 'make check' simgrid.tests.log"
   echo " and send the following informations to simgrid-devel@lists.gforge.inria.fr:"
   echo "   - the file simgrid.tests.log produced by this command."
   echo "   - a short description of the target platform (arch, OS, distrib, compiler)."