1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-22 17:35:59 +03:00

Wire the regex tests up to the reports

This commit is contained in:
Joe Thornber 2010-07-20 15:21:32 +00:00
parent f5fb224254
commit 17a259e894
4 changed files with 19 additions and 0 deletions

View File

@ -135,6 +135,7 @@ RUBY=ruby1.9 -Ireport-generators/lib -Ireport-generators/test
.PHONEY: unit-test ruby-test test-programs
test-programs:
$(MAKE) unit-tests/regex
unit-test: test-programs
$(RUBY) report-generators/unit_test.rb $(shell find . -name TESTS)

View File

@ -1333,6 +1333,7 @@ test/Makefile
test/api/Makefile
tools/Makefile
udev/Makefile
unit-tests/regex/Makefile
])
AC_OUTPUT

1
unit-tests/regex/TESTS Normal file
View File

@ -0,0 +1 @@
dfa matching:$TEST_TOOL ./matcher_t dev_patterns < devices.list > matcher_t.output && diff -u matcher_t.expected matcher_t.output

View File

@ -0,0 +1,16 @@
Matcher built with 23 dfa states
/dev/loop/0 : loop/[0-9]+
/dev/loop/1 : loop/[0-9]+
/dev/loop/2 : loop/[0-9]+
/dev/loop/3 : loop/[0-9]+
/dev/loop/4 : loop/[0-9]+
/dev/loop/5 : loop/[0-9]+
/dev/loop/6 : loop/[0-9]+
/dev/loop/7 : loop/[0-9]+
/dev/hda1 : hd[a-d][0-5]+
/dev/hda2 : hd[a-d][0-5]+
/dev/hda3 : hd[a-d][0-5]+
/dev/hda4 : hd[a-d][0-5]+
/dev/hda5 : hd[a-d][0-5]+
/dev/hdb1 : hd[a-d][0-5]+
/dev/hdc1 : hd[a-d][0-5]+