]>
Commit | Line | Data |
---|---|---|
5f125488 A |
1 | ########################################################################### |
2 | # The testregex tests are not wired up yet | |
3 | ########################################################################### | |
4 | ||
5 | The AT&T testregex program is available from: | |
6 | ||
7 | http://www2.research.att.com/~astopen/testregex/ | |
8 | ||
9 | The so-called "testregex.c 2004-05-31" has a 2010 "what" string, so the | |
10 | versioning is weird. | |
11 | ||
12 | The original source code downloaded from the above URL is testregex.c.orig. | |
13 | testregex.c has a few modification, for example, to support our regex's | |
14 | "enhanced" mode, as well as pausing if the MallocStackLogging environment | |
15 | variable is set. | |
16 | ||
17 | The data files are in the datafiles subdirectory. Several are part of the | |
18 | testregex distribution: | |
19 | ||
20 | basic.dat | |
21 | categorize.dat | |
22 | nullsubexpr.dat | |
23 | leftassoc.dat (not included, since our implementation is right-associative) | |
24 | rightassoc.dat | |
25 | forcedassoc.dat | |
26 | repetition.dat | |
27 | ||
28 | The rest are from radars, adapted from the conformance tests, collected from | |
29 | internet sources or just created to test certain features. | |
30 | ||
31 | Easy to compile: | |
32 | ||
33 | % cc testregex.c -o testregex | |
34 | ||
35 | and easy to run: | |
36 | ||
37 | % testregex datafiles/union.dat | |
38 | TEST testregex union (AT&T Research) 2010-06-10 | |
39 | NOTE regex | |
40 | NOTE unsupported: AUGMENTED,SHELL,CLASS_ESCAPE,COMMENT,DELIMITED,DISCIPLINE,ESCAPE,LEFT,LENIENT,MULTIPLE,MULTIREF,MUSTDELIM,NULL,RIGHT,SHELL_DOT,SHELL_ESCAPED,SHELL_GROUP,SHELL_PATH,SPAN,regnexec,regsubcomp,redecomp | |
41 | TEST testregex union, 8 tests, 0 errors | |
42 | ||
43 | (Some of the locale tests print extra NOTE lines when it switches into a | |
44 | different locale.) | |
45 | ||
46 | All datafile should run without error, except: | |
47 | ||
48 | regex-posix-unittest-1.1.dat | |
49 | 14189743.dat | |
50 | ||
51 | The first has 8 failures: | |
52 | ||
53 | % testregex datafiles/regex-posix-unittest-1.1.dat | |
54 | TEST testregex regex-posix-unittest-1.1 (AT&T Research) 2010-06-10 | |
55 | NOTE regex | |
56 | NOTE unsupported: AUGMENTED,SHELL,CLASS_ESCAPE,COMMENT,DELIMITED,DISCIPLINE,ESCAPE,LEFT,LENIENT,MULTIPLE,MULTIREF,MUSTDELIM,NULL,RIGHT,SHELL_DOT,SHELL_ESCAPED,SHELL_GROUP,SHELL_PATH,SPAN,regnexec,regsubcomp,redecomp | |
57 | datafiles/regex-posix-unittest-1.1.dat:52: (^){0,3} versus a ERE failed: match was: (0,0)(?,?) expected: (0,0)(0,0) | |
58 | datafiles/regex-posix-unittest-1.1.dat:58: s(^|())e versus searchme ERE regexec failed: expected: (0,2)(1,1)(1,1) | |
59 | datafiles/regex-posix-unittest-1.1.dat:59: s(^|())e versus searchme ERE regexec failed: expected: (0,2)(1,1)(1,1) | |
60 | datafiles/regex-posix-unittest-1.1.dat:61: s(^)?e versus searchme ERE regexec failed: expected: (0,2)(?,?) | |
61 | datafiles/regex-posix-unittest-1.1.dat:66: ($)|() versus xxx ERE failed: match was: (3,3)(3,3)(?,?) expected: (0,0)(?,?)(0,0) | |
62 | datafiles/regex-posix-unittest-1.1.dat:67: $()|^() versus ac\n ERE failed: match was: (4,4)(4,4)(?,?) expected: (0,0)(?,?)(0,0) | |
63 | datafiles/regex-posix-unittest-1.1.dat:69: ($)?(.) versus __ ERE regexec failed: expected: (0,1)(?,?)(0,1) | |
64 | datafiles/regex-posix-unittest-1.1.dat:73: (.|$){2,} versus xx ERE failed: match was: (0,2)(2,2) expected: (0,2)(1,2) | |
65 | TEST testregex regex-posix-unittest-1.1, 149 tests, 8 errors | |
66 | ||
67 | This seems to have something to do with repetitions or alterations of ^ and $. | |
68 | Doesn't look like I ever filed a radar. | |
69 | ||
70 | The second failure is from the corresponding radar: | |
71 | ||
72 | % testregex datafiles/14189743.dat | |
73 | TEST testregex 14189743 (AT&T Research) 2010-06-10 | |
74 | NOTE regex | |
75 | NOTE unsupported: AUGMENTED,SHELL,CLASS_ESCAPE,COMMENT,DELIMITED,DISCIPLINE,ESCAPE,LEFT,LENIENT,MULTIPLE,MULTIREF,MUSTDELIM,NULL,RIGHT,SHELL_DOT,SHELL_ESCAPED,SHELL_GROUP,SHELL_PATH,SPAN,regnexec,regsubcomp,redecomp | |
76 | datafiles/14189743.dat:2: ^((([[:alnum:]_][[:alnum:]-]{0,61})?[[:alnum:]]\.)*)([[:alnum:]_][[:alnum:]-]{0,61})?[[:alnum:]]$ versus nssnssnssnssnssnssnssnssnssnssnssnssnssnssnssnssnssnssnssnssnssnss.edu ERE failed: match was: (0,70)(0,67)(0,67)(0,59)(67,69) expected: (0,1) | |
77 | datafiles/14189743.dat:3: ^((([[:alnum:]_][[:alnum:]-]{0,61})?[[:alnum:]]\.)*)([[:alnum:]_][[:alnum:]-]{0,61})?[[:alnum:]]$ versus ssnssnssnssnssnssnssnssnssnssnssnssnssnssnssnssnssnssnssnssnssnss.edu ERE failed: match was: (0,69)(0,66)(0,66)(0,64)(66,68) expected: (0,1) | |
78 | datafiles/14189743.dat:4: ^((([[:alnum:]_][[:alnum:]-]{0,61})?[[:alnum:]]\.)*)([[:alnum:]_][[:alnum:]-]{0,61})?[[:alnum:]]$ versus snssnssnssnssnssnssnssnssnssnssnssnssnssnssnssnssnssnssnssnssnss.edu ERE failed: match was: (0,68)(0,65)(0,65)(0,59)(65,67) expected: (0,1) | |
79 | datafiles/14189743.dat:5: ^((([[:alnum:]_][[:alnum:]-]{0,61})?[[:alnum:]]\.)*)([[:alnum:]_][[:alnum:]-]{0,61})?[[:alnum:]]$ versus nssnssnssnssnssnssnssnssnssnssnssnssnssnssnssnssnssnssnssnssnss.edu ERE failed: match was: (0,67)(0,64)(0,64)(0,62)(64,66) expected: (0,1) | |
80 | datafiles/14189743.dat:6: ^((([[:alnum:]_][[:alnum:]-]{0,61})?[[:alnum:]]\.)*)([[:alnum:]_][[:alnum:]-]{0,61})?[[:alnum:]]$ versus ssnssnssnssnssnssnssnssnssnssnssnssnssnssnssnssnssnssnssnssnss.edu ERE failed: match was: (0,66)(0,63)(0,63)(0,59)(63,65) expected: (0,1) | |
81 | datafiles/14189743.dat:7: ^((([[:alnum:]_][[:alnum:]-]{0,61})?[[:alnum:]]\.)*)([[:alnum:]_][[:alnum:]-]{0,61})?[[:alnum:]]$ versus snssnssnssnssnssnssnssnssnssnssnssnssnssnssnssnssnssnssnssnss.edu ERE failed: match was: (0,65)(0,62)(0,62)(0,60)(62,64) expected: (0,1) | |
82 | datafiles/14189743.dat:8: ^((([[:alnum:]_][[:alnum:]-]{0,61})?[[:alnum:]]\.)*)([[:alnum:]_][[:alnum:]-]{0,61})?[[:alnum:]]$ versus nssnssnssnssnssnssnssnssnssnssnssnssnssnssnssnssnssnssnssnss.edu ERE failed: match was: (0,64)(0,61)(0,61)(0,59)(61,63) expected: (0,1) | |
83 | datafiles/14189743.dat:9: ^((([[:alnum:]_][[:alnum:]-]{0,61})?[[:alnum:]]\.)*)([[:alnum:]_][[:alnum:]-]{0,61})?[[:alnum:]]$ versus ssnssnssnssnssnssnssnssnssnssnssnssnssnssnssnssnssnssnssnss.edu ERE failed: match was: (0,63)(0,60)(0,60)(0,58)(60,62) expected: (0,1) | |
84 | TEST testregex 14189743, 8 tests, 8 errors | |
85 | ||
86 | Never had a chance to investigate. |