test_file=/tmp/psmtest.xxx

psmtest 2>&1 >$test_file
if [ ! "`cat $test_file | grep failed`" = "" ] ; then exit 1 ; fi
if [ ! "`cat $test_file | grep unable`" = "" ] ; then exit 1 ; fi
if [ ! "`cat $test_file | grep Failed`" = "" ] ; then exit 1 ; fi
if [ ! "`cat $test_file | grep Unable`" = "" ] ; then exit 1 ; fi

exit 0
