Improve the format of the --iterations output.
[rsync/rsync.git] / wildtest.txt
CommitLineData
97d53f8c
WD
1# Input is in the following format (all items white-space separated):
2#
3# The first two items are 1 or 0 indicating if the wildmat call is expected
4# to succeed and if fnmatch works the same way as wildmat, respectively.
5# After that is a text string for the match, and a pattern string. Strings
6# can be quoted in either double or single quotes, as well as backticks.
7#
8# MATCH FNMATCH_SAME "text to match" 'pattern to use'
9
10# Basic wildmat features
111 1 foo foo
120 1 foo bar
131 1 '' ""
141 1 foo ???
150 1 foo ??
161 1 foo *
171 1 foo f*
180 1 foo *f
191 1 foo *foo*
201 1 foobar *ob*a*r*
211 1 aaaaaaabababab *ab
221 1 foo* foo\*
230 1 foobar foo\*bar
241 1 f\oo f\\oo
251 1 ball *[al]?
260 1 ten [ten]
271 1 ten **[!te]
280 1 ten **[!ten]
291 1 ten t[a-g]n
300 1 ten t[!a-g]n
311 1 ton t[!a-g]n
321 1 ton t[^a-g]n
331 1 a]b a[]]b
341 1 a-b a[]-]b
351 1 a]b a[]-]b
360 1 aab a[]-]b
371 1 aab a[]a-]b
381 1 ] ]
39
40# Extended slash-matching features
410 1 foo/baz/bar foo*bar
421 1 foo/baz/bar foo**bar
430 1 foo/bar foo?bar
441 0 foo/bar foo[/]bar
450 1 foo **/foo
461 1 /foo **/foo
471 1 bar/baz/foo **/foo
480 1 bar/baz/foo */foo
490 0 foo/bar/baz **/bar*
501 1 foo/bar/baz **/bar**
51
52# Various additional tests
530 1 acrt a[c-c]st
540 1 ] [!]-]
551 1 a [!]-]
560 1 '' \
570 1 \ \
581 1 foo foo
591 1 @foo @foo
600 1 foo @foo
611 1 [ab] \[ab]
621 1 ?a?b \??\?b
631 1 abc \a\b\c
640 1 foo ''
651 1 foo/bar/baz/to **/t[o]
66
67# Character class tests
681 1 a1B [[:alpha:]][[:digit:]][[:upper:]]
690 1 a [[:digit:][:upper:][:space:]]
701 1 A [[:digit:][:upper:][:space:]]
711 1 1 [[:digit:][:upper:][:space:]]
721 1 ' ' [[:digit:][:upper:][:space:]]
730 1 . [[:digit:][:upper:][:space:]]
741 1 5 [[:xdigit:]]
751 1 f [[:xdigit:]]
761 1 D [[:xdigit:]]
77
78# Additional tests, including some malformed wildmats
791 1 ] [\\-^]
800 1 [ [\\-^]
811 1 - [\-_]
821 1 ] [\]]
830 1 \] [\]]
840 1 \ [\]]
850 1 ab a[]b
860 1 a[]b a[]b
870 1 ab[ ab[
880 1 ab [!
890 1 ab [-
901 1 - [-]
910 1 - [a-
920 1 - [!a-
931 1 - [--A]
941 1 5 [--A]
951 1 ' ' '[ --]'
961 1 $ '[ --]'
971 1 - '[ --]'
980 1 0 '[ --]'
991 1 - [---]
1001 1 - [------]
1010 1 j [a-e-n]
1021 1 - [a-e-n]
1031 1 a [!------]
1040 1 [ []-a]
1051 1 ^ []-a]
1060 1 ^ [!]-a]
1071 1 [ [!]-a]
1081 1 ^ [a^bc]
1091 1 -b] [a-]b]
1100 1 \ [\]
1111 1 \ [\\]
1120 1 \ [!\\]
1131 1 G [A-\\]
1140 1 aaabbb b*a
1150 1 aabcaa *ba*
1161 1 , [,]
1171 1 , [\\,]
1181 1 \ [\\,]
1191 1 - [,-.]
1200 1 + [,-.]
1210 1 -.] [,-.]
1221 1 \ [[-\]]
1230 1 - [[-\]]
124
125# Test recursive calls and the ABORT code
1261 1 -adobe-courier-bold-o-normal--12-120-75-75-m-70-iso8859-1 -*-*-*-*-*-*-12-*-*-*-m-*-*-*
1270 1 -adobe-courier-bold-o-normal--12-120-75-75-X-70-iso8859-1 -*-*-*-*-*-*-12-*-*-*-m-*-*-*
1280 1 -adobe-courier-bold-o-normal--12-120-75-75-/-70-iso8859-1 -*-*-*-*-*-*-12-*-*-*-m-*-*-*
1291 1 /adobe/courier/bold/o/normal//12/120/75/75/m/70/iso8859/1 /*/*/*/*/*/*/12/*/*/*/m/*/*/*
1300 1 /adobe/courier/bold/o/normal//12/120/75/75/X/70/iso8859/1 /*/*/*/*/*/*/12/*/*/*/m/*/*/*
1311 1 abcd/abcdefg/abcdefghijk/abcdefghijklmnop.txt **/*a*b*g*n*t