2 ###############################################################################
5 # RCS: $Header: /home/matthew/cvs/bible-kjv-4.10/testall,v 2.0 2003/01/08 15:29:52 matthew Exp $
6 # Description: Test file for Bible software
7 # Author: Chip Chapin, Hewlett Packard Company
8 # Created: Wed Aug 30 15:42:35 1989
9 # Modified: Mon Oct 2 22:32:14 1989 (Chip Chapin) chip@hpcllz2
10 # Language: Bourne Shell
11 # Package: Bible Retrieval System
12 # Status: Experimental (Do Not Distribute)
15 # Revision 2.0 2003/01/08 15:29:52 matthew
16 # versions collected from the net
18 # Revision 1.8 89/10/02 22:41:36 22:41:36 chip (Chip Chapin)
19 # *** empty log message ***
21 # Revision 1.7 89/10/02 22:24:45 22:24:45 chip (Chip Chapin)
22 # Revised to print command string prior to each test.
23 # New tests for -l bugs, and for blank-line-after-verse-range.
25 # Revision 1.6 89/09/14 20:34:26 20:34:26 chip (Chip Chapin)
26 # Release 1-2. Supports -f and -l options for formatting the output.
27 # Updates primarily brl.c, bible.c, and bible.1.
29 # Revision 1.5 89/09/13 21:50:22 21:50:22 chip (Chip Chapin)
30 # Implement -f and -l options.
32 # Revision 1.4 89/09/11 17:37:03 17:37:03 chip (Chip Chapin)
33 # Fix bug in auto-checking.
35 # Revision 1.3 89/09/08 13:23:44 13:23:44 chip (Chip Chapin)
36 # Better error checking on verse syntax; automatic test suite.
38 # Revision 1.2 89/09/08 09:01:44 09:01:44 chip (Chip Chapin)
39 # Bug fix and simplification: send whole input lines or arguments to BRL,
40 # and let BRL worry about multiple references. We don't care.
42 # Revision 1.1 89/09/05 17:50:00 17:50:00 chip (Chip Chapin)
46 ###############################################################################
51 trap "/bin/rm -f $T1 $T2; exit" 0 1 3
60 ge1:1 ex1:1 lev1:1 num1:1 deut1:1 jos1:1 jdg1:1 ruth1:1 1sa1:1 2sa1:1
61 1ki1:1 2ki1:1 1ch1:1 2ch1:1 ezr1:1 neh1:1 est1:1 job1:1 ps1:1 pr1:1
62 ecc1:1 so1:1 is1:1 jer1:1 lam1:1 eze1:1 dan1:1 hos1:1 joe1:1 amo1:1
63 ob1:1 jon1:1 mic1:1 nah1:1 hab1:1 zep1:1 hag1:1 zec1:1 mal1:1
64 mt1:1 mk1:1 lu1:1 jn1:1 acts1:1 ro1:1 1co1:1 2co1:1 gal1:1 eph1:1
65 php1:1 col1:1 1th1:1 2th1:1 1ti1:1 2ti1:1 ti1:1 phm1:1 he1:1
66 jas1:1 1pe1:1 2pe1:1 1jn1:1 2jn1:1 3jn1:1 jude1:1 rev1:1
70 echo "Basic command tests"
80 PROG -d bible.data -p". /usr/local/lib" jn3:16
98 echo "\n\nVerse Reference Syntax tests"
107 echo "\nBad Syntax tests"
113 echo "\n\nPretty Printing tests"
140 echo "\n\nBad command option tests"
162 # Assumes that the window size on the bible data is 64k
164 echo "\n\nTests with one buffer"
165 PROG -m1 ge1:1 ps1:1 mt1:1 mt1:1 ge1:1 ps1:1
168 echo "\n\nTests with two buffers"
169 PROG -m130 ge1:1 ps1:1 mt1:1 mt1:1 ge1:1 ps1:1
172 echo "\n\nTests with three buffers"
173 PROG -m 200 ge1:1 ps1:1 mt1:1 mt1:1 ge1:1 ps1:1
177 echo "\n\nDumping whole bible. Watch the line count, head and tail"
178 PROG gen1:1-rev99:99 > $T2
183 echo "\n\nTests completed"