#!/bin/sh

# Test makefiles should periodically invoke this file.
# It checks if the user is trying to stop the test.
# If so, the file that so indicates is removed and status 1 is
# returned.
# This should cause the makefile to stop.

if [ "$1" = "" ]
then
  echo "Invocation error - no directory to check"
  exit 1
fi


if [ -f $1/KILLTEST ]
then
  echo "YOU HAVE REQUESTED THAT TESTS STOP.  THIS MAY TAKE A LITTLE WHILE."
  echo "EXPECT FAILURE MESSAGES FROM MAKEFILES."
  /bin/rm -f $1/KILLTEST
  exit 1
fi

exit 0
