1#!/bin/sh
2#******************************************************************************
3#
4# Runs entire test suite
5#
6# $Id: runall.sh 3063 2014-03-04 13:04:11Z chrislit $
7#
8# Copyright 1998-2009 CrossWire Bible Society (http://www.crosswire.org)
9#	CrossWire Bible Society
10#	P. O. Box 2528
11#	Tempe, AZ  85280-2528
12#
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.
16#
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.
21#
22
23TESTSUITE=`for i in *.good; do basename $i .good; done`
24
25for i in $TESTSUITE; do
26	echo -n "$i: "
27	./runtest.sh $i -q
28	if [ $? -ne 0 ]; then
29		echo FAILED
30		echo ""
31		echo To see problems, try running:
32		echo ./runtest.sh $i
33		echo ""
34		exit 1
35	else
36		echo PASSED.
37	fi
38done
39echo "ALL PASSED!"
40exit 0
41fi
42