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