#!/bin/sh
TESTS="blog menu simple"
TEMPFILE=tmp
DIFFFILE=tmpdiff
for T in $TESTS; do
  echo -n "Test de $T"
  php -f ../$T.php > $TEMPFILE
  diff -u references/$T.out $TEMPFILE > $DIFFFILE
  if [ $? -eq 0 ]; then
	echo "	    [ok]"
  else
  	echo "	[failed]"
	cat $DIFFFILE
  fi
done
