run.sh revision 9c3531d72aeaad6c5f01efe6a1c82023e1379e4d
#
# Copyright (C) 2000 Internet Software Consortium.
#
# Permission to use, copy, modify, and distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND INTERNET SOFTWARE CONSORTIUM DISCLAIMS
# ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES
# OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL INTERNET SOFTWARE
# CONSORTIUM BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL
# DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR
# PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS
# ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
# SOFTWARE.
# $Id: run.sh,v 1.26 2000/06/22 21:51:27 tale Exp $
#
# Run a system test.
#
stopservers=true
case $1 in
--keep) stopservers=false; shift ;;
esac
test=$1
shift
echo "T:$test:1:A" >&2
echo "A:System test $test" >&2
if [ x$PERL = x ]
then
echo "I:Perl not available. Not trying system tests." >&2
echo "R:UNTESTED" >&2
exit 0;
fi
#test -f /var/run/system_test_ifsetup ||
#test -f /etc/system_test_ifsetup ||
# { echo "I:Interfaces not set up. Not trying system tests." >&2;
# echo "R:UNTESTED" >&2
# echo "E:$test:`date`" >&2
# exit 0;
# }
echo "I:Interfaces not set up. Not trying system tests." >&2;
echo "R:UNTESTED" >&2;
exit 0;
}
# Set up any dynamically generated test data
then
fi
# Start name servers running
sleep 10
# Run the tests
status=$?
if $stopservers
then
:
else
exit $status
fi
# Shutdown
# Cleanup
then
fi
exit $status