2
#******************************************************************************
6
# $Id: runtest.sh 2364 2009-04-29 08:10:02Z scribe $
8
# Copyright 1998-2009 CrossWire Bible Society (http://www.crosswire.org)
9
# CrossWire Bible Society
11
# Tempe, AZ 85280-2528
13
# This program is free software; you can redistribute it and/or modify it
14
# under the terms of the GNU General Public License as published by the
15
# Free Software Foundation version 2.
17
# This program is distributed in the hope that it will be useful, but
18
# WITHOUT ANY WARRANTY; without even the implied warranty of
19
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
20
# General Public License for more details.
23
if [ "$1" = "" ]; then
24
echo usage: $0 "<test_to_run (no .sh)>"
29
BAD=`diff -uBb $1.try $1.good`
30
if [ "$BAD" = "" ]; then
31
if [ "$2" = "-q" ]; then
38
if [ "$2" = "-q" ]; then
41
echo "Script failed at: (- bad output; + should have been)"
42
diff -u $1.try $1.good