#!/bin/sh
################################################################################
# monitorTestAndNotify
# 1.0 SWC
# $Id: monitorTestAndNotify,v 1.2 2004/12/24 04:45:50 bobbynations Exp $
################################################################################

targetTest=${1}

if test -x logTest 
then
    ./logTest $targetTest
else
    sh ./logTest $targetTest
fi

$targetTest | grep failed | while read line
                            do
                              case $line in
                                *failed*) notify "$line" ;;
                              esac
                            done
