• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..30-Nov-2017-

MakefileH A D30-Nov-20172 KiB6950

Makefile.reH A D30-Nov-2017693 2818

MamfileH A D30-Nov-201716.1 KiB453452

READMEH A D30-Nov-2017581 1513

README.reH A D30-Nov-20172 KiB6144

RELEASEH A D30-Nov-20178.9 KiB182181

austin.datH A D30-Nov-20171.4 KiB2823

basic.datH A D30-Nov-20178.4 KiB217215

callout.datH A D30-Nov-2017659 1612

categorize.datH A D30-Nov-20172.3 KiB6348

conjunction.datH A D30-Nov-20171.1 KiB3121

cut.datH A D30-Nov-2017959 3529

ed.cH A D30-Nov-201735.2 KiB1,8441,641

ed.tstH A D30-Nov-20174.1 KiB178167

escape.datH A D30-Nov-20171.4 KiB4938

forcedassoc.datH A D30-Nov-20171.3 KiB3129

group.datH A D30-Nov-20171.1 KiB5141

haskell.datH A D30-Nov-20174 KiB9288

iso8859-1.datH A D30-Nov-20174.3 KiB10376

ksh.datH A D30-Nov-20174.8 KiB8375

leftassoc.datH A D30-Nov-2017615 1713

libtre.datH A D30-Nov-20178.9 KiB348342

locale.datH A D30-Nov-20175.1 KiB207159

minimal.datH A D30-Nov-20174.1 KiB158122

nested.datH A D30-Nov-201710.6 KiB379315

noop.datH A D30-Nov-201728.6 KiB700698

nullsubexpr-A.datH A D30-Nov-20171.8 KiB7465

nullsubexpr.datH A D30-Nov-20171.8 KiB7465

pcre-1.datH A D30-Nov-201763.6 KiB1,4241,421

pcre-2.datH A D30-Nov-201710.4 KiB342339

pcre-3.datH A D30-Nov-201726.4 KiB919918

pcre-4.datH A D30-Nov-2017858 4335

pcre-5.datH A D30-Nov-20172.6 KiB7674

perl.datH A D30-Nov-20177.5 KiB285278

re-assoc.mmH A D30-Nov-2017329 1716

re-categorize.mmH A D30-Nov-20173 KiB124123

re-definitions.mmH A D30-Nov-201712.9 KiB280237

re-interpretation.mmH A D30-Nov-201732.1 KiB897886

re-nullsubexpr.mmH A D30-Nov-2017297 1514

re-repetition.mmH A D30-Nov-2017276 1312

reg.datH A D30-Nov-201714.2 KiB721603

regex++.datH A D30-Nov-201723.4 KiB929857

repetition.datH A D30-Nov-20175.3 KiB141110

rightassoc.datH A D30-Nov-2017615 1713

rxposix.datH A D30-Nov-201719.1 KiB409407

sed.hH A D30-Nov-20174.1 KiB11653

sed.tstH A D30-Nov-201713.9 KiB480444

sed0.cH A D30-Nov-20178.1 KiB340286

sed1.cH A D30-Nov-201715.8 KiB751646

sed2.cH A D30-Nov-201711.6 KiB568484

sed3.cH A D30-Nov-20173.4 KiB9973

subexpr.datH A D30-Nov-2017787 3025

testdecomp.datH A D30-Nov-2017428 1816

testfmt.cH A D30-Nov-201711.6 KiB568512

testfmt.datH A D30-Nov-2017967 7350

testfnmatch.cH A D30-Nov-201718.4 KiB934864

testfnmatch.datH A D30-Nov-201713 KiB577530

testglob.cH A D30-Nov-201722.2 KiB1,0911,007

testglob.datH A D30-Nov-201711.3 KiB326288

testmatch.cH A D30-Nov-201723.5 KiB1,1651,085

testmatch.datH A D30-Nov-201710.1 KiB346303

testoldmatch.cH A D30-Nov-20171.5 KiB273

testregex.cH A D30-Nov-201751.4 KiB2,2892,155

testregex.datH A D30-Nov-201747 KiB1,7551,518

testregex.mmH A D30-Nov-20174.6 KiB150149

testsub.datH A D30-Nov-20176 KiB228188

type.datH A D30-Nov-20171.3 KiB5441

unknownassoc.datH A D30-Nov-2017595 1713

xopen.datH A D30-Nov-2017472 1614

zero.datH A D30-Nov-20176.4 KiB215171

README

1POSIX regex snarfed from Doug McIlroy's C++.  Converted to C by Glenn
2Fowler.  *'d features have been added to Doug's original code.  testre
3should compile with other regex implementations, but you may need to
4run with -c to catch non-terminating loops and memory faults.
5
6FEATURE			BRE		ERE		ARE
7-------			---		---		---
8negation		NO		expr \!		expr !
9conjunction		NO		expr \& expr	expr & expr
10NULL subgroups		YES		NO		YES
11word boundaries*	\< expr \>	\< expr \>	< expr >
12minimal match*		NO		REG_MINIMAL	REG_MINIMAL
13shell patterns*		REG_SHELL	NO		NO
14ksh patterns*		NO		NO		REG_SHELL
15

README.re

1This directory contains AT&T test harnesses and data for the X/Open pattern
2matching routines:
3
4	HARNESS			HEADER		FUNCTIONS
5	-------			------		---------
6	testfnmatch.c		<fnmatch.h>	fnmatch()
7	testglob.c		<glob.h>	glob()
8	testregex.c		<regex.h>	regcomp(),regexec()
9
10Each test*.c file is a main program driven by the *.dat test data files.
11testglob.dat is only for testglob; all other test data files work with
12the remaining harnesses.
13
14The Makefile has targets for building harnesses and running tests:
15
16	all		build all harnesses
17	test		run all tests for all harnesses
18	test.foo	build harness foo and run the foo tests
19
20To run a single test, e.g. the standards.dat tests for testregex,
21
22	testregex < standards.dat
23
24If the local implementation hangs or dumps on some tests then run with
25the -c option.
26
27The -h option lists the test data format details. The test data files
28exercise all features; the harnesses detect and ignore features not
29supported by the local implementation.
30
31Extensions to the standard terminology are derived from the AT&T RE
32implementation, unified under <regex.h> with these modes:
33
34	MODE	FLAGS
35	----	-----
36	BRE	0			basic RE
37	ERE	REG_EXTENDED		egrep RE with perl (...) extensions
38	ARE	REG_AUGMENTED		ERE with ! negation, <> word boundaries
39	SRE	REG_SHELL		sh patterns
40	KRE	REG_SHELL|REG_AUGMENTED	ksh93 patterns: ! @ ( | & ) { }
41
42and some additional flags to handle fnmatch():
43
44	REG_SHELL_ESCAPED	FNM_NOESCAPE
45	REG_SHELL_PATH		FNM_PATHNAME
46	REG_SHELL_DOT		FNM_PERIOD
47
48The original testregex.c was done by Doug McIlroy at Bell Labs.
49The current implementation is maintained by
50
51	Glenn Fowler <gsf@research.att.com>
52
53I'd like to make the regression tests as comprehensive as possible.
54Send any new tests to me and I'll roll them into the open source
55distribution at http://www.research.att.com/sw/download/ with proper
56attribution.
57
58Please note that some regression tests nail down unspecified standard behavior.
59These should be noted in the test data with 'u' but currently are not.
60Experience with other implementations will help clean this up.
61