git: Add AT&T Research regex(3) regression testsuite

John Marino marino at crater.dragonflybsd.org
Mon Aug 3 14:49:37 PDT 2015


commit abce74f49c2c19b069958a0b48de0a9987d14e35
Author: John Marino <draco at marino.st>
Date:   Mon Aug 3 23:35:20 2015 +0200

    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

Summary of changes:
 tools/regression/lib/libc-regex/Makefile           |   18 +
 tools/regression/lib/libc-regex/README             |  149 ++
 .../regression/lib/libc-regex/datafiles/basic.dat  |  216 ++
 .../lib/libc-regex/datafiles/categorize.dat        |   62 +
 .../lib/libc-regex/datafiles/forcedassoc.dat       |   30 +
 .../lib/libc-regex/datafiles/leftassoc.dat         |   16 +
 .../lib/libc-regex/datafiles/nullsubexpr.dat       |   73 +
 .../lib/libc-regex/datafiles/repetition.dat        |  140 ++
 .../lib/libc-regex/datafiles/rightassoc.dat        |   16 +
 tools/regression/lib/libc-regex/testregex.c        | 2286 ++++++++++++++++++++
 10 files changed, 3006 insertions(+)
 create mode 100644 tools/regression/lib/libc-regex/Makefile
 create mode 100644 tools/regression/lib/libc-regex/README
 create mode 100644 tools/regression/lib/libc-regex/datafiles/basic.dat
 create mode 100644 tools/regression/lib/libc-regex/datafiles/categorize.dat
 create mode 100644 tools/regression/lib/libc-regex/datafiles/forcedassoc.dat
 create mode 100644 tools/regression/lib/libc-regex/datafiles/leftassoc.dat
 create mode 100644 tools/regression/lib/libc-regex/datafiles/nullsubexpr.dat
 create mode 100644 tools/regression/lib/libc-regex/datafiles/repetition.dat
 create mode 100644 tools/regression/lib/libc-regex/datafiles/rightassoc.dat
 create mode 100644 tools/regression/lib/libc-regex/testregex.c

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/abce74f49c2c19b069958a0b48de0a9987d14e35


-- 
DragonFly BSD source repository



More information about the Commits mailing list