Mercurial > hg-stable
comparison tests/test-run-tests.t @ 12376:97ffc68f71d3
tests: add glob matching for unified tests
This adds a " (glob)" marker that works like a simpler version of
(re): "*" is converted to ".*", and "?" is converted to ".".
Both special characters can be escaped using "\", and the backslash
itself can be escaped as well.
Other glob-style syntax, like "**", "[chars]", or "[!chars]", isn't
supported.
author | Brodie Rao <brodie@bitheap.org> |
---|---|
date | Wed, 22 Sep 2010 16:06:02 -0500 |
parents | 02990e22150b |
children | a5b77eb0409b |
comparison
equal
deleted
inserted
replaced
12375:02990e22150b | 12376:97ffc68f71d3 |
---|---|
19 $ echo foobarbaz | 19 $ echo foobarbaz |
20 foobar.* (re) | 20 foobar.* (re) |
21 $ echo barbazquux | 21 $ echo barbazquux |
22 .*quux.* (re) | 22 .*quux.* (re) |
23 | 23 |
24 Globs: | |
25 | |
26 $ echo '* \\foobarbaz {10}' | |
27 \* \\fo?bar* {10} (glob) | |
28 | |
24 Literal match ending in " (re)": | 29 Literal match ending in " (re)": |
25 | 30 |
26 $ echo 'foo (re)' | 31 $ echo 'foo (re)' |
27 foo (re) | 32 foo (re) |
28 | 33 |