Imported Upstream version 7.40.0
[platform/upstream/curl.git] / tests / data / test1113
1 <testcase>
2 <info>
3 <keywords>
4 FTP
5 RETR
6 LIST
7 wildcardmatch
8 ftplistparser
9 flaky
10 </keywords>
11 </info>
12
13 #
14 # Server-side
15 <reply>
16 <data>
17 </data>
18 </reply>
19
20 # Client-side
21 <client>
22 <server>
23 ftp
24 </server>
25 <tool>
26 lib574
27 </tool>
28 <name>
29 FTP wildcard download - changed fnmatch, 2x perform (DOS LIST response)
30 </name>
31 <command>
32 "ftp://%HOSTIP:%FTPPORT/fully_simulated/DOS/*.txt"
33 </command>
34 </client>
35
36 ############################################
37 # Verify data after the test has been "shot"
38 <verify>
39 <errorcode>
40 0
41 </errorcode>
42 # THERE SHOULD NOT BE "SIZE"! and one "USER/PASS"
43 <protocol>
44 USER anonymous\r
45 PASS ftp@example.com\r
46 PWD\r
47 CWD fully_simulated\r
48 CWD DOS\r
49 EPSV\r
50 TYPE A\r
51 LIST\r
52 EPSV\r
53 TYPE I\r
54 RETR chmod1\r
55 EPSV\r
56 RETR chmod2\r
57 EPSV\r
58 RETR chmod3\r
59 EPSV\r
60 RETR empty_file.dat\r
61 EPSV\r
62 RETR file.txt\r
63 EPSV\r
64 RETR someothertext.txt\r
65 CWD /\r
66 CWD fully_simulated\r
67 CWD DOS\r
68 EPSV\r
69 TYPE A\r
70 LIST\r
71 EPSV\r
72 TYPE I\r
73 RETR chmod1\r
74 EPSV\r
75 RETR chmod2\r
76 EPSV\r
77 RETR chmod3\r
78 EPSV\r
79 RETR empty_file.dat\r
80 EPSV\r
81 RETR file.txt\r
82 EPSV\r
83 RETR someothertext.txt\r
84 QUIT\r
85 </protocol>
86 <stdout>
87 This file should have permissions 444
88 This file should have permissions 666
89 This file should have permissions 777
90 This is content of file "file.txt"
91 Some junk ;-) This file does not really exist.
92 This file should have permissions 444
93 This file should have permissions 666
94 This file should have permissions 777
95 This is content of file "file.txt"
96 Some junk ;-) This file does not really exist.
97 </stdout>
98 </verify>
99 </testcase>