~ubuntu-branches/ubuntu/natty/curl/natty-proposed

« back to all changes in this revision

Viewing changes to tests/data/test539

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Schuldei
  • Date: 2009-05-24 21:12:19 UTC
  • mfrom: (1.1.12 upstream)
  • mto: (3.3.1 squeeze)
  • mto: This revision was merged to the branch mainline in revision 39.
  • Revision ID: james.westby@ubuntu.com-20090524211219-7jgcwuhl04ixuqsm
Tags: upstream-7.19.5
ImportĀ upstreamĀ versionĀ 7.19.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<testcase>
 
2
#
 
3
# Server-side
 
4
<reply>
 
5
<data mode="text">
 
6
file contents
 
7
</data>
 
8
 
 
9
<datacheck>
 
10
file contents
 
11
total 20
 
12
drwxr-xr-x   8 98       98           512 Oct 22 13:06 .
 
13
drwxr-xr-x   8 98       98           512 Oct 22 13:06 ..
 
14
drwxr-xr-x   2 98       98           512 May  2  1996 .NeXT
 
15
-r--r--r--   1 0        1             35 Jul 16  1996 README
 
16
lrwxrwxrwx   1 0        1              7 Dec  9  1999 bin -> usr/bin
 
17
dr-xr-xr-x   2 0        1            512 Oct  1  1997 dev
 
18
drwxrwxrwx   2 98       98           512 May 29 16:04 download.html
 
19
dr-xr-xr-x   2 0        1            512 Nov 30  1995 etc
 
20
drwxrwxrwx   2 98       1            512 Oct 30 14:33 pub
 
21
dr-xr-xr-x   5 0        1            512 Oct  1  1997 usr
 
22
</datacheck>
 
23
</reply>
 
24
 
 
25
# Client-side
 
26
<client>
 
27
<server>
 
28
ftp
 
29
</server>
 
30
# tool is what to use instead of 'curl'
 
31
<tool>
 
32
lib539
 
33
</tool>
 
34
 
 
35
 <name>
 
36
Two FTP fetches using different CURLOPT_FTP_FILEMETHOD
 
37
 </name>
 
38
 <command>
 
39
ftp://%HOSTIP:%FTPPORT/path/to/the/file/539
 
40
</command>
 
41
</client>
 
42
 
 
43
#
 
44
# Verify data after the test has been "shot"
 
45
<verify>
 
46
<protocol>
 
47
USER anonymous
 
48
PASS ftp@example.com
 
49
PWD
 
50
CWD path/to/the/file
 
51
EPSV
 
52
TYPE I
 
53
SIZE 539
 
54
RETR 539
 
55
SYST
 
56
CWD /nowhere/anywhere
 
57
EPSV
 
58
TYPE A
 
59
LIST path/to/the/file/539./
 
60
QUIT
 
61
</protocol>
 
62
</verify>
 
63
</testcase>