[comp.os.minix] gnu egrep v1.3 -- tests lib

dono@killer.Dallas.TX.US (Don OConnell) (03/18/89)

This is the tests directory that goes with gnu's egrep v1.3. There will be
4 postings that follow that have the source code. Only three files had to
be modified to run under minix: dfa.h regex.c grep.c
I used the -DUSG define in the makefile and commented out the last part of
grep.c.

Don O'Connell					killer!dono
-------------------------------Cut Here-----------------------------------
#! /bin/sh
# This is a shell archive.  Remove anything before this line, then unpack
# it by saving it into a file and typing "sh file".  To overwrite existing
# files, type "sh file -c".  You can also feed this as standard input via
# unshar, or by typing "sh <file", e.g..  If this archive is complete, you
# will see the following message at the end:
#		"End of shell archive."
# Contents:  khadafy.lines khadafy.regexp regress.sh scriptgen.awk
#   spencer.tests tmp.script
# Wrapped by dono@killer on Sat Mar 18 00:10:17 1989
PATH=/bin:/usr/bin:/usr/ucb ; export PATH
if test -f khadafy.lines -a "${1}" != "-c" ; then 
  echo shar: Will not over-write existing file \"khadafy.lines\"
else
echo shar: Extracting \"khadafy.lines\" \(728 characters\)
sed "s/^X//" >khadafy.lines <<'END_OF_khadafy.lines'
X1)  Muammar Qaddafi
X2)  Mo'ammar Gadhafi
X3)  Muammar Kaddafi
X4)  Muammar Qadhafi
X5)  Moammar El Kadhafi
X6)  Muammar Gadafi
X7)  Mu'ammar al-Qadafi
X8)  Moamer El Kazzafi
X9)  Moamar al-Gaddafi
X10) Mu'ammar Al Qathafi
X11) Muammar Al Qathafi
X12) Mo'ammar el-Gadhafi
X13) Moamar El Kadhafi
X14) Muammar al-Qadhafi
X15) Mu'ammar al-Qadhdhafi
X16) Mu'ammar Qadafi
X17) Moamar Gaddafi
X18) Mu'ammar Qadhdhafi
X19) Muammar Khaddafi
X20) Muammar al-Khaddafi
X21) Mu'amar al-Kadafi
X22) Muammar Ghaddafy
X23) Muammar Ghadafi
X24) Muammar Ghaddafi
X25) Muamar Kaddafi
X26) Muammar Quathafi
X27) Muammar Gheddafi
X28) Muamar Al-Kaddafi
X29) Moammar Khadafy
X30) Moammar Qudhafi
X31) Mu'ammar al-Qaddafi
X32) Mulazim Awwal Mu'ammar Muhammad Abu Minyar al-Qadhafi
END_OF_khadafy.lines
if test 728 -ne `wc -c <khadafy.lines`; then
    echo shar: \"khadafy.lines\" unpacked with wrong size!
fi
# end of overwriting check
fi
if test -f khadafy.regexp -a "${1}" != "-c" ; then 
  echo shar: Will not over-write existing file \"khadafy.regexp\"
else
echo shar: Extracting \"khadafy.regexp\" \(66 characters\)
sed "s/^X//" >khadafy.regexp <<'END_OF_khadafy.regexp'
XM[ou]'?am+[ae]r .*([AEae]l[- ])?[GKQ]h?[aeu]+([dtz][dhz]?)+af[iy]
END_OF_khadafy.regexp
if test 66 -ne `wc -c <khadafy.regexp`; then
    echo shar: \"khadafy.regexp\" unpacked with wrong size!
fi
# end of overwriting check
fi
if test -f regress.sh -a "${1}" != "-c" ; then 
  echo shar: Will not over-write existing file \"regress.sh\"
else
echo shar: Extracting \"regress.sh\" \(513 characters\)
sed "s/^X//" >regress.sh <<'END_OF_regress.sh'
X#! /bin/sh -
X
Xfailures=0
X
X# The Khadafy test is brought to you by Scott Anderson . . .
X../egrep -f khadafy.regexp khadafy.lines > khadafy.out
Xif cmp khadafy.lines khadafy.out
Xthen
X	rm khadafy.out
Xelse
X	echo Khadafy test failed -- output left on khadafy.out
X	failures=1
Xfi
X
X# . . . and the following by Henry Spencer.
X
X# Remove # from line below if not running under minix
X# awk -F: -f scriptgen.awk spencer.tests > tmp.script
X
Xif sh tmp.script
Xthen
X#	rm tmp.script
X	exit $failures
Xelse
X#	rm tmp.script
X	exit 1
Xfi
END_OF_regress.sh
if test 513 -ne `wc -c <regress.sh`; then
    echo shar: \"regress.sh\" unpacked with wrong size!
fi
# end of overwriting check
fi
if test -f scriptgen.awk -a "${1}" != "-c" ; then 
  echo shar: Will not over-write existing file \"scriptgen.awk\"
else
echo shar: Extracting \"scriptgen.awk\" \(274 characters\)
sed "s/^X//" >scriptgen.awk <<'END_OF_scriptgen.awk'
XBEGIN { print "failures=0"; }
X!/^#/ && NF == 3 {
X	print "echo '" $3 "' | ../egrep -e '" $2 "' > /dev/null 2>&1";
X	print "if [ $? != " $1 " ]"
X	print "then"
X	printf "\techo Spencer test \\#%d failed\n", ++n
X	print "\tfailures=1"
X	print "fi"
X}
XEND { print "exit $failures"; }
END_OF_scriptgen.awk
if test 274 -ne `wc -c <scriptgen.awk`; then
    echo shar: \"scriptgen.awk\" unpacked with wrong size!
fi
# end of overwriting check
fi
if test -f spencer.tests -a "${1}" != "-c" ; then 
  echo shar: Will not over-write existing file \"spencer.tests\"
else
echo shar: Extracting \"spencer.tests\" \(1745 characters\)
sed "s/^X//" >spencer.tests <<'END_OF_spencer.tests'
X0:abc:abc
X1:abc:xbc
X1:abc:axc
X1:abc:abx
X0:abc:xabcy
X0:abc:ababc
X0:ab*c:abc
X0:ab*bc:abc
X0:ab*bc:abbc
X0:ab*bc:abbbbc
X0:ab+bc:abbc
X1:ab+bc:abc
X1:ab+bc:abq
X0:ab+bc:abbbbc
X0:ab?bc:abbc
X0:ab?bc:abc
X1:ab?bc:abbbbc
X0:ab?c:abc
X0:^abc$:abc
X1:^abc$:abcc
X0:^abc:abcc
X1:^abc$:aabc
X0:abc$:aabc
X0:^:abc
X0:$:abc
X0:a.c:abc
X0:a.c:axc
X0:a.*c:axyzc
X1:a.*c:axyzd
X1:a[bc]d:abc
X0:a[bc]d:abd
X1:a[b-d]e:abd
X0:a[b-d]e:ace
X0:a[b-d]:aac
X0:a[-b]:a-
X2:a[b-]:a-
X1:a[b-a]:-
X2:a[]b:-
X2:a[:-
X0:a]:a]
X0:a[]]b:a]b
X0:a[^bc]d:aed
X1:a[^bc]d:abd
X0:a[^-b]c:adc
X1:a[^-b]c:a-c
X1:a[^]b]c:a]c
X0:a[^]b]c:adc
X0:ab|cd:abc
X0:ab|cd:abcd
X0:()ef:def
X0:()*:-
X1:*a:-
X0:^*:-
X0:$*:-
X1:(*)b:-
X1:$b:b
X2:a\:-
X0:a\(b:a(b
X0:a\(*b:ab
X0:a\(*b:a((b
X1:a\x:a\x
X2:abc):-
X2:(abc:-
X0:((a)):abc
X0:(a)b(c):abc
X0:a+b+c:aabbabc
X0:a**:-
X0:a*?:-
X0:(a*)*:-
X0:(a*)+:-
X0:(a|)*:-
X0:(a*|b)*:-
X0:(a+|b)*:ab
X0:(a+|b)+:ab
X0:(a+|b)?:ab
X0:[^ab]*:cde
X0:(^)*:-
X0:(ab|)*:-
X2:)(:-
X1:abc:
X1:abc:
X0:a*:
X0:([abc])*d:abbbcd
X0:([abc])*bcd:abcd
X0:a|b|c|d|e:e
X0:(a|b|c|d|e)f:ef
X0:((a*|b))*:-
X0:abcd*efg:abcdefg
X0:ab*:xabyabbbz
X0:ab*:xayabbbz
X0:(ab|cd)e:abcde
X0:[abhgefdc]ij:hij
X1:^(ab|cd)e:abcde
X0:(abc|)ef:abcdef
X0:(a|b)c*d:abcd
X0:(ab|ab*)bc:abc
X0:a([bc]*)c*:abc
X0:a([bc]*)(c*d):abcd
X0:a([bc]+)(c*d):abcd
X0:a([bc]*)(c+d):abcd
X0:a[bcd]*dcdcde:adcdcde
X1:a[bcd]+dcdcde:adcdcde
X0:(ab|a)b*c:abc
X0:((a)(b)c)(d):abcd
X0:[A-Za-z_][A-Za-z0-9_]*:alpha
X0:^a(bc+|b[eh])g|.h$:abh
X0:(bc+d$|ef*g.|h?i(j|k)):effgz
X0:(bc+d$|ef*g.|h?i(j|k)):ij
X1:(bc+d$|ef*g.|h?i(j|k)):effg
X1:(bc+d$|ef*g.|h?i(j|k)):bcdd
X0:(bc+d$|ef*g.|h?i(j|k)):reffgz
X1:((((((((((a)))))))))):-
X0:(((((((((a))))))))):a
X1:multiple words of text:uh-uh
X0:multiple words:multiple words, yeah
X0:(.*)c(.*):abcde
X1:\((.*),:(.*)\)
X1:[k]:ab
X0:abcd:abcd
X0:a(bc)d:abcd
X0:a[-]?c:ac
X0:(....).*\1:beriberi
END_OF_spencer.tests
if test 1745 -ne `wc -c <spencer.tests`; then
    echo shar: \"spencer.tests\" unpacked with wrong size!
fi
# end of overwriting check
fi
if test -f tmp.script -a "${1}" != "-c" ; then 
  echo shar: Will not over-write existing file \"tmp.script\"
else
echo shar: Extracting \"tmp.script\" \(14473 characters\)
sed "s/^X//" >tmp.script <<'END_OF_tmp.script'
Xfailures=0
Xecho 'abc' | ../egrep -e 'abc' > /dev/null 2>&1
Xif [ $? != 0 ]
Xthen
X	echo Spencer test \#1 failed
X	failures=1
Xfi
Xecho 'xbc' | ../egrep -e 'abc' > /dev/null 2>&1
Xif [ $? != 1 ]
Xthen
X	echo Spencer test \#2 failed
X	failures=1
Xfi
Xecho 'axc' | ../egrep -e 'abc' > /dev/null 2>&1
Xif [ $? != 1 ]
Xthen
X	echo Spencer test \#3 failed
X	failures=1
Xfi
Xecho 'abx' | ../egrep -e 'abc' > /dev/null 2>&1
Xif [ $? != 1 ]
Xthen
X	echo Spencer test \#4 failed
X	failures=1
Xfi
Xecho 'xabcy' | ../egrep -e 'abc' > /dev/null 2>&1
Xif [ $? != 0 ]
Xthen
X	echo Spencer test \#5 failed
X	failures=1
Xfi
Xecho 'ababc' | ../egrep -e 'abc' > /dev/null 2>&1
Xif [ $? != 0 ]
Xthen
X	echo Spencer test \#6 failed
X	failures=1
Xfi
Xecho 'abc' | ../egrep -e 'ab*c' > /dev/null 2>&1
Xif [ $? != 0 ]
Xthen
X	echo Spencer test \#7 failed
X	failures=1
Xfi
Xecho 'abc' | ../egrep -e 'ab*bc' > /dev/null 2>&1
Xif [ $? != 0 ]
Xthen
X	echo Spencer test \#8 failed
X	failures=1
Xfi
Xecho 'abbc' | ../egrep -e 'ab*bc' > /dev/null 2>&1
Xif [ $? != 0 ]
Xthen
X	echo Spencer test \#9 failed
X	failures=1
Xfi
Xecho 'abbbbc' | ../egrep -e 'ab*bc' > /dev/null 2>&1
Xif [ $? != 0 ]
Xthen
X	echo Spencer test \#10 failed
X	failures=1
Xfi
Xecho 'abbc' | ../egrep -e 'ab+bc' > /dev/null 2>&1
Xif [ $? != 0 ]
Xthen
X	echo Spencer test \#11 failed
X	failures=1
Xfi
Xecho 'abc' | ../egrep -e 'ab+bc' > /dev/null 2>&1
Xif [ $? != 1 ]
Xthen
X	echo Spencer test \#12 failed
X	failures=1
Xfi
Xecho 'abq' | ../egrep -e 'ab+bc' > /dev/null 2>&1
Xif [ $? != 1 ]
Xthen
X	echo Spencer test \#13 failed
X	failures=1
Xfi
Xecho 'abbbbc' | ../egrep -e 'ab+bc' > /dev/null 2>&1
Xif [ $? != 0 ]
Xthen
X	echo Spencer test \#14 failed
X	failures=1
Xfi
Xecho 'abbc' | ../egrep -e 'ab?bc' > /dev/null 2>&1
Xif [ $? != 0 ]
Xthen
X	echo Spencer test \#15 failed
X	failures=1
Xfi
Xecho 'abc' | ../egrep -e 'ab?bc' > /dev/null 2>&1
Xif [ $? != 0 ]
Xthen
X	echo Spencer test \#16 failed
X	failures=1
Xfi
Xecho 'abbbbc' | ../egrep -e 'ab?bc' > /dev/null 2>&1
Xif [ $? != 1 ]
Xthen
X	echo Spencer test \#17 failed
X	failures=1
Xfi
Xecho 'abc' | ../egrep -e 'ab?c' > /dev/null 2>&1
Xif [ $? != 0 ]
Xthen
X	echo Spencer test \#18 failed
X	failures=1
Xfi
Xecho 'abc' | ../egrep -e '^abc$' > /dev/null 2>&1
Xif [ $? != 0 ]
Xthen
X	echo Spencer test \#19 failed
X	failures=1
Xfi
Xecho 'abcc' | ../egrep -e '^abc$' > /dev/null 2>&1
Xif [ $? != 1 ]
Xthen
X	echo Spencer test \#20 failed
X	failures=1
Xfi
Xecho 'abcc' | ../egrep -e '^abc' > /dev/null 2>&1
Xif [ $? != 0 ]
Xthen
X	echo Spencer test \#21 failed
X	failures=1
Xfi
Xecho 'aabc' | ../egrep -e '^abc$' > /dev/null 2>&1
Xif [ $? != 1 ]
Xthen
X	echo Spencer test \#22 failed
X	failures=1
Xfi
Xecho 'aabc' | ../egrep -e 'abc$' > /dev/null 2>&1
Xif [ $? != 0 ]
Xthen
X	echo Spencer test \#23 failed
X	failures=1
Xfi
Xecho 'abc' | ../egrep -e '^' > /dev/null 2>&1
Xif [ $? != 0 ]
Xthen
X	echo Spencer test \#24 failed
X	failures=1
Xfi
Xecho 'abc' | ../egrep -e '$' > /dev/null 2>&1
Xif [ $? != 0 ]
Xthen
X	echo Spencer test \#25 failed
X	failures=1
Xfi
Xecho 'abc' | ../egrep -e 'a.c' > /dev/null 2>&1
Xif [ $? != 0 ]
Xthen
X	echo Spencer test \#26 failed
X	failures=1
Xfi
Xecho 'axc' | ../egrep -e 'a.c' > /dev/null 2>&1
Xif [ $? != 0 ]
Xthen
X	echo Spencer test \#27 failed
X	failures=1
Xfi
Xecho 'axyzc' | ../egrep -e 'a.*c' > /dev/null 2>&1
Xif [ $? != 0 ]
Xthen
X	echo Spencer test \#28 failed
X	failures=1
Xfi
Xecho 'axyzd' | ../egrep -e 'a.*c' > /dev/null 2>&1
Xif [ $? != 1 ]
Xthen
X	echo Spencer test \#29 failed
X	failures=1
Xfi
Xecho 'abc' | ../egrep -e 'a[bc]d' > /dev/null 2>&1
Xif [ $? != 1 ]
Xthen
X	echo Spencer test \#30 failed
X	failures=1
Xfi
Xecho 'abd' | ../egrep -e 'a[bc]d' > /dev/null 2>&1
Xif [ $? != 0 ]
Xthen
X	echo Spencer test \#31 failed
X	failures=1
Xfi
Xecho 'abd' | ../egrep -e 'a[b-d]e' > /dev/null 2>&1
Xif [ $? != 1 ]
Xthen
X	echo Spencer test \#32 failed
X	failures=1
Xfi
Xecho 'ace' | ../egrep -e 'a[b-d]e' > /dev/null 2>&1
Xif [ $? != 0 ]
Xthen
X	echo Spencer test \#33 failed
X	failures=1
Xfi
Xecho 'aac' | ../egrep -e 'a[b-d]' > /dev/null 2>&1
Xif [ $? != 0 ]
Xthen
X	echo Spencer test \#34 failed
X	failures=1
Xfi
Xecho 'a-' | ../egrep -e 'a[-b]' > /dev/null 2>&1
Xif [ $? != 0 ]
Xthen
X	echo Spencer test \#35 failed
X	failures=1
Xfi
Xecho 'a-' | ../egrep -e 'a[b-]' > /dev/null 2>&1
Xif [ $? != 2 ]
Xthen
X	echo Spencer test \#36 failed
X	failures=1
Xfi
Xecho '-' | ../egrep -e 'a[b-a]' > /dev/null 2>&1
Xif [ $? != 1 ]
Xthen
X	echo Spencer test \#37 failed
X	failures=1
Xfi
Xecho '-' | ../egrep -e 'a[]b' > /dev/null 2>&1
Xif [ $? != 2 ]
Xthen
X	echo Spencer test \#38 failed
X	failures=1
Xfi
Xecho '-' | ../egrep -e 'a[' > /dev/null 2>&1
Xif [ $? != 2 ]
Xthen
X	echo Spencer test \#39 failed
X	failures=1
Xfi
Xecho 'a]' | ../egrep -e 'a]' > /dev/null 2>&1
Xif [ $? != 0 ]
Xthen
X	echo Spencer test \#40 failed
X	failures=1
Xfi
Xecho 'a]b' | ../egrep -e 'a[]]b' > /dev/null 2>&1
Xif [ $? != 0 ]
Xthen
X	echo Spencer test \#41 failed
X	failures=1
Xfi
Xecho 'aed' | ../egrep -e 'a[^bc]d' > /dev/null 2>&1
Xif [ $? != 0 ]
Xthen
X	echo Spencer test \#42 failed
X	failures=1
Xfi
Xecho 'abd' | ../egrep -e 'a[^bc]d' > /dev/null 2>&1
Xif [ $? != 1 ]
Xthen
X	echo Spencer test \#43 failed
X	failures=1
Xfi
Xecho 'adc' | ../egrep -e 'a[^-b]c' > /dev/null 2>&1
Xif [ $? != 0 ]
Xthen
X	echo Spencer test \#44 failed
X	failures=1
Xfi
Xecho 'a-c' | ../egrep -e 'a[^-b]c' > /dev/null 2>&1
Xif [ $? != 1 ]
Xthen
X	echo Spencer test \#45 failed
X	failures=1
Xfi
Xecho 'a]c' | ../egrep -e 'a[^]b]c' > /dev/null 2>&1
Xif [ $? != 1 ]
Xthen
X	echo Spencer test \#46 failed
X	failures=1
Xfi
Xecho 'adc' | ../egrep -e 'a[^]b]c' > /dev/null 2>&1
Xif [ $? != 0 ]
Xthen
X	echo Spencer test \#47 failed
X	failures=1
Xfi
Xecho 'abc' | ../egrep -e 'ab|cd' > /dev/null 2>&1
Xif [ $? != 0 ]
Xthen
X	echo Spencer test \#48 failed
X	failures=1
Xfi
Xecho 'abcd' | ../egrep -e 'ab|cd' > /dev/null 2>&1
Xif [ $? != 0 ]
Xthen
X	echo Spencer test \#49 failed
X	failures=1
Xfi
Xecho 'def' | ../egrep -e '()ef' > /dev/null 2>&1
Xif [ $? != 0 ]
Xthen
X	echo Spencer test \#50 failed
X	failures=1
Xfi
Xecho '-' | ../egrep -e '()*' > /dev/null 2>&1
Xif [ $? != 0 ]
Xthen
X	echo Spencer test \#51 failed
X	failures=1
Xfi
Xecho '-' | ../egrep -e '*a' > /dev/null 2>&1
Xif [ $? != 1 ]
Xthen
X	echo Spencer test \#52 failed
X	failures=1
Xfi
Xecho '-' | ../egrep -e '^*' > /dev/null 2>&1
Xif [ $? != 0 ]
Xthen
X	echo Spencer test \#53 failed
X	failures=1
Xfi
Xecho '-' | ../egrep -e '$*' > /dev/null 2>&1
Xif [ $? != 0 ]
Xthen
X	echo Spencer test \#54 failed
X	failures=1
Xfi
Xecho '-' | ../egrep -e '(*)b' > /dev/null 2>&1
Xif [ $? != 1 ]
Xthen
X	echo Spencer test \#55 failed
X	failures=1
Xfi
Xecho 'b' | ../egrep -e '$b' > /dev/null 2>&1
Xif [ $? != 1 ]
Xthen
X	echo Spencer test \#56 failed
X	failures=1
Xfi
Xecho '-' | ../egrep -e 'a\' > /dev/null 2>&1
Xif [ $? != 2 ]
Xthen
X	echo Spencer test \#57 failed
X	failures=1
Xfi
Xecho 'a(b' | ../egrep -e 'a\(b' > /dev/null 2>&1
Xif [ $? != 0 ]
Xthen
X	echo Spencer test \#58 failed
X	failures=1
Xfi
Xecho 'ab' | ../egrep -e 'a\(*b' > /dev/null 2>&1
Xif [ $? != 0 ]
Xthen
X	echo Spencer test \#59 failed
X	failures=1
Xfi
Xecho 'a((b' | ../egrep -e 'a\(*b' > /dev/null 2>&1
Xif [ $? != 0 ]
Xthen
X	echo Spencer test \#60 failed
X	failures=1
Xfi
Xecho 'a\x' | ../egrep -e 'a\x' > /dev/null 2>&1
Xif [ $? != 1 ]
Xthen
X	echo Spencer test \#61 failed
X	failures=1
Xfi
Xecho '-' | ../egrep -e 'abc)' > /dev/null 2>&1
Xif [ $? != 2 ]
Xthen
X	echo Spencer test \#62 failed
X	failures=1
Xfi
Xecho '-' | ../egrep -e '(abc' > /dev/null 2>&1
Xif [ $? != 2 ]
Xthen
X	echo Spencer test \#63 failed
X	failures=1
Xfi
Xecho 'abc' | ../egrep -e '((a))' > /dev/null 2>&1
Xif [ $? != 0 ]
Xthen
X	echo Spencer test \#64 failed
X	failures=1
Xfi
Xecho 'abc' | ../egrep -e '(a)b(c)' > /dev/null 2>&1
Xif [ $? != 0 ]
Xthen
X	echo Spencer test \#65 failed
X	failures=1
Xfi
Xecho 'aabbabc' | ../egrep -e 'a+b+c' > /dev/null 2>&1
Xif [ $? != 0 ]
Xthen
X	echo Spencer test \#66 failed
X	failures=1
Xfi
Xecho '-' | ../egrep -e 'a**' > /dev/null 2>&1
Xif [ $? != 0 ]
Xthen
X	echo Spencer test \#67 failed
X	failures=1
Xfi
Xecho '-' | ../egrep -e 'a*?' > /dev/null 2>&1
Xif [ $? != 0 ]
Xthen
X	echo Spencer test \#68 failed
X	failures=1
Xfi
Xecho '-' | ../egrep -e '(a*)*' > /dev/null 2>&1
Xif [ $? != 0 ]
Xthen
X	echo Spencer test \#69 failed
X	failures=1
Xfi
Xecho '-' | ../egrep -e '(a*)+' > /dev/null 2>&1
Xif [ $? != 0 ]
Xthen
X	echo Spencer test \#70 failed
X	failures=1
Xfi
Xecho '-' | ../egrep -e '(a|)*' > /dev/null 2>&1
Xif [ $? != 0 ]
Xthen
X	echo Spencer test \#71 failed
X	failures=1
Xfi
Xecho '-' | ../egrep -e '(a*|b)*' > /dev/null 2>&1
Xif [ $? != 0 ]
Xthen
X	echo Spencer test \#72 failed
X	failures=1
Xfi
Xecho 'ab' | ../egrep -e '(a+|b)*' > /dev/null 2>&1
Xif [ $? != 0 ]
Xthen
X	echo Spencer test \#73 failed
X	failures=1
Xfi
Xecho 'ab' | ../egrep -e '(a+|b)+' > /dev/null 2>&1
Xif [ $? != 0 ]
Xthen
X	echo Spencer test \#74 failed
X	failures=1
Xfi
Xecho 'ab' | ../egrep -e '(a+|b)?' > /dev/null 2>&1
Xif [ $? != 0 ]
Xthen
X	echo Spencer test \#75 failed
X	failures=1
Xfi
Xecho 'cde' | ../egrep -e '[^ab]*' > /dev/null 2>&1
Xif [ $? != 0 ]
Xthen
X	echo Spencer test \#76 failed
X	failures=1
Xfi
Xecho '-' | ../egrep -e '(^)*' > /dev/null 2>&1
Xif [ $? != 0 ]
Xthen
X	echo Spencer test \#77 failed
X	failures=1
Xfi
Xecho '-' | ../egrep -e '(ab|)*' > /dev/null 2>&1
Xif [ $? != 0 ]
Xthen
X	echo Spencer test \#78 failed
X	failures=1
Xfi
Xecho '-' | ../egrep -e ')(' > /dev/null 2>&1
Xif [ $? != 2 ]
Xthen
X	echo Spencer test \#79 failed
X	failures=1
Xfi
Xecho '' | ../egrep -e 'abc' > /dev/null 2>&1
Xif [ $? != 1 ]
Xthen
X	echo Spencer test \#80 failed
X	failures=1
Xfi
Xecho '' | ../egrep -e 'abc' > /dev/null 2>&1
Xif [ $? != 1 ]
Xthen
X	echo Spencer test \#81 failed
X	failures=1
Xfi
Xecho '' | ../egrep -e 'a*' > /dev/null 2>&1
Xif [ $? != 0 ]
Xthen
X	echo Spencer test \#82 failed
X	failures=1
Xfi
Xecho 'abbbcd' | ../egrep -e '([abc])*d' > /dev/null 2>&1
Xif [ $? != 0 ]
Xthen
X	echo Spencer test \#83 failed
X	failures=1
Xfi
Xecho 'abcd' | ../egrep -e '([abc])*bcd' > /dev/null 2>&1
Xif [ $? != 0 ]
Xthen
X	echo Spencer test \#84 failed
X	failures=1
Xfi
Xecho 'e' | ../egrep -e 'a|b|c|d|e' > /dev/null 2>&1
Xif [ $? != 0 ]
Xthen
X	echo Spencer test \#85 failed
X	failures=1
Xfi
Xecho 'ef' | ../egrep -e '(a|b|c|d|e)f' > /dev/null 2>&1
Xif [ $? != 0 ]
Xthen
X	echo Spencer test \#86 failed
X	failures=1
Xfi
Xecho '-' | ../egrep -e '((a*|b))*' > /dev/null 2>&1
Xif [ $? != 0 ]
Xthen
X	echo Spencer test \#87 failed
X	failures=1
Xfi
Xecho 'abcdefg' | ../egrep -e 'abcd*efg' > /dev/null 2>&1
Xif [ $? != 0 ]
Xthen
X	echo Spencer test \#88 failed
X	failures=1
Xfi
Xecho 'xabyabbbz' | ../egrep -e 'ab*' > /dev/null 2>&1
Xif [ $? != 0 ]
Xthen
X	echo Spencer test \#89 failed
X	failures=1
Xfi
Xecho 'xayabbbz' | ../egrep -e 'ab*' > /dev/null 2>&1
Xif [ $? != 0 ]
Xthen
X	echo Spencer test \#90 failed
X	failures=1
Xfi
Xecho 'abcde' | ../egrep -e '(ab|cd)e' > /dev/null 2>&1
Xif [ $? != 0 ]
Xthen
X	echo Spencer test \#91 failed
X	failures=1
Xfi
Xecho 'hij' | ../egrep -e '[abhgefdc]ij' > /dev/null 2>&1
Xif [ $? != 0 ]
Xthen
X	echo Spencer test \#92 failed
X	failures=1
Xfi
Xecho 'abcde' | ../egrep -e '^(ab|cd)e' > /dev/null 2>&1
Xif [ $? != 1 ]
Xthen
X	echo Spencer test \#93 failed
X	failures=1
Xfi
Xecho 'abcdef' | ../egrep -e '(abc|)ef' > /dev/null 2>&1
Xif [ $? != 0 ]
Xthen
X	echo Spencer test \#94 failed
X	failures=1
Xfi
Xecho 'abcd' | ../egrep -e '(a|b)c*d' > /dev/null 2>&1
Xif [ $? != 0 ]
Xthen
X	echo Spencer test \#95 failed
X	failures=1
Xfi
Xecho 'abc' | ../egrep -e '(ab|ab*)bc' > /dev/null 2>&1
Xif [ $? != 0 ]
Xthen
X	echo Spencer test \#96 failed
X	failures=1
Xfi
Xecho 'abc' | ../egrep -e 'a([bc]*)c*' > /dev/null 2>&1
Xif [ $? != 0 ]
Xthen
X	echo Spencer test \#97 failed
X	failures=1
Xfi
Xecho 'abcd' | ../egrep -e 'a([bc]*)(c*d)' > /dev/null 2>&1
Xif [ $? != 0 ]
Xthen
X	echo Spencer test \#98 failed
X	failures=1
Xfi
Xecho 'abcd' | ../egrep -e 'a([bc]+)(c*d)' > /dev/null 2>&1
Xif [ $? != 0 ]
Xthen
X	echo Spencer test \#99 failed
X	failures=1
Xfi
Xecho 'abcd' | ../egrep -e 'a([bc]*)(c+d)' > /dev/null 2>&1
Xif [ $? != 0 ]
Xthen
X	echo Spencer test \#100 failed
X	failures=1
Xfi
Xecho 'adcdcde' | ../egrep -e 'a[bcd]*dcdcde' > /dev/null 2>&1
Xif [ $? != 0 ]
Xthen
X	echo Spencer test \#101 failed
X	failures=1
Xfi
Xecho 'adcdcde' | ../egrep -e 'a[bcd]+dcdcde' > /dev/null 2>&1
Xif [ $? != 1 ]
Xthen
X	echo Spencer test \#102 failed
X	failures=1
Xfi
Xecho 'abc' | ../egrep -e '(ab|a)b*c' > /dev/null 2>&1
Xif [ $? != 0 ]
Xthen
X	echo Spencer test \#103 failed
X	failures=1
Xfi
Xecho 'abcd' | ../egrep -e '((a)(b)c)(d)' > /dev/null 2>&1
Xif [ $? != 0 ]
Xthen
X	echo Spencer test \#104 failed
X	failures=1
Xfi
Xecho 'alpha' | ../egrep -e '[A-Za-z_][A-Za-z0-9_]*' > /dev/null 2>&1
Xif [ $? != 0 ]
Xthen
X	echo Spencer test \#105 failed
X	failures=1
Xfi
Xecho 'abh' | ../egrep -e '^a(bc+|b[eh])g|.h$' > /dev/null 2>&1
Xif [ $? != 0 ]
Xthen
X	echo Spencer test \#106 failed
X	failures=1
Xfi
Xecho 'effgz' | ../egrep -e '(bc+d$|ef*g.|h?i(j|k))' > /dev/null 2>&1
Xif [ $? != 0 ]
Xthen
X	echo Spencer test \#107 failed
X	failures=1
Xfi
Xecho 'ij' | ../egrep -e '(bc+d$|ef*g.|h?i(j|k))' > /dev/null 2>&1
Xif [ $? != 0 ]
Xthen
X	echo Spencer test \#108 failed
X	failures=1
Xfi
Xecho 'effg' | ../egrep -e '(bc+d$|ef*g.|h?i(j|k))' > /dev/null 2>&1
Xif [ $? != 1 ]
Xthen
X	echo Spencer test \#109 failed
X	failures=1
Xfi
Xecho 'bcdd' | ../egrep -e '(bc+d$|ef*g.|h?i(j|k))' > /dev/null 2>&1
Xif [ $? != 1 ]
Xthen
X	echo Spencer test \#110 failed
X	failures=1
Xfi
Xecho 'reffgz' | ../egrep -e '(bc+d$|ef*g.|h?i(j|k))' > /dev/null 2>&1
Xif [ $? != 0 ]
Xthen
X	echo Spencer test \#111 failed
X	failures=1
Xfi
Xecho '-' | ../egrep -e '((((((((((a))))))))))' > /dev/null 2>&1
Xif [ $? != 1 ]
Xthen
X	echo Spencer test \#112 failed
X	failures=1
Xfi
Xecho 'a' | ../egrep -e '(((((((((a)))))))))' > /dev/null 2>&1
Xif [ $? != 0 ]
Xthen
X	echo Spencer test \#113 failed
X	failures=1
Xfi
Xecho 'uh-uh' | ../egrep -e 'multiple words of text' > /dev/null 2>&1
Xif [ $? != 1 ]
Xthen
X	echo Spencer test \#114 failed
X	failures=1
Xfi
Xecho 'multiple words, yeah' | ../egrep -e 'multiple words' > /dev/null 2>&1
Xif [ $? != 0 ]
Xthen
X	echo Spencer test \#115 failed
X	failures=1
Xfi
Xecho 'abcde' | ../egrep -e '(.*)c(.*)' > /dev/null 2>&1
Xif [ $? != 0 ]
Xthen
X	echo Spencer test \#116 failed
X	failures=1
Xfi
Xecho '(.*)\)' | ../egrep -e '\((.*),' > /dev/null 2>&1
Xif [ $? != 1 ]
Xthen
X	echo Spencer test \#117 failed
X	failures=1
Xfi
Xecho 'ab' | ../egrep -e '[k]' > /dev/null 2>&1
Xif [ $? != 1 ]
Xthen
X	echo Spencer test \#118 failed
X	failures=1
Xfi
Xecho 'abcd' | ../egrep -e 'abcd' > /dev/null 2>&1
Xif [ $? != 0 ]
Xthen
X	echo Spencer test \#119 failed
X	failures=1
Xfi
Xecho 'abcd' | ../egrep -e 'a(bc)d' > /dev/null 2>&1
Xif [ $? != 0 ]
Xthen
X	echo Spencer test \#120 failed
X	failures=1
Xfi
Xecho 'ac' | ../egrep -e 'a[-]?c' > /dev/null 2>&1
Xif [ $? != 0 ]
Xthen
X	echo Spencer test \#121 failed
X	failures=1
Xfi
Xecho 'beriberi' | ../egrep -e '(....).*\1' > /dev/null 2>&1
Xif [ $? != 0 ]
Xthen
X	echo Spencer test \#122 failed
X	failures=1
Xfi
Xexit $failures
END_OF_tmp.script
if test 14473 -ne `wc -c <tmp.script`; then
    echo shar: \"tmp.script\" unpacked with wrong size!
fi
# end of overwriting check
fi
echo shar: End of shell archive.
exit 0