test576 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192
  1. <testcase>
  2. <info>
  3. <keywords>
  4. FTP
  5. wildcardmatch
  6. ftplistparser
  7. </keywords>
  8. </info>
  9. # Server-side
  10. <reply>
  11. <data>
  12. </data>
  13. </reply>
  14. # Client-side
  15. <client>
  16. <server>
  17. ftp
  18. </server>
  19. <tool>
  20. lib576
  21. </tool>
  22. <name>
  23. FTP wildcard download - skip/parser_correctness/CURLOPT_FNMATCH_FUNCTION (UNIX)
  24. </name>
  25. <command>
  26. ftp://%HOSTIP:%FTPPORT/fully_simulated/UNIX/*
  27. </command>
  28. </client>
  29. # Verify data after the test has been "shot"
  30. <verify>
  31. <errorcode>
  32. 0
  33. </errorcode>
  34. <stdout mode="text">
  35. =============================================================
  36. Remains: 14
  37. Filename: .
  38. Permissions: rwxrwxrwx (parsed => 777)
  39. Size: 20480B
  40. User: ftp-default
  41. Group: ftp-default
  42. Time: Apr 27 5:12
  43. Filetype: directory
  44. =============================================================
  45. Remains: 13
  46. Filename: ..
  47. Permissions: rwxrwxrwx (parsed => 777)
  48. Size: 20480B
  49. User: ftp-default
  50. Group: ftp-default
  51. Time: Apr 23 3:12
  52. Filetype: directory
  53. =============================================================
  54. Remains: 12
  55. Filename: chmod1
  56. Permissions: r--r--r-- (parsed => 444)
  57. Size: 38B
  58. User: ftp-default
  59. Group: ftp-default
  60. Time: Jan 11 10:00
  61. Filetype: regular file
  62. Content:
  63. -------------------------------------------------------------
  64. This file should have permissions 444
  65. -------------------------------------------------------------
  66. =============================================================
  67. Remains: 11
  68. Filename: chmod2
  69. Permissions: rw-rw-rw- (parsed => 666)
  70. Size: 38B
  71. User: ftp-default
  72. Group: ftp-default
  73. Time: Feb 1 8:00
  74. Filetype: regular file
  75. Content:
  76. -------------------------------------------------------------
  77. This file should have permissions 666
  78. -------------------------------------------------------------
  79. =============================================================
  80. Remains: 10
  81. Filename: chmod3
  82. Permissions: rwxrwxrwx (parsed => 777)
  83. Size: 38B
  84. User: ftp-default
  85. Group: ftp-default
  86. Time: Feb 1 8:00
  87. Filetype: regular file
  88. Content:
  89. -------------------------------------------------------------
  90. This file should have permissions 777
  91. -------------------------------------------------------------
  92. =============================================================
  93. Remains: 9
  94. Filename: chmod4
  95. Permissions: --S--S--t (parsed => 7001)
  96. Size: 4096B
  97. User: ftp-default
  98. Group: ftp-default
  99. Time: May 4 4:31
  100. Filetype: directory
  101. =============================================================
  102. Remains: 8
  103. Filename: chmod5
  104. Permissions: --s--s--T (parsed => 7110)
  105. Size: 4096B
  106. User: ftp-default
  107. Group: ftp-default
  108. Time: May 4 4:31
  109. Filetype: directory
  110. =============================================================
  111. Remains: 7
  112. Filename: empty_file.dat
  113. Permissions: rw-r--r-- (parsed => 644)
  114. Size: 0B
  115. User: ftp-default
  116. Group: ftp-default
  117. Time: Apr 27 11:01
  118. Filetype: regular file
  119. Content:
  120. -------------------------------------------------------------
  121. -------------------------------------------------------------
  122. =============================================================
  123. Remains: 6
  124. Filename: file.txt
  125. Permissions: rw-r--r-- (parsed => 644)
  126. Size: 35B
  127. User: ftp-default
  128. Group: ftp-default
  129. Time: Apr 27 11:01
  130. Filetype: regular file
  131. Content:
  132. -------------------------------------------------------------
  133. This is content of file "file.txt"
  134. -------------------------------------------------------------
  135. =============================================================
  136. Remains: 5
  137. Filename: link
  138. Permissions: rwxrwxrwx (parsed => 777)
  139. Size: 0B
  140. User: ftp-default
  141. Group: ftp-default
  142. Time: Jan 6 4:42
  143. Filetype: symlink
  144. Target: file.txt
  145. =============================================================
  146. Remains: 4
  147. Filename: link_absolute
  148. Permissions: rwxrwxrwx (parsed => 777)
  149. Size: 0B
  150. User: ftp-default
  151. Group: ftp-default
  152. Time: Jan 6 4:45
  153. Filetype: symlink
  154. Target: /data/ftp/file.txt
  155. =============================================================
  156. Remains: 3
  157. Filename: .NeXT
  158. Permissions: rwxrwxrwx (parsed => 777)
  159. Size: 4096B
  160. User: ftp-default
  161. Group: ftp-default
  162. Time: Jan 23 2:05
  163. Filetype: directory
  164. =============================================================
  165. Remains: 2
  166. Filename: someothertext.txt
  167. Permissions: rw-r--r-- (parsed => 644)
  168. Size: 47B
  169. User: ftp-default
  170. Group: ftp-default
  171. Time: Apr 27 11:01
  172. Filetype: regular file
  173. Content:
  174. -------------------------------------------------------------
  175. # THIS CONTENT WAS SKIPPED IN CHUNK_BGN CALLBACK #
  176. -------------------------------------------------------------
  177. =============================================================
  178. Remains: 1
  179. Filename: weirddir.txt
  180. Permissions: rwxr-xrwx (parsed => 757)
  181. Size: 4096B
  182. User: ftp-default
  183. Group: ftp-default
  184. Time: Apr 23 3:12
  185. Filetype: directory
  186. =============================================================
  187. </stdout>
  188. </verify>
  189. </testcase>