diff options
author | Joe Thornber <thornber@redhat.com> | 2010-07-20 15:21:32 +0000 |
---|---|---|
committer | Joe Thornber <thornber@redhat.com> | 2010-07-20 15:21:32 +0000 |
commit | 15106c50644ec949c27d616720421bbfc16c7f80 (patch) | |
tree | 06e0322ccd8b60540893fd9d7350bbeb99e50975 /unit-tests/regex | |
parent | 80b99da822c69cc9d5c3ac167c5b587fe954b5de (diff) | |
download | lvm2-15106c50644ec949c27d616720421bbfc16c7f80.tar.gz lvm2-15106c50644ec949c27d616720421bbfc16c7f80.tar.xz lvm2-15106c50644ec949c27d616720421bbfc16c7f80.zip |
Wire the regex tests up to the reports
Diffstat (limited to 'unit-tests/regex')
-rw-r--r-- | unit-tests/regex/TESTS | 1 | ||||
-rw-r--r-- | unit-tests/regex/matcher_t.expected | 16 |
2 files changed, 17 insertions, 0 deletions
diff --git a/unit-tests/regex/TESTS b/unit-tests/regex/TESTS new file mode 100644 index 00000000..5c379d52 --- /dev/null +++ b/unit-tests/regex/TESTS @@ -0,0 +1 @@ +dfa matching:$TEST_TOOL ./matcher_t dev_patterns < devices.list > matcher_t.output && diff -u matcher_t.expected matcher_t.output
\ No newline at end of file diff --git a/unit-tests/regex/matcher_t.expected b/unit-tests/regex/matcher_t.expected new file mode 100644 index 00000000..aaf071c5 --- /dev/null +++ b/unit-tests/regex/matcher_t.expected @@ -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]+ |