~ubuntu-branches/ubuntu/quantal/curl/quantal-proposed

« back to all changes in this revision

Viewing changes to tests/data/test1380

  • Committer: Package Import Robot
  • Author(s): Colin Watson
  • Date: 2012-08-20 13:54:01 UTC
  • mfrom: (3.4.30 sid)
  • Revision ID: package-import@ubuntu.com-20120820135401-5845kg6puoh2jcnh
Tags: 7.27.0-1ubuntu1
* Resynchronise with Debian.  Remaining changes:
  - Drop dependencies not in main:
    + Build-Depends: Drop stunnel4 and libssh2-1-dev.
    + Drop libssh2-1-dev from binary package Depends.
  - Add new libcurl3-udeb package.
  - Add new curl-udeb package.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<testcase>
 
2
<info>
 
3
<keywords>
 
4
FTP
 
5
RETR
 
6
</keywords>
 
7
</info>
 
8
 
 
9
# Server-side
 
10
<reply>
 
11
<data nocheck="yes">
 
12
fooo
 
13
mooo
 
14
</data>
 
15
</reply>
 
16
 
 
17
# Client-side
 
18
<client>
 
19
<server>
 
20
ftp
 
21
</server>
 
22
<name>
 
23
FTP DL, file without C-D inside, using -o fname -D stdout
 
24
</name>
 
25
<command option="no-output,no-include">
 
26
ftp://%HOSTIP:%FTPPORT/path/file1380 -o log/download1380 -D -
 
27
</command>
 
28
<postcheck>
 
29
perl %SRCDIR/libtest/notexists.pl log/file1380
 
30
</postcheck>
 
31
</client>
 
32
 
 
33
# Verify data after the test has been "shot"
 
34
<verify>
 
35
<protocol>
 
36
USER anonymous
 
37
PASS ftp@example.com
 
38
PWD
 
39
CWD path
 
40
EPSV
 
41
TYPE I
 
42
SIZE file1380
 
43
RETR file1380
 
44
QUIT
 
45
</protocol>
 
46
 
 
47
<file1 name="log/download1380">
 
48
fooo
 
49
mooo
 
50
</file1>
 
51
 
 
52
<file2 name="log/stdout1380">
 
53
220-        _   _ ____  _     
 
54
220-    ___| | | |  _ \| |    
 
55
220-   / __| | | | |_) | |    
 
56
220-  | (__| |_| |  _ <| |___ 
 
57
220    \___|\___/|_| \_\_____|
 
58
331 We are happy you popped in!
 
59
230 Welcome you silly person
 
60
257 "/" is current directory
 
61
250 CWD command successful.
 
62
229 Entering Passive Mode (stripped)
 
63
200 I modify TYPE as you wanted
 
64
213 10
 
65
150 Binary data connection for 1380 () (10 bytes).
 
66
226 File transfer complete
 
67
221 bye bye baby
 
68
</file2>
 
69
<stripfile2>
 
70
s/^(229 Entering Passive Mode \().*(\).*)/${1}stripped${2}/
 
71
</stripfile2>
 
72
 
 
73
</verify>
 
74
</testcase>