START usr.bin/rsync-unit 2024-05-25T05:26:19Z ==== run-regress-rmatch_test ==== cc -O2 -pipe -I/usr/src/regress/usr.bin/rsync-unit -I/usr/src/regress/usr.bin/rsync-unit/../../../usr.bin/rsync -MD -MP -c /usr/src/regress/usr.bin/rsync-unit/rmatch_test.c cc -O2 -pipe -I/usr/src/regress/usr.bin/rsync-unit -I/usr/src/regress/usr.bin/rsync-unit/../../../usr.bin/rsync -MD -MP -c /usr/src/regress/usr.bin/rsync-unit/../../../usr.bin/rsync/rmatch.c cc -o rmatch_test rmatch_test.o rmatch.o ./rmatch_test string aaaabc pattern *abc does match string abc pattern abc does match string bbbcaa pattern *aaa does not match string aabb pattern aaa does not match string aaa pattern [a]?? does match string abcabc pattern *[a]?? does match string abcabc pattern [b]?? does not match string abcabc pattern *[b]??* does match string a pattern [a-z] does match string 1234a pattern *[a-z] does match string A pattern [a-z] does not match string 1234A pattern *[a-z] does not match string a pattern [[:lower:]] does match string 1234a pattern *[[:lower:]] does match string A pattern [[:lower:]] does not match string 1234A pattern *[[:lower:]] does not match string a pattern ? does match string 1234a pattern *? does match string a pattern \a does match string 1234a pattern *\a does match string / pattern / does match string 1234/ pattern */ does match string / pattern ? does not match string 1234/ pattern *? does not match string / pattern \/ does match string 1234/ pattern *\/ does match string abc/ pattern *abc/ does match string ababc/ pattern *abc/ does match string abc/xyz pattern *abc/* does match string xyz/abc pattern *abc/ does not match string ab/ pattern *abc/ does not match string abc pattern *abc/ does not match string abc. pattern *abc/ does not match string abcab/ pattern *abc/ does not match string abcd/abc pattern *abc/ does not match string a/aa/aaa/ pattern **???/ does match string a/aa/aa/ pattern **???/ does not match string a/aa/aaaxxxx/ pattern **???/ does match string a/aa/xxabc/ pattern **abc/ does match string foo pattern foo does match string foo pattern bar does not match string pattern does match string foo pattern ??? does match string foo pattern ?? does not match string foo pattern * does match string foo pattern f* does match string foo pattern *f does not match string foo pattern *foo* does match string foobar pattern *ob*a*r* does match string aaaaaaabababab pattern *ab does match string foo* pattern foo\* does match string foobar pattern foo\*bar does not match string f\oo pattern f\\oo does match string ball pattern *[al]? does match string ten pattern [ten] does not match string ten pattern **[!te] does match string ten pattern **[!ten] does not match string ten pattern t[a-g]n does match string ten pattern t[!a-g]n does not match string ton pattern t[!a-g]n does match string ton pattern t[^a-g]n does match string a]b pattern a[]]b does match string a-b pattern a[]-]b does match string a]b pattern a[]-]b does match string aab pattern a[]-]b does not match string aab pattern a[]a-]b does match string ] pattern ] does match string foo/baz/bar pattern foo*bar does not match string foo/baz/bar pattern foo**bar does match string foo/bar pattern foo?bar does not match string foo/bar pattern foo[/]bar does not match string foo/bar pattern f[^eiu][^eiu][^eiu][^eiu][^eiu]r does not match string foo-bar pattern f[^eiu][^eiu][^eiu][^eiu][^eiu]r does match string foo pattern **/foo does not match string /foo pattern **/foo does match string bar/baz/foo pattern **/foo does match string bar/baz/foo pattern */foo does not match string foo/bar/baz pattern **/bar* does not match string deep/foo/bar/baz pattern **/bar/* does match string deep/foo/bar/baz/ pattern **/bar/* does not match string deep/foo/bar/baz/ pattern **/bar/** does match string deep/foo/bar pattern **/bar/* does not match string deep/foo/bar/ pattern **/bar/** does match string foo/bar/baz pattern **/bar** does match string foo/bar/baz/x pattern */bar/** does match string deep/foo/bar/baz/x pattern */bar/** does not match string deep/foo/bar/baz/x pattern **/bar/*/* does match string acrt pattern a[c-c]st does not match string acrt pattern a[c-c]rt does match string ] pattern [!]-] does not match string a pattern [!]-] does match string pattern \ does not match string \ pattern \ SHOULD not match but backslash at end is taken literally string /\ pattern */\ SHOULD not match but backslash at end is taken literally string /\ pattern */\\ does match string foo pattern foo does match string @foo pattern @foo does match string foo pattern @foo does not match string [ab] pattern \[ab] does match string [ab] pattern [[]ab] does match string [ab] pattern [[:]ab] does match string [ab] pattern [[::]ab] SHOULD not match but bad char class taken literally string [ab] pattern [[:digit]ab] does match string [ab] pattern [\[:]ab] does match string ?a?b pattern \??\?b does match string abc pattern \a\b\c does match string foo pattern does not match string foo/bar/baz/to pattern **/t[o] does match string a1B pattern [[:alpha:]][[:digit:]][[:upper:]] does match string a pattern [[:digit:][:upper:][:space:]] does not match string A pattern [[:digit:][:upper:][:space:]] does match string 1 pattern [[:digit:][:upper:][:space:]] does match string 1 pattern [[:digit:][:upper:][:spaci:]] does not match string pattern [[:digit:][:upper:][:space:]] does match string . pattern [[:digit:][:upper:][:space:]] does not match string . pattern [[:digit:][:punct:][:space:]] does match string 5 pattern [[:xdigit:]] does match string f pattern [[:xdigit:]] does match string D pattern [[:xdigit:]] does match string _ pattern [[:alnum:][:alpha:][:blank:][:cntrl:][:digit:][:graph:][:lower:][:print:][:punct:][:space:][:upper:][:xdigit:]] does match string  pattern [^[:alnum:][:alpha:][:blank:][:digit:][:graph:][:lower:][:print:][:punct:][:space:][:upper:][:xdigit:]] does match string . pattern [^[:alnum:][:alpha:][:blank:][:cntrl:][:digit:][:lower:][:space:][:upper:][:xdigit:]] does match string 5 pattern [a-c[:digit:]x-z] does match string b pattern [a-c[:digit:]x-z] does match string y pattern [a-c[:digit:]x-z] does match string q pattern [a-c[:digit:]x-z] does not match string ] pattern [\\-^] does match string [ pattern [\\-^] does not match string - pattern [\-_] does match string ] pattern [\]] does match string \] pattern [\]] does not match string \ pattern [\]] does not match string ab pattern a[]b does not match string a[]b pattern a[]b SHOULD not match but empty [] is taken literally string ab[ pattern ab[ SHOULD not match but single [ char taken literally string ab pattern [! does not match string ab pattern [- does not match string - pattern [-] does match string - pattern [a- does not match string - pattern [!a- does not match string - pattern [--A] does match string 5 pattern [--A] does match string pattern [ --] does match string $ pattern [ --] does match string - pattern [ --] does match string 0 pattern [ --] does not match string - pattern [---] does match string - pattern [------] does match string j pattern [a-e-n] does not match string - pattern [a-e-n] does match string a pattern [!------] does match string [ pattern []-a] does not match string ^ pattern []-a] does match string ^ pattern [!]-a] does not match string [ pattern [!]-a] does match string ^ pattern [a^bc] does match string -b] pattern [a-]b] does match string \ pattern [\] does not match string \ pattern [\\] does match string \ pattern [!\\] does not match string G pattern [A-\\] does match string aaabbb pattern b*a does not match string aabcaa pattern *ba* does not match string , pattern [,] does match string , pattern [\\,] does match string \ pattern [\\,] does match string - pattern [,-.] does match string + pattern [,-.] does not match string -.] pattern [,-.] does not match string 2 pattern [\1-\3] does match string 3 pattern [\1-\3] does match string 4 pattern [\1-\3] does not match string \ pattern [[-\]] does match string [ pattern [[-\]] does match string ] pattern [[-\]] does match string - pattern [[-\]] does not match string -adobe-courier-bold-o-normal--12-120-75-75-m-70-iso8859-1 pattern -*-*-*-*-*-*-12-*-*-*-m-*-*-* does match string -adobe-courier-bold-o-normal--12-120-75-75-X-70-iso8859-1 pattern -*-*-*-*-*-*-12-*-*-*-m-*-*-* does not match string -adobe-courier-bold-o-normal--12-120-75-75-/-70-iso8859-1 pattern -*-*-*-*-*-*-12-*-*-*-m-*-*-* does not match string /adobe/courier/bold/o/normal//12/120/75/75/m/70/iso8859/1 pattern /*/*/*/*/*/*/12/*/*/*/m/*/*/* does match string /adobe/courier/bold/o/normal//12/120/75/75/X/70/iso8859/1 pattern /*/*/*/*/*/*/12/*/*/*/m/*/*/* does not match string abcd/abcdefg/abcdefghijk/abcdefghijklmnop.txt pattern **/*a*b*g*n*t does match string abcd/abcdefg/abcdefghijk/abcdefghijklmnop.txtz pattern **/*a*b*g*n*t does not match string dir1/a.o pattern dir/*.o does not match PASS usr.bin/rsync-unit Duration 0m00.53s