#!/bin/sh 

echo '---running (perl) id script'
make run 1>/dev/null 2>& 1
result=`grep OKAY id.log 2>/dev/null`
if [ "$result" = "" ]; then
   echo "   ERROR"
else   
   echo "   PASSED"
fi

echo '---running (perl) id script, expected failure'
make bad 1>/dev/null 2>& 1
result=`grep "Id creation from filename failed" id2.log 2>/dev/null`
if [ "$result" = "" ]; then
   echo "   ERROR"
else   
   echo "   PASSED"
fi
