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

..30-Jun-2020-

MakefileH A D30-Jun-20202 KiB7251

Makefile.reH A D30-Jun-2020693 2818

MamfileH A D30-Jun-202017.7 KiB497496

READMEH A D30-Jun-2020581 1513

README.reH A D30-Jun-20202 KiB6144

RELEASEH A D30-Jun-20208.8 KiB180179

austin.datH A D30-Jun-20201.4 KiB2823

basic.datH A D30-Jun-20208.4 KiB217215

callout.datH A D30-Jun-2020659 1612

categorize.datH A D30-Jun-20202.3 KiB6348

cut.datH A D30-Jun-2020959 3529

ed.cH A D30-Jun-202035.2 KiB1,8431,640

ed.tstH A D30-Jun-20204.1 KiB178167

escape.datH A D30-Jun-20201.4 KiB4938

forcedassoc.datH A D30-Jun-20201.3 KiB3129

grep.cH A D30-Jun-202022.8 KiB916846

grep.tstH A D30-Jun-2020114.2 KiB6,3866,202

group.datH A D30-Jun-20201.1 KiB5141

haskell.datH A D30-Jun-20204 KiB9288

iso8859-1.datH A D30-Jun-20204.3 KiB10376

leftassoc.datH A D30-Jun-2020615 1713

libtre.datH A D30-Jun-20208.9 KiB348342

locale.datH A D30-Jun-20205.1 KiB207159

minimal.datH A D30-Jun-20204.1 KiB158122

nested.datH A D30-Jun-202010.6 KiB379315

noop.datH A D30-Jun-202028.6 KiB700698

nullsubexpr-A.datH A D30-Jun-20201.8 KiB7465

nullsubexpr.datH A D30-Jun-20201.8 KiB7465

pcre-1.datH A D30-Jun-202063.6 KiB1,4241,421

pcre-2.datH A D30-Jun-202010.4 KiB342339

pcre-3.datH A D30-Jun-202026.4 KiB919918

pcre-4.datH A D30-Jun-2020858 4335

pcre-5.datH A D30-Jun-20202.6 KiB7674

perl.datH A D30-Jun-20207.5 KiB285278

re-assoc.mmH A D30-Jun-2020329 1716

re-categorize.mmH A D30-Jun-20203 KiB124123

re-definitions.mmH A D30-Jun-202012.9 KiB280237

re-interpretation.mmH A D30-Jun-202032.1 KiB897886

re-nullsubexpr.mmH A D30-Jun-2020297 1514

re-repetition.mmH A D30-Jun-2020276 1312

reg.datH A D30-Jun-202014.2 KiB722604

regex++.datH A D30-Jun-202023.4 KiB929857

repetition.datH A D30-Jun-20205.3 KiB141110

rightassoc.datH A D30-Jun-2020615 1713

rxposix.datH A D30-Jun-202019.1 KiB409407

sed.hH A D30-Jun-20204.1 KiB11653

sed.tstH A D30-Jun-202013.9 KiB480444

sed0.cH A D30-Jun-20208.1 KiB340286

sed1.cH A D30-Jun-202015.4 KiB741636

sed2.cH A D30-Jun-202011.5 KiB565481

sed3.cH A D30-Jun-20203.4 KiB9973

subexpr.datH A D30-Jun-2020787 3025

testdecomp.datH A D30-Jun-2020428 1816

testfmt.cH A D30-Jun-202011.6 KiB568512

testfmt.datH A D30-Jun-2020967 7350

testfnmatch.cH A D30-Jun-202018.4 KiB934864

testfnmatch.datH A D30-Jun-202013 KiB577530

testglob.cH A D30-Jun-202022.2 KiB1,0911,007

testglob.datH A D30-Jun-202011.2 KiB324287

testmatch.cH A D30-Jun-202023.5 KiB1,1651,085

testmatch.datH A D30-Jun-202010.1 KiB346303

testoldmatch.cH A D30-Jun-20201.5 KiB273

testregex.cH A D30-Jun-202051.4 KiB2,2892,155

testregex.datH A D30-Jun-202047 KiB1,7551,518

testregex.mmH A D30-Jun-20204.6 KiB150149

testsub.datH A D30-Jun-20206 KiB228188

type.datH A D30-Jun-20201.3 KiB5441

unknownassoc.datH A D30-Jun-2020595 1713

xopen.datH A D30-Jun-2020472 1614

zero.datH A D30-Jun-20206.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