Skip to contentSkip to conversation

LVM2/unit-tests/regex TESTS matcher_t.expected ...

PATCH [email protected] 1 participant 1 message Aug 9, 2010

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/lvm2
Module name: LVM2
Changes by: thornber at sourceware.org 2010-08-09 10:27:31

Modified files:
unit-tests/regex: TESTS
Added files:
unit-tests/regex: matcher_t.expected3 nonprint_input
nonprint_regexes

Log message:
[REGEX] add a unit test for regexes containing chars with value over x80

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/unit-tests/regex/matcher_t.expected3.diff?cvsroot=lvm2&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/unit-tests/regex/nonprint_input.diff?cvsroot=lvm2&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/unit-tests/regex/nonprint_regexes.diff?cvsroot=lvm2&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/LVM2/unit-tests/regex/TESTS.diff?cvsroot=lvm2&r1=1.2&r2=1.3

/cvs/lvm2/LVM2/unit-tests/regex/matcher_t.expected3,v --> standard output revision 1.1

- renamed from unit-tests/regex/matcher_t.expected3 +3 -0
@@ -0,0 +1,3 @@
+foo?bar : ?
+foo?b : foo?b
+? : ?

/cvs/lvm2/LVM2/unit-tests/regex/nonprint_input,v --> standard output revision 1.1

- renamed from unit-tests/regex/nonprint_input +4 -0
@@ -0,0 +1,4 @@
+foo.bar
+foo?bar
+foo?b
+?

/cvs/lvm2/LVM2/unit-tests/regex/nonprint_regexes,v --> standard output revision 1.1

- renamed from unit-tests/regex/nonprint_regexes +3 -0
@@ -0,0 +1,3 @@
+"foo?bar"
+"foo?b"
+"?"
unit-tests/regex/TESTS +3 -2
@@ -1,2 +1,3 @@
-dfa matching:$TEST_TOOL ./matcher_t dev_patterns < devices.list > matcher_t.output && diff -u matcher_t.expected matcher_t.output
-dfa matching:$TEST_TOOL ./matcher_t random_regexes < /dev/null > matcher_t.output && diff -u matcher_t.expected2 matcher_t.output
\ No newline at end of file
+dfa matching:$TEST_TOOL ./matcher_t --fingerprint dev_patterns < devices.list > matcher_t.output && diff -u matcher_t.expected matcher_t.output
+dfa matching:$TEST_TOOL ./matcher_t --fingerprint random_regexes < /dev/null > matcher_t.output && diff -u matcher_t.expected2 matcher_t.output
+dfa with non-print regex chars:$TEST_TOOL ./matcher_t nonprint_regexes < nonprint_input > matcher_t.output && diff -u matcher_t.expected3 matcher_t.output
\ No newline at end of file