# DEBUG=-d 
PATH=.:$(pwd)/tools:$PATH
export PATH
echo "Testing $1 (postscript file) ..."
./$1 $DEBUG -c prima_printer README.ps

if [ "$2" != "" ] ; then
  echo "Testing $1 (postscript file stdin) ..."
  cat README.ps | ./$1 $DEBUG -c prima_printer
  echo "Testing $1 (ascii file) ..."
  ./$1 $DEBUG -c prima_printer LICENSE
  echo "Testing $1 (ask for filename) ..."
  ./$1 $DEBUG -c prima_printer
fi
