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 \
15 xbt/dynar_int xbt/dynar_double xbt/dynar_string \
16 xbt/dict_usage xbt/dict_crash \
20 gras/trp_tcp_usage gras/trp_file_usage \
22 "gras/datadesc_usage --read @srcdir@/gras/datadesc.little32" \
23 "gras/datadesc_usage --read @srcdir@/gras/datadesc.little64" \
24 "gras/datadesc_usage --read @srcdir@/gras/datadesc.big32" \
25 "gras/datadesc_usage --read @srcdir@/gras/datadesc.big64" \
26 "gras/datadesc_usage --read @srcdir@/gras/datadesc.aix"
28 tests_nb=`expr $tests_nb + 1`
29 echo "#### Test $test"
30 if [ "x$test" = "xdict_crash" ] ; then
31 ./$test --gras-log="root.thres=info" 2>&1
33 $valgrind ./$test --gras-log="root.thres=info" 2>&1
36 if [ $retval != 0 ] ; then if [ $retval != 77 ]; then
37 echo "## failed. Rerun $test with full details."
38 if [ "x$test" = "xdict_crash" ] ; then
39 ./$test --gras-log="root.thres=debug" 2>&1
41 $valgrind ./$test --gras-log="root.thres=debug" 2>&1
43 failed_nb=`expr $failed_nb + 1`
44 echo " $test (returned $retval)" >> test.failed
46 echo "## Ignored since it returned 77"
47 ignored_nb=`expr $ignored_nb + 1`
48 echo " $test" >> test.ignored
51 success_nb=`expr $success_nb + 1`
52 echo " $test" >> test.success
59 echo "$success_nb tests of $tests_nb successfull:"
62 if [ $ignored_nb != 0 ] ; then
63 echo "$failed_nb tests of $tests_nb ignored:"
65 echo " (they returned 77, meaning that they are not applicable)"
67 if [ $failed_nb != 0 ] ; then
68 echo "$failed_nb tests of $tests_nb failed: "
70 echo "Rerun the tests using the following command: script -c 'make test' gras.tests.log"
71 echo " and send the following informations to martin.quinson@ens-lyon.fr:"
72 echo " - the file gras.tests.log produced by this command."
73 echo " - a short description of the target platform (arch, OS, distrib, compiler)."
74 echo " - the config.log produced by the compilation."
77 rm -f test.success test.failed test.ignored