Add AT&T Research regex(3) regression testsuite
authorJohn Marino <draco@marino.st>
Mon, 3 Aug 2015 21:35:20 +0000 (23:35 +0200)
committerJohn Marino <draco@marino.st>
Mon, 3 Aug 2015 21:48:56 +0000 (23:48 +0200)
commitabce74f49c2c19b069958a0b48de0a9987d14e35
tree25a5260b741ef83a39ef0e6d2dac7a964c2bb54d
parent079f8304762cd14e4f578ffed857b72b6e0b0283
Add AT&T Research regex(3) regression testsuite

Before we replace our ancient regex, we need to baseline it.
This is a well-known and maintained regex testsuite from AT&T Research.
The following commands from tools/regression/lib/libc-regex can be used:

  Make full-test-run   (this runs all tests consecutively)

  make test-basic
  make test-categorize
  make test-nullsubexpr
  make test-leftassoc
  make test-rightassoc
  make test-forcedassoc
  make test-repetition

To change the locale, set LOCALE (e.g. make LOCAL=en_US.UTF-8 test-basic)
These are the baseline results:

  basic       : TEST testregex, 539 tests,  0 errors
  categorize  : TEST testregex,  20 tests,  0 errors
  nullsubexpr : TEST testregex,  84 tests, 31 errors
  leftassoc   : TEST testregex,  12 tests, 12 errors
  rightassoc  : TEST testregex,  24 tests,  0 errors
  forcedassoc : TEST testregex,  48 tests,  8 errors
  repetition  : TEST testregex, 129 tests, 37 errors

UNSUPPORTED:
  AUGMENTED,SHELL,CLASS_ESCAPE,COMMENT,DELIMITED,DISCIPLINE,ESCAPE,LEFT,
  LENIENT,LITERAL,MINIMAL,MULTIPLE,MULTIREF,MUSTDELIM,NULL,RIGHT,
  SHELL_DOT,SHELL_ESCAPED,SHELL_GROUP,SHELL_PATH,SPAN,regnexec,
  regsubcomp,redecomp
tools/regression/lib/libc-regex/Makefile [new file with mode: 0644]
tools/regression/lib/libc-regex/README [new file with mode: 0644]
tools/regression/lib/libc-regex/datafiles/basic.dat [new file with mode: 0644]
tools/regression/lib/libc-regex/datafiles/categorize.dat [new file with mode: 0644]
tools/regression/lib/libc-regex/datafiles/forcedassoc.dat [new file with mode: 0644]
tools/regression/lib/libc-regex/datafiles/leftassoc.dat [new file with mode: 0644]
tools/regression/lib/libc-regex/datafiles/nullsubexpr.dat [new file with mode: 0644]
tools/regression/lib/libc-regex/datafiles/repetition.dat [new file with mode: 0644]
tools/regression/lib/libc-regex/datafiles/rightassoc.dat [new file with mode: 0644]
tools/regression/lib/libc-regex/testregex.c [new file with mode: 0644]