5 if [ xvalgrind = "x$1" ] ; then
10 for test in log_usage \
11 dynar_int dynar_double dynar_string \
12 dict_usage dict_crash \
17 tests_nb=`expr $tests_nb + 1`
18 echo "#### Test $test"
19 if [ "x$test" = "xdict_crash" ] ; then
20 ./$test --gras-log="root.thres=info" 2>&1
22 $valgrind ./$test --gras-log="root.thres=info" 2>&1
25 echo "## failed. Rerun $test with full details."
26 if [ "x$test" = "xdict_crash" ] ; then
27 ./$test --gras-log="root.thres=debug" 2>&1
29 $valgrind ./$test --gras-log="root.thres=debug" 2>&1
31 failed_nb=`expr $failed_nb + 1`
32 failed="$failed $test"
35 success_nb=`expr $success_nb + 1`
36 success="$success $test"
39 failed=`echo $failed|sed 's|^ ||'`
40 success=`echo $success|sed 's|^ ||'`
43 echo "$success_nb tests of $tests_nb successfull ($success)"
44 if [ $failed_nb != 0 ] ; then
45 echo "$failed_nb tests of $tests_nb failed ($failed)"
46 echo "Rerun the tests using the following command: script -c 'make test' gras.tests.log"
47 echo " and send the following informations to martin.quinson@ens-lyon.fr:"
48 echo " - the file gras.tests.log produced by this command"
49 echo " - a short description of the target platform (arch, OS, distrib, compiler)."
50 echo " - the config.log produced by the compilation, if possible."