diff options
author | obrien <obrien@FreeBSD.org> | 1999-11-22 09:43:15 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 1999-11-22 09:43:15 +0000 |
commit | 5c571858f06d65bffae5bc23708d5586574a0d3a (patch) | |
tree | e73664f9a7bc6fb2d8d4f491acdd88ce37c604fe /gnu | |
parent | c8848f1c67169d10ea34c1ceb10eceffad93ec00 (diff) | |
download | FreeBSD-src-5c571858f06d65bffae5bc23708d5586574a0d3a.zip FreeBSD-src-5c571858f06d65bffae5bc23708d5586574a0d3a.tar.gz |
spencer.tests is now spencer1.tests. The other files aren't part of
GNU Grep any longer.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/usr.bin/grep/tests/check.sh | 24 | ||||
-rw-r--r-- | gnu/usr.bin/grep/tests/scriptgen.awk | 10 | ||||
-rw-r--r-- | gnu/usr.bin/grep/tests/spencer.tests | 122 |
3 files changed, 0 insertions, 156 deletions
diff --git a/gnu/usr.bin/grep/tests/check.sh b/gnu/usr.bin/grep/tests/check.sh deleted file mode 100644 index d2c8fdb..0000000 --- a/gnu/usr.bin/grep/tests/check.sh +++ /dev/null @@ -1,24 +0,0 @@ -#! /bin/sh -# Regression test for GNU grep. -# Usage: regress.sh [testdir] - -testdir=${1-tests} - -failures=0 - -# The Khadafy test is brought to you by Scott Anderson . . . -./grep -E -f $testdir/khadafy.regexp $testdir/khadafy.lines > khadafy.out -if cmp $testdir/khadafy.lines khadafy.out -then - : -else - echo Khadafy test failed -- output left on khadafy.out - failures=1 -fi - -# . . . and the following by Henry Spencer. - -${AWK-awk} -F: -f $testdir/scriptgen.awk $testdir/spencer.tests > tmp.script - -sh tmp.script && exit $failures -exit 1 diff --git a/gnu/usr.bin/grep/tests/scriptgen.awk b/gnu/usr.bin/grep/tests/scriptgen.awk deleted file mode 100644 index 44ef4df..0000000 --- a/gnu/usr.bin/grep/tests/scriptgen.awk +++ /dev/null @@ -1,10 +0,0 @@ -BEGIN { print "failures=0"; } -$0 !~ /^#/ && NF == 3 { - print "echo '" $3 "' | ./grep -E -e '" $2 "' > /dev/null 2>&1"; - print "if [ $? != " $1 " ]" - print "then" - printf "\techo Spencer test \\#%d failed\n", ++n - print "\tfailures=1" - print "fi" -} -END { print "exit $failures"; } diff --git a/gnu/usr.bin/grep/tests/spencer.tests b/gnu/usr.bin/grep/tests/spencer.tests deleted file mode 100644 index cb506d7..0000000 --- a/gnu/usr.bin/grep/tests/spencer.tests +++ /dev/null @@ -1,122 +0,0 @@ -0:abc:abc -1:abc:xbc -1:abc:axc -1:abc:abx -0:abc:xabcy -0:abc:ababc -0:ab*c:abc -0:ab*bc:abc -0:ab*bc:abbc -0:ab*bc:abbbbc -0:ab+bc:abbc -1:ab+bc:abc -1:ab+bc:abq -0:ab+bc:abbbbc -0:ab?bc:abbc -0:ab?bc:abc -1:ab?bc:abbbbc -0:ab?c:abc -0:^abc$:abc -1:^abc$:abcc -0:^abc:abcc -1:^abc$:aabc -0:abc$:aabc -0:^:abc -0:$:abc -0:a.c:abc -0:a.c:axc -0:a.*c:axyzc -1:a.*c:axyzd -1:a[bc]d:abc -0:a[bc]d:abd -1:a[b-d]e:abd -0:a[b-d]e:ace -0:a[b-d]:aac -0:a[-b]:a- -0:a[b-]:a- -2:a[b-a]:- -2:a[]b:- -2:a[:- -0:a]:a] -0:a[]]b:a]b -0:a[^bc]d:aed -1:a[^bc]d:abd -0:a[^-b]c:adc -1:a[^-b]c:a-c -1:a[^]b]c:a]c -0:a[^]b]c:adc -0:ab|cd:abc -0:ab|cd:abcd -0:()ef:def -0:()*:- -1:*a:- -0:^*:- -0:$*:- -1:(*)b:- -1:$b:b -2:a\:- -0:a\(b:a(b -0:a\(*b:ab -0:a\(*b:a((b -1:a\x:a\x -2:abc):- -2:(abc:- -0:((a)):abc -0:(a)b(c):abc -0:a+b+c:aabbabc -0:a**:- -0:a*?:- -0:(a*)*:- -0:(a*)+:- -0:(a|)*:- -0:(a*|b)*:- -0:(a+|b)*:ab -0:(a+|b)+:ab -0:(a+|b)?:ab -0:[^ab]*:cde -0:(^)*:- -0:(ab|)*:- -2:)(:- -1:abc: -1:abc: -0:a*: -0:([abc])*d:abbbcd -0:([abc])*bcd:abcd -0:a|b|c|d|e:e -0:(a|b|c|d|e)f:ef -0:((a*|b))*:- -0:abcd*efg:abcdefg -0:ab*:xabyabbbz -0:ab*:xayabbbz -0:(ab|cd)e:abcde -0:[abhgefdc]ij:hij -1:^(ab|cd)e:abcde -0:(abc|)ef:abcdef -0:(a|b)c*d:abcd -0:(ab|ab*)bc:abc -0:a([bc]*)c*:abc -0:a([bc]*)(c*d):abcd -0:a([bc]+)(c*d):abcd -0:a([bc]*)(c+d):abcd -0:a[bcd]*dcdcde:adcdcde -1:a[bcd]+dcdcde:adcdcde -0:(ab|a)b*c:abc -0:((a)(b)c)(d):abcd -0:[A-Za-z_][A-Za-z0-9_]*:alpha -0:^a(bc+|b[eh])g|.h$:abh -0:(bc+d$|ef*g.|h?i(j|k)):effgz -0:(bc+d$|ef*g.|h?i(j|k)):ij -1:(bc+d$|ef*g.|h?i(j|k)):effg -1:(bc+d$|ef*g.|h?i(j|k)):bcdd -0:(bc+d$|ef*g.|h?i(j|k)):reffgz -1:((((((((((a)))))))))):- -0:(((((((((a))))))))):a -1:multiple words of text:uh-uh -0:multiple words:multiple words, yeah -0:(.*)c(.*):abcde -1:\((.*),:(.*)\) -1:[k]:ab -0:abcd:abcd -0:a(bc)d:abcd -0:a[-]?c:ac -0:(....).*\1:beriberi |