Créer des profils du manteau neigeux - retour accueil
git clone git://bebou.netlib.re/gelinive
Log | Files | Refs | README |
commit 1d3ddda759fd6febda5f4f8c3d93a02166cd4978 parent 2ae22d5bd61ef626af56c1686ef5e079d2c5afd0 Auterice: Arthur Pons <arthur.pons@unistra.fr> Date: Mon, 11 Mar 2024 10:35:59 +0100 Un peu de factorisation dans les tests Diffstat:
M | tests/test | | | 7 | +++++-- |
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/tests/test b/tests/test @@ -5,16 +5,19 @@ red="\033[91m" green="\033[92m" norm="\033[0m" +pass() echo $green"pass"$norm +fail() echo $red"fail"$norm + echo "Launching test" for file in data do printf "Testing file $file through stdin : " < $file ./gelinive > $tempdir/1 -cmp --silent tests/res$file $tempdir/1 && echo $green"pass"$norm || echo $red"fail"$norm +cmp --silent tests/res$file $tempdir/1 && pass || fail printf "Testing file $file through positional argument : " ./gelinive $file > $tempdir/1 -cmp --silent tests/res$file $tempdir/1 && echo $green"pass"$norm || echo $red"fail"$norm +cmp --silent tests/res$file $tempdir/1 && pass || fail done