#!/bin/sh

file=/tmp/verify.$$
touch $file

echo "n 1 50" | dejong >> $file
echo "y 1 50" | dejong >> $file
echo "20 50" | maxint_custom >> $file
echo "20 50" | real_rastrigin >> $file
echo "50" | udt_char >> $file

good=`diff verify_short.dat $file`
if [ -z "$good" ]
     then
          echo "Installation accuracy verified."
     else
          echo "Installation verification failed.  Test problems differ:"
          echo $good
fi

rm $file
