gelinive

Créer des profils du manteau neigeux - retour accueil

git clone git://bebou.netlib.re/gelinive
Log | Files | Refs | README |

test (659B)


      1 #! /bin/sh
      2 
      3 tempdir=$(mktemp -d);trap "rm -rf $tempdir" EXIt
      4 red="\033[91m"
      5 green="\033[92m"
      6 norm="\033[0m"
      7 
      8 pass() echo -n $green"succès"$norm
      9 fail() echo -n $red"échec"$norm
     10 
     11 echo "Lancement des tests"
     12 
     13 for file in miribel hohneck
     14 do
     15 printf "Test du fichier $file | "
     16 < tests/$file ./gelinivetest -t "Fichier de test$file" -f $tempdir/${file}tab -c tests/${file}temp > $tempdir/$file.png
     17 printf "tab "
     18 cmp --silent tests/${file}tab $tempdir/${file}tab && pass || fail
     19 printf " image "
     20 cmp --quiet tests/$file.png $tempdir/$file.png && pass || fail
     21 # compare -metric AE tests/$file.png $tempdir/$file.png /dev/null 2> /dev/null && pass || fail
     22 echo
     23 done
     24