7 rm -f test.failed test.success test.ignored
9 if [ xvalgrind = "x$1" ] ; then
10 valgrind="libtool --mode=execute valgrind --show-reachable=yes"
14 for test in xbt/log_usage@EXEEXT@ \
15 xbt/dynar_int@EXEEXT@ xbt/dynar_double@EXEEXT@ xbt/dynar_string@EXEEXT@ \
16 xbt/dict_usage@EXEEXT@ xbt/dict_crash@EXEEXT@ \
17 xbt/config_usage@EXEEXT@ \
18 xbt/heap_bench@EXEEXT@ \
20 surf/maxmin_usage@EXEEXT@ surf/maxmin_bench@EXEEXT@ \
21 "surf/trace_usage@EXEEXT@ --surf-path=@top_srcdir@/testsuite/surf/" \
22 "surf/surf_usage@EXEEXT@ --surf-path=@top_srcdir@/testsuite/surf/ platform.xml" \
23 "surf/surf_usage2@EXEEXT@ --surf-path=@top_srcdir@/testsuite/surf/ platform.xml" \
25 "msg/msg_test@EXEEXT@ --surf-path=@top_srcdir@/examples/msg/"
27 # gras/trp_tcp_usage gras/trp_file_usage
28 # gras/datadesc_usage@EXEEXT@
29 # "gras/datadesc_usage@EXEEXT@ --read @top_srcdir@/testsuite/gras/datadesc.little32"
30 # "gras/datadesc_usage@EXEEXT@ --read @top_srcdir@/testsuite/gras/datadesc.little64"
31 # "gras/datadesc_usage@EXEEXT@ --read @top_srcdir@/testsuite/gras/datadesc.big32"
32 # "gras/datadesc_usage@EXEEXT@ --read @top_srcdir@/testsuite/gras/datadesc.big64"
33 # "gras/datadesc_usage@EXEEXT@ --read @top_srcdir@/testsuite/gras/datadesc.aix"
34 # "gras/datadesc_usage@EXEEXT@ --read @top_srcdir@/testsuite/gras/datadesc.win32"
35 # "gras/datadesc_usage@EXEEXT@ --read @top_srcdir@/testsuite/gras/datadesc.g5"
38 tests_nb=`expr $tests_nb + 1`
39 echo "#### Test $test"
40 if [ x@EXEEXT@ = x ] ; then
45 if [ "x$test" = "xdict_crash@EXEEXT@" ] ; then
46 $wine ./$test --xbt-log="root.thres=info" 2>&1
50 if [ x@EXEEXT@ != x ] ; then
51 if echo ${test} | grep @EXEEXT@ >/dev/null ; then : ; else
52 echo "This is not a win32 binary, don't use wine"
56 # if the user defines valgrind while cross-compiling, too bad
57 $wine $valgrind ./$test --xbt-log="root.thres=info" 2>&1
61 if [ $retval != 0 ] ; then if [ $retval != 77 ]; then
62 echo "## failed. Rerun $test with full details."
63 # if [ "x$test" = "xdict_crash" ] ; then
64 # $wine ./$test --xbt-log="root.thres=debug" 2>&1
66 # $wine $valgrind ./$test --xbt-log="root.thres=debug" 2>&1
68 failed_nb=`expr $failed_nb + 1`
69 echo " $test (returned $retval)" >> test.failed
71 echo "## Ignored since it returned 77"
72 ignored_nb=`expr $ignored_nb + 1`
73 echo " $test" >> test.ignored
76 success_nb=`expr $success_nb + 1`
77 echo " $test" >> test.success
84 echo "$success_nb tests of $tests_nb successfull:"
87 if [ $ignored_nb != 0 ] ; then
88 echo "$failed_nb tests of $tests_nb ignored:"
90 echo " (they returned 77, meaning that they are not applicable)"
92 if [ $failed_nb != 0 ] ; then
93 echo "$failed_nb tests of $tests_nb failed: "
95 echo "Rerun the tests using the following command: script -c 'make test' simgrid.tests.log"
96 echo " and send the following informations to simgrid2-users@listes.ens-lyon.fr:"
97 echo " - the file simgrid.tests.log produced by this command."
98 echo " - a short description of the target platform (arch, OS, distrib, compiler)."
99 echo " - the config.log produced by the compilation."
102 rm -f test.success test.failed test.ignored