7 rm -f test.failed test.success test.ignored
9 if [ xvalgrind = "x$1" ] ; then
15 for test in log_usage \
16 dynar_int dynar_double dynar_string \
17 dict_usage dict_crash \
20 "datadesc_usage --read datadesc.little32" \
21 "datadesc_usage --read datadesc.big32" \
22 "datadesc_usage --read datadesc.big64"
24 tests_nb=`expr $tests_nb + 1`
25 echo "#### Test $test"
26 if [ "x$test" = "xdict_crash" ] ; then
27 ./$test --gras-log="root.thres=info" 2>&1
29 $valgrind ./$test --gras-log="root.thres=info" 2>&1
32 if [ $retval != 0 ] ; then if [ $retval != 77 ]; then
33 echo "## failed. Rerun $test with full details."
34 if [ "x$test" = "xdict_crash" ] ; then
35 ./$test --gras-log="root.thres=debug" 2>&1
37 $valgrind ./$test --gras-log="root.thres=debug" 2>&1
39 failed_nb=`expr $failed_nb + 1`
40 echo " $test (returned $retval)" >> test.failed
42 echo "## Ignored since it returned 77"
43 ignored_nb=`expr $ignored_nb + 1`
44 echo " $test" >> test.ignored
47 success_nb=`expr $success_nb + 1`
48 echo " $test" >> test.success
55 echo "$success_nb tests of $tests_nb successfull:"
58 if [ $ignored_nb != 0 ] ; then
59 echo "$failed_nb tests of $tests_nb ignored:"
61 echo " (they returned 77, meaning that they are not applicable)"
63 if [ $failed_nb != 0 ] ; then
64 echo "$failed_nb tests of $tests_nb failed: "
66 echo "Rerun the tests using the following command: script -c 'make test' gras.tests.log"
67 echo " and send the following informations to martin.quinson@ens-lyon.fr:"
68 echo " - the file gras.tests.log produced by this command."
69 echo " - a short description of the target platform (arch, OS, distrib, compiler)."
70 echo " - the config.log produced by the compilation."
73 rm -f test.success test.failed test.ignored